ebtc-protocol/ebtc

Spearbit: Flash loan invariant bug POC and mitigation

Opened this issue · 2 comments

Spearbit: Flash loan invariant bug POC and mitigation

Suggested Mitigation:

  • Change the invariant check to only be around rebasing
  • This ensures that the payment has the same value
  • Additional checks are reliant on the security of the underlying system (question: what happens if we do multiple flashloans?)

issues described in more detail in the spearbit repo