Skip to content

Flashloan Attacks #1

@odyslam

Description

@odyslam

Description

The general flow of these attacks seems to be the following:

  • Use large capital to buy various tokens in pools and leverage flashloans to leverage the position even further
  • Get loans against the inflated positions which are much larger than the original capital
  • Due to the use of on-chain oracles, they show an inflated value of the tokens because of sudden surge of capital (which is temporary due to the flashloas)
  • Pay buck flashloans and default on positions
  • Get away with all the collateral

Notes

Inverse Finance

  • Attacker manipulated the oracle price by swaping via a private mempool so the oracle is not brought back down at the next block, but at the N + 2 blocks (since they would see it at N + 1)
  • Attacker made sure to attack at N + 1 block since the oracle would use the price from N (inflated)

Possible Assertion

Oracle MUST NOT diverge more than X, where X is some rolling average

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions