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

User should be able to donate his staking rewards #129

Open
4 tasks
sirpy opened this issue Jan 30, 2022 · 0 comments
Open
4 tasks

User should be able to donate his staking rewards #129

sirpy opened this issue Jan 30, 2022 · 0 comments

Comments

@sirpy
Copy link
Contributor

sirpy commented Jan 30, 2022

When staking to trust fund there should be a toggle button that allows user to donate his yield and not receive rewards.
Also we should display out of total staked how much is donated.

Definition of Done

  • "donate yield" toggle button when staking in trust fund
  • an info icon and tooltip saying "You can choose to not receive G$ rewards, completely donating the yield your staked funds are generating. You can still always withdraw your funds."
  • when toggle button is on, the stake method on the smart contract is called with donationPer=100
  • in total staked show in () how much is donated. ie (504.45 USDC donated).
    in smart contract there's a method called "effectiveStakes" which is the amount which isnt donated and earns rewards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant