Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.07 KB

Potential resource exhaustion by external calls performed within an unbounded loop.md

File metadata and controls

26 lines (22 loc) · 1.07 KB

DydxFlashLoanAbstraction._requestFlashLoan performs external calls in a potentially-unbounded loop.

Depending on changes made to DyDx's SoloMargin, this may render this flash loan provider prohibitively expensive.

In the worst case, changes to SoloMargin could make it impossible to execute this code due to the block gas limit.

Recommendation:

Reconsider or bound the loop


Slide Screenshot

124.jpg


Slide Text

  • ConsenSys Audit Growth DeFi Finding 6.2
  • Denial-of-Service
  • Unbounded Loop
  • Gas Exhaustion
  • Reconsider Logic or Bound Loop

References


Tags