if (_amounts[1] > 0 || _amounts[2] > 0) {
// Use renbtc and wbtc to mint ibbtc
// NOTE: Can change to external zap if implemented
depositAmounts[0] += _renZapToIbbtc([_amounts[1], _amounts[2]]);
}
Even though it's unlikely to overflow in this particular case, we still recommend using SafeMath instead.
Handle
WatchPug
Vulnerability details
https://github.com/Badger-Finance/badger-ibbtc-utility-zaps/blob/8d265aacb905d30bd95dcd54505fb26dc1f9b0b6/contracts/IbbtcVaultZap.sol#L179-L183
Even though it's unlikely to overflow in this particular case, we still recommend using SafeMath instead.