Skip to content

Commit

Permalink
update LibLockedUnderlying spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brean0 committed Jul 24, 2024
1 parent b56ea97 commit 577d77b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions protocol/contracts/libraries/LibLockedUnderlying.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ library LibLockedUnderlying {
* @notice Return the % of Underlying Tokens that would be locked if all of the Unripe Tokens
* were chopped.
* @param unripeToken The address of the Unripe Token
* @param recapPercentPaid The % of Sprouts that have been Rinsed or are Rinsable.
* Should have 6 decimal precision.
* @param recapPercentPaid The % of the Unripe Token that has been recapitalized
*
* @dev Solves the below equation for N_{⌈U/i⌉}:
* N_{t+1} = N_t - i * R * N_t / (U - i * t)
* N_{t+1} = N_t - π * i / (U - i * t)
* where:
* - N_t is the number of Underlying Tokens at step t
* - U is the starting number of Unripe Tokens
* - R is the % of Sprouts that are Rinsable or Rinsed
* - π is the amount recapitalized
* - i is the number of Unripe Beans that are chopped at each step. i ~= 46,659 is used as this is aboutr
* the average Unripe Beans held per Farmer with a non-zero balance.
*
Expand Down

0 comments on commit 577d77b

Please sign in to comment.