Implemented period based yield analysis on SavingsManager #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade type: MODULE REPLACEMENT VIA NEXUS
Affected file:
SavingsManager.sol
Version: 1.1
Description
Address bug originally submitted through Bug Bounty - See Devan - Bug bounty response.pdf
Removes the blocker on collecting interest more than once in 30 minute period.
Retains existing 'extrapolatedAPY' calculations when it has been longer than 30 minutes since the last interest collection.
If it has been less than 30 minutes, it simply checks that the supply has not inflated by more than 0.1% (or 1e15) during that PERIOD (30 mins). At a 0.1% 'SWAP' fee, this would mean that the total supply of the mAsset would need to be swapped between the two collections, if this were to be hit.
Mechanism:
Deployment plan
SavingsManager v1.1
to Ropsten/MainnetproposeUpgrade
on theNexus
with implementation addressesMainnet Details
Deployed address:
0x7046b0bfc4c5eeb90559c0805dd9c1a6f4815370
Ropsten Details
Deployed address:
0x755629d1ecad92db2b81a3a88207bf6d2b864136