code-423n4 / 2021-10-badgerdao-findings

0 stars 0 forks source link

Use Minimal Interface for gas optimizations #91

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

hack3r-0m

Vulnerability details

https://github.com/code-423n4/2021-10-badgerdao/blob/main/contracts/WrappedIbbtcEth.sol#L14

ERC20Upgradeable is a superset of ERC20 and in this case, only ERC20 functions are required to be called on ibbtc, so IERC20 can be used.

0xleastwood commented 2 years ago

Keeping issue open for contest but marking as resolved to note its been fixed