You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the interest is being pulled from our smart contract which only gets updated when someone actually interacts with the savings contract from mStable. We should be able to do better and actually show the interest value increasing by the second.
Here you can find the current exchange rate. The way mStable works is that it actually saves a credit balance and then it multiplies that to the exchange rate to come up with the actual mUSD value one should receive.
Every mUSD that gets sent to the savings account actually gets sent by the vault. The vault is the proxy contract that deposits and withdraws to the savings account, so all Contribute's balance is actually saved under the vault address in the saving's contract.
So this is our current credit balance 2,716,367
If you multiply that by the exchange rate you get ~3,016,000
This is how you know how much Contribute actually has in the vault. But we can only find out how much is actually there once the exchange rate has been updated.
One way to find out how we can display this in real time is to see how mStable shows their interest accumulating in real time. https://app.mstable.org/save
Right now the interest is being pulled from our smart contract which only gets updated when someone actually interacts with the savings contract from mStable. We should be able to do better and actually show the interest value increasing by the second.
This is the savings contract for mStable https://etherscan.io/address/0xcf3f73290803fc04425bee135a4caeb2bab2c2a1#readContract
Here you can find the current exchange rate. The way mStable works is that it actually saves a credit balance and then it multiplies that to the exchange rate to come up with the actual mUSD value one should receive.
This is Contribute's Vault https://etherscan.io/address/0xda1fd36cfc50ed03ca4dd388858a78c904379fb3#readContract
Every mUSD that gets sent to the savings account actually gets sent by the vault. The vault is the proxy contract that deposits and withdraws to the savings account, so all Contribute's balance is actually saved under the vault address in the saving's contract.
So this is our current credit balance 2,716,367
If you multiply that by the exchange rate you get ~3,016,000
This is how you know how much Contribute actually has in the vault. But we can only find out how much is actually there once the exchange rate has been updated.
One way to find out how we can display this in real time is to see how mStable shows their interest accumulating in real time. https://app.mstable.org/save
When you put mUSD in their savings account this number keeps increasing.
You can find out how they do it here:
https://github.com/mstable/mStable-app/blob/master/src/components/pages/Save/SaveInfo.tsx
The text was updated successfully, but these errors were encountered: