Flashloan is given for 1 token but checks balances for both reward and deposit token #50
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pedroais
Vulnerability details
Impact
Useless checks that cost gas
Proof of Concept
Since the Flashloan function has the lock modifier reentrancy is not possible so checking both tokens is useless.
Recommended Mitigation Steps
Proposed new function with less code :
The text was updated successfully, but these errors were encountered: