Tokens are stuck in the UpliftOnlyExample
contract because there is no mechanism to withdraw them.
In the UpliftOnlyExample::onAfterSwap
function, the ownerFee
is transferred from the Vault to the UpliftOnlyExample
contract. However, the contract lacks any functionality to withdraw tokens, leading to the tokens being permanently locked within the contract.
UpliftOnlyExample::onAfterSwap function:
Tokens become inaccessible and irrecoverable, potentially leading to financial loss.
Implement a function restricted to the contract owner that allows token withdrawals. Alternatively, update the logic to transfer the ownerFee
to an externally owned address (EOA).
Likelihood: High, every swap. Impact: High, funds are stuck.
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.