Open code423n4 opened 2 years ago
Agree with the finding, it should be noted that adding a pool does handle for the scenario, this would break the pool in case we update it or change the token
Arguably for severity:
2 — Med: Assets not at direct risk, but the function of the protocol or its availability could be impacted, or leak value with a hypothetical attack path with stated assumptions, but external requirements.
As this would break only if we update the pool
W will mitigate by following the warden advice
agree with sponsor, will mark this as medium
as assets are not at direct risk ^
Handle
WatchPug
Vulnerability details
https://github.com/Badger-Finance/badger-ibbtc-utility-zaps/blob/8d265aacb905d30bd95dcd54505fb26dc1f9b0b6/contracts/SettToRenIbbtcZap.sol#L162-L183
In the current implementation, when
curvePool
ortoken
got updated,token
is not approved tocurvePool
, which will malfunction the contract and break minting.Recommendation
Change to: