makerdao / exchange-callees

Exchange Callee contracts for LIQ2.0 Flash Loans
GNU Affero General Public License v3.0
31 stars 11 forks source link

Make path parametric in Uniswap callee #4

Closed kmbarry1 closed 3 years ago

kmbarry1 commented 3 years ago

The hardcoded gem --> dai path is fine for a proof-of-concept, but relying on default paths is a great way to get rekt by slippage if we intend to really use this as part of a backstop Keeper.

See e.g. https://www.rekt.news/badgers-digg-sushi/