in StrategyMainnet
, StrategyArb
, and StrategyOp
- The router
and the transmuter
contracts are given approvals for underlying
, and asset
tokens, respectively.
The approvals are made by using the safeApprove
function from OpenZeppelin's SafeERC20.sol
However, safeApprove
has been deprecated and replaced with safeIncreaseAllowance
/ safeDecreaseallowance
SafeERC20.sol
contract.safeApprove
has been deprecated and replaced with safeIncreaseAllowance
/ safeDecreaseallowan
. The function as is, may currently work, but if a bug is found in this version of openzeppelin and this protocol is forced to upgrade to a new version of the OpenZeppelin contract - that new version may not have the safeApprove
function.
Manual Review
Becasue the contracts only use safeApprove
to set the initial allowance to type(uint256).max
and makes no further approvals, safeIncreaseAllowance
can be and should be used instead.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.