DoS
When the amout of token acquired by a flash loan exceeds the expected value, the callback function will fail
The flash loan callback calculates the borrowed amount from the contract's total balance rather than the balance difference, so a donation to the aggregator before a victim's flash loan inflates the reported amount. This causes the subsequent swap check to fail, denying the victim's flash loan.
WagmiLeverage V2
Medium