SAVE calculator
Is your feature request related to a problem? Please describe.
Users want to see exactly how much mUSD they might have earned since entering the SAVE contract. Currently the only metric is a very volatile APY.
Describe the solution you'd like
A new page - app.mstable.org/save/calculator
A nice way to visualise and calculate the two questions:
- "If I had put in
X mUSDinto the savings contract atYdate, how muchmUSDwould I have now?" - "If I put in
X mUSDinto the savings contract now, how much am I likely to have atYdate in the future?
Bonus points Innovate - make this fun and engaging.
Some ideas off the top of my head:
- making the inputs as sliders or something to make it super easy to change
-
comparing against other services.. like 'You would earn an extra $8000 compared to a BANK @ 0.2% APY
" - fun visualisation.. like stacking up the mUSD tokens.. at some point they become mUSD money bags.. etc
- visualising the output and gains in a chart
Help
The exchangeRate variable produced by the SavingsContract continually goes up, and makes the credits a user owns worth more mUSD. To get the increase in an mUSD value between two dates, you can take the two exchange rates, and work out the percentage increase in exchange rate, applying that to the mUSD holdings. This increase can be used to extrapolate future returns by converting it into the APY number (this is how we work out the APY in the app currently).
Additional context
This should:
- look nice, in keeping with the general theme of the app
- encourage users to deposit into the SAVE contract
Feel free to reach out to the team for any further information.
Interested in working with mStable? Check out our dApp developer role