The _freeFunds
function in StrategyOp.sol
does not include slippage protection when withdrawing assets from the transmuter.
Without validation of the actual amounts received, the function is vulnerable to manipulation or operational inefficiencies during periods of high volatility or low liquidity.
The _freeFunds
function withdraws _amount
of asset from the transmuter without verifying whether the actual amount received matches the requested amount.
This lack of slippage protection exposes the function to risks of:
Receiving less than the requested amount during volatile market conditions.
Overestimating the strategy's ability to fulfill withdrawal requests.
Users may receive less than the expected withdrawal amount, leading to financial losses or dissatisfaction.
Introduce a slippage protection mechanism to ensure that the actual amount received is sufficient to meet the requested withdrawal amount.
Validate the received amount against the expected _amount
and revert if it falls below an acceptable threshold.
This ensures that the function only completes the withdrawal if the actual amount received is equal to or greater than the requested amount, protecting users and maintaining protocol integrity
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.