← Back to home

DairyNinja

programmatic cowswap orders with additional quote and price sanity checks

Screenshots

DairyNinja screenshot 1
DairyNinja screenshot 2
DairyNinja screenshot 3

Problem Statement

perform a swap through cowswap using programmatic orders from a safe module, but only if the quote cowswap gives through their api is better than 1inch. this prevents executing swaps on cow for which a higher price is guaranteed by 1inch. additional sanity checks on the price are also performed via oracle price comparisons.

Solution

compare cowswap and 1inch swap quotes on a web2 apiusing api3 to call api endpoint to retrieve best quoteonly in case cowswap is best quote, use cow programmatic order to make swapperform additional sanity checks on the quote using a chronicle oracle: is the api quote realistic?

Hackathon

ETHGlobal Istanbul

2024

Prizes

  • 🏆

    Integrate a Chronicle Oracle

    Chronicle Protocol

Contributors