You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/lockup/docs/staking.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ to understand, contribute to, or modify the code.
31
31
Accounts are the pieces of state owned by a Solana program. For reference while reading, here are all
32
32
accounts used by the **Registry** program.
33
33
34
-
*`Registrar` - Analogous to an SPL token `Mint`, the `Registrar` defines a staking instance. It has its own pool, and it's own set of rewards distributed amongst its own set of stakers.
34
+
*`Registrar` - Analogous to an SPL token `Mint`, the `Registrar` defines a staking instance. It has its own pool, and its own set of rewards distributed amongst its own set of stakers.
35
35
*`Member` - Analogous to an SPL token `Account`, `Member` accounts represent a **beneficiary**'s (i.e. a wallet's) stake state. This account has several vaults, all of which represent the funds belonging to an individual user.
36
36
*`PendingWithdrawal` - A transfer out of the staking pool (poorly named since it's not a withdrawal out of the program. But a withdrawal out of the staking pool and into a `Member`'s freely available balances).
37
37
*`RewardVendor` - A reward that has been dropped onto stakers and is distributed pro rata to staked `Member` beneficiaries.
@@ -89,7 +89,7 @@ from the stake pool is complete, and the funds are ready to be used again.
89
89
Feel free to skip this section and jump to the **Reward Vendors** section if you want to
90
90
just see how rewards work.
91
91
92
-
One could imagine several ways to drop rewards onto a staking pool, each with there own downsides.
92
+
One could imagine several ways to drop rewards onto a staking pool, each with their own downsides.
93
93
Of course what you want is, for a given reward amount, to atomically snapshot the state
94
94
of the staking pool and to distribute it proportionally to all stake holders. Effectively,
95
95
an on chain program such as
@@ -116,7 +116,7 @@ This is not auditable or verifiable. And if you want to answer these questions,
116
116
complex off-chain protocols that require either fancy cryptography or effectively
117
117
recreating a BFT system off chain.
118
118
119
-
Another solution considerered was to use a uniswap-style AMM pool (without the swapping).
119
+
Another solution considered was to use a uniswap-style AMM pool (without the swapping).
120
120
This has a lot of advantages. First it's easy to reason about and implement in a single transaction.
121
121
To drop rewards globally onto the pool, one can deposit funds directly into the pool, in which case
122
122
the reward is automatically received by owners of the staking pool token upon redemption, a process
0 commit comments