NexusMutual / cover-router

Computes optimal capacity allocation per Nexus Mutual staking pool on cover purchase
MIT License
1 stars 1 forks source link

fix: Update PRICE_CHANGE_PER_DAY to reflect onchain value #84

Closed roxdanila closed 4 months ago

roxdanila commented 4 months ago

Context

The value of the PRICE_CHANGE_PER_DAY param in the Cover.sol contract has been updated from 0.5% to 2% in this proposal: https://app.nexusmutual.io/governance/view?proposalId=213. This hasn't been reflected in the cover router code. This PR fixes this.

There is an argument to be made that these values should be read from the contract instead of being hardcoded.

Changes proposed in this pull request

Update PRICE_CHANGE_PER_DAY constant from 0.5% to 2%.

Test plan

Checked the price for Balancer is close to 4% annual, as explained on slack in the bug report.

Checklist

Review

When reviewing a PR, please indicate intention in comments using the following emojis: