Description:
If USDC blacklists the vault address, withdrawals will fail. The afterOrderExecution
function does not handle blacklisting, leaving funds stuck.
Impact:
Users cannot withdraw funds.
Protocol operations halted.
Affected Code:
PerpetualVault.sol#_transferToken()
uses safeTransfer
, which reverts on blacklist.
Recommendation:
Use a pull-based withdrawal pattern where users claim funds instead of direct transfers.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.