-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add dynamic balances with mock rewards and distribution #299
Conversation
@ccali11 @DemogorGod note the updated dev script flag options in the Serve section here. We're using the compounding feature by default (Steve you can remove the option switch in the UI for now), and classic mode (no compounding) is behind a flag. The simulation flag might be helpful to auto populate some stakers for development. Also, we're limited to two validators right now (so you'll get an error once you stake enough to activate a third validator). I can remove that limit soon. Rewards are simulated by default, and come in pretty frequently (not set to any realistic cadence at this point), so you can play with displaying updating balances. In the compounding (default) mode, user rewards will be zero, but their stake will increase as rewards are distributed, by definition. |
Also @DemogorGod just for your awareness, we won't merge this to develop until @ccali11 completes #295 and merges into this branch. |
…readme Add contracts readme and change balance to stake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled down. Ran. Adapted to v1 contract interface.
@ccali11 for #295 note the change to contract interfaces.
Some changed methods:
getUserBalance(userAddress)
to get the stake and rewards for a given usergetBalance()
to get the stake and rewards for the managergetStakedPoolIds()
to get staked (active) pool IDsgetReadyPoolIds()
to get ready (open) pool IDsgetPool(poolId)
to get pool details (deposits, and validator public key and operator IDs if staked)