The claimAndSwap
function in the smart contracts deposits the entire asset
balance of the contract (address(this)
) into the transmuter
after performing a swap. This can unintentionally include pre-existing balances of the asset
token leading to unintended side effects
The issue arises in the following line of the claimAndSwap
function:
Here, the entire balance of the asset
token held by the contract is deposited, which may unintentionally include tokens that were not obtained from the swap operation.
The _freeFund
function in the strategy contracts (StrategyMainnet.sol, StrategyOp.sol, StrategyArb.sol) show that the contracts can hold assets token which are for withdrawals. Depositing the entire balance of the asset
token held by the contract could lead tio unitentional deposits of these tokens
Unintentional Use of Pre-existing Balances
Impact: Medium
Likelihood: Medium
Risk Level: Medium
Manual review
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.