Rari-Capital / rari-dApp

Rari Capital's Web3 Portal.
https://app.rari.capital
GNU Affero General Public License v3.0
151 stars 69 forks source link

If multiple deposits are added to a pool, interest rates seem to be calculated incorrectly. #394

Closed josh-richardson closed 3 years ago

josh-richardson commented 3 years ago

If you deposit (for example) $10k into the stables pool, then accrue interest for a week, and subsequently deposit another $10k, the "Interest Earned" heading on the dashboard seems to think that your subsequent deposit into the pool qualifies as interest earned (i.e. the interest earned will display as over $10k, which definitely isn't correct). I did attempt to find the method that calculates this on the server side, but it unfortunately seems that https://api.rari.capital/governance/ isn't available in the rari-capital org, so I can't submit a PR to attempt to fix.

transmissions11 commented 3 years ago

Yep we're aware of this. It's an issue with our internal API, will fix asap.

josh-richardson commented 3 years ago

Looks like this has been fixed.