Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ anchor test --skip-build
anchor build -- --features mocks
anchor deploy
```
- If you want to retain the local state once the tests are run, you would have to run a local validator. A local validator should run in the background and while running the test `skip-local-validator` flag has to be passed so that the program doesnt spin up its only validator.
Below is the command to run local validator ( run it in a seperate terminal).
- If you want to retain the local state once the tests are run, you would have to run a local validator. A local validator should run in the background and while running the test `skip-local-validator` flag has to be passed so that the program doesn't, does not spin up its only validator.
Below is the command to run local validator ( run it in a separate terminal).
```
solana-test-validator -r
```
Expand Down
12 changes: 6 additions & 6 deletions solana/restaking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The high level flow of the program is given in the image below.
has to go through the smart contract.

- Receipt Token Mint: The receipt token mint is a NFT which is the
seed for the PDA storing information about stake amout, validator
seed for the PDA storing information about stake amount, validator
and rewards. For more information, refer:
https://docs.composable.finance/technology/solana-restaking/vaults/#receipt-token

Expand All @@ -28,7 +28,7 @@ The high level flow of the program is given in the image below.
When the contract is deployed, the `initialize` method is called where
the whitelisted tokens, admin key and the rewards
token mint is set. Initially the `guest_chain_initialization` is set to
false. Any update to the staking paramters can only be
false. Any update to the staking parameters can only be
done by the admin key. A token account is also created for the
rewards token mint which would distribute the rewards. Since the
authority is PDA, any debit from the account will happen only through
Expand All @@ -44,7 +44,7 @@ can start staking.
unbonding period gets over, the tokens would be withdrawn. In this method,
the receipt NFT would be transferred to an escrow account and the receipt
NFT token account would be closed. All the pending rewards are transferred
in this method and users wont be eligible for rewards during the unbonding
in this method and users won't be eligible for rewards during the unbonding
period.

- `Cancel Withdrawal Request`: Withdrawal request set by the user can be
Expand All @@ -64,7 +64,7 @@ can start staking.
- `Set Service`: Once the bridge is live, users who had deposited before
can call this method to delegate their stake to the validator. Users
cannot withdraw or claim any rewards until they delegate their stake
to the validator. But this method wont be needed after the bridge is
to the validator. But this method won't be needed after the bridge is
live and would panic if called otherwise.

- `Update Guest chain Initialization`: The admin would call this method
Expand All @@ -82,10 +82,10 @@ can start staking.
- `Change admin Proposal`: A proposal set by the current admin for
changing the admin. A new admin is proposed by the existing admin
and the until the new admin approves it in `accept_admin_change`,
the admin wont be changed.
the admin won't be changed.

- `Accept admin change`: The new admin set by the existing admin is
exepected to call this method. When the new admin calls this method,
expected to call this method. When the new admin calls this method,
the admin is changed.

- `Update Staking Cap`: Method which sets the staking cap which limits
Expand Down
2 changes: 1 addition & 1 deletion solana/restaking/querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let stakeParameters =
## Account Structure

We have 2 storage accounts
1. **StakingParams**: `StakingParams` contains the paramters required
1. **StakingParams**: `StakingParams` contains the parameters required
for staking. They are as follows.
- Whitelisted Tokens: The tokens which can be staked.
- Guest chain Program Id: If `None` or `null`, it means that the guest
Expand Down