Description:Description\
When calculating predictedGainAtOffsetEnd we divide by 365, which doesn't account for leap years.
Through time predictedGainAtOffsetEnd will be slightly incorrect.
Attack Scenario\
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)
Instead of hardcoding 365, a state variable can be created which the protocol can change to correctly calculate predictedGainAtOffsetEnd
Github username: -- Twitter username: -- Submission hash (on-chain): 0xad5802d85b4cede920ed2b6c485b0858bc708b554cd91ddcceaa9bf9cfc02b0f Severity: low
Description: Description\ When calculating
predictedGainAtOffsetEnd
we divide by 365, which doesn't account for leap years.Through time
predictedGainAtOffsetEnd
will be slightly incorrect.Attack Scenario\
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional) Instead of hardcoding 365, a state variable can be created which the protocol can change to correctly calculate
predictedGainAtOffsetEnd