Open
Conversation
aske
reviewed
Feb 28, 2023
main.tex
Outdated
| is calculated based on the staker's share of total iAsset staked: | ||
|
|
||
| \[r=k\frac{xy/z}{b\sum_{i=1}^{\left| a \right|}a_{i}b_{i}/c_{i}}\] | ||
| \[r=k\frac{x}{\sum_{i=1}^{\left| a \right|}a_{i}}\] |
There was a problem hiding this comment.
There's still some confusion left in the formula because one iAsset can have multiple corresponding LP tokens.
Suppose iUSD iAsset has 2 LP tokens -- lp1 & lp2.
k was previously defined as an amount of INDY given per iAsset and if iAsset has several LP tokens then this k should be proportionally distributed between its LP tokens.
When calculating r we either need to change k to mean "INDY given per collection of LP tokens corresponding to a given iAsset" or change formula to something like this:
where
-
$l$ is a collection of types of LP tokens for a given iAsset (foriUSDit's{lp1, lp2}) -
$x_l$ is a current user's staked amount of a specific LP token (for a given iAsset) -
$a^l$ is a set of specific staked LP tokens for a given iAsset for each user -
$y_l$ is a proportion of total minted amount for a LP token$l$ of a total minted amount of all LP tokens for a given iAsset (forlp1it'sminted_amount_lp1 / (minted_amount_lp1 + minted_amount_lp2))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.