Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new XP yield function in XP token balanceOf #65

Open
0x-r4bbit opened this issue Oct 18, 2024 · 0 comments
Open

Implement new XP yield function in XP token balanceOf #65

0x-r4bbit opened this issue Oct 18, 2024 · 0 comments

Comments

@0x-r4bbit
Copy link
Collaborator

As initial version, we've implemented #53 to determine the XP amount any user has, which also includes the MPs accrued via staking.
This inherently follows an 1 MP == 1 XP relation which is ultimately not what is exactly desired.

After recent discussions, we're now aiming to implement a formula in which the XP yield that is generated by staked SNT decreases, as the amount of SNT staked increases.

Here's what it currently looks like:

Yield per SNT_i = BaseXPperSNT x MP_i / (P x SNT_i)

with:

  • Yield per SNT_i - the yield for each SNT staked by staker i
  • BaseXPperSNT - the base XP yield per SNT, a constant we decide (and can adjust if needed?)
  • MP_i- the MP of staker i
  • P- the percentage of SNT staked (total SNT staked / total SNT supply)
  • SNT_i- the number of SNT staked by staker i

This yield is still added to the actual balance that the account has in the ERC20 contract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants