Execute collateral/debt swap for lending protocol automatically when a certain condition is met, powered by CowSwap Programmatic Order.
Prize Pool
Condition to trigger collateral Swap:
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:
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)