Search projects, hackathons, sponsors and tech

    ← All projects

    CollaSwitch

    Execute collateral/debt swap for lending protocol automatically when a certain condition is met, powered by CowSwap Programmatic Order.

    Demo

    About

    Condition to trigger collateral Swap: - Price change(e.g. DAI price is less than 0.99) - Interest Rate change of the pool(Daily Interest change is more than 1%) Once order is picked up by solver and executed, show a link to blockscout explorer on console. Then execute switch collateral from token A to token B on the following supported lending protocol: - Aave v3 - Euler

    How it's made

    To call order automatically → Cow Programmatic order. Their solvers keep calling the getTradeableOrder function, which trigger condition is defined periodically. To execute collateral swap: CowSwap order + Pre/Hook To fetch the current price data → Pyth Oracle To import daily interest change of the lending pool → Brevis(Fetch interest rate data from tx event and calculate interest rate difference on their zk coprocessor, then update value in smart contract)