_freeFunds
function withdraws amount or totalAvailabe to address(this)
. However the contract doesn't have any function to claim the withdrawn amount.
_freeFunds
function is being used during {withdraw} and {redeem} calls. It calculates how much totalAvailabe
and checks whether amount
is bigger than totalAvailabe
.
Based on the docs, when user decides to withdraw, an equivalent amount of their deposit alUSD is burned, completing the transmutation cycle. However there is no function to claim the withdrawn amount, it withdraws to address(this)
but the withdrawn amount will stuck in the contract.
https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyArb.sol#L112-L119
Withdrawn amount and the asset within the contract is stuck.
Manual Review
Make a function to withdraw address(this)'s balance of asset or collateral.
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.