Rari-Capital / vaults

Flexible, minimalist, and gas-optimized yield aggregator protocol for earning interest on any ERC20 token.
GNU Affero General Public License v3.0
286 stars 75 forks source link

🔒 Share price inflation #81

Open transmissions11 opened 2 years ago

transmissions11 commented 2 years ago

Mentioned in the Yearn TOB audit (https://github.com/milkyklim/yearn-security/blob/07fca80ed196eb46821ba9e9bfc54f6d66ae328f/audits/20210719_ToB_yearn_vaultsv2/ToB_-_Yearn_Vault_v_2_Smart_Contracts_Audit_Report.pdf) and UniV2 Dapp.org (https://dapp.org.uk/reports/uniswapv2.html)

transmissions11 commented 2 years ago

i think the best solution would be to handle this in the initialization module ideally? worst case we fall back to destroy()ing