_ensureLiquidity(amount)
checks for sufficient liquidity before calling ReserveLibrary.withdraw()
. Between these two steps a drain of funds can occur.
If an attacker manages to manipulate liquidity between these calls, they could withdraw more than expected, leading to insolvency.
Manual Review
Lock liquidity checks and withdrawals atomically
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.