USDC
and wants to buy yvUSDC
. Right now, Cowswap would need a LP USDC/yvUSDC
to settle the trade, but what if the solver understands how to deposit into a yearn vault? solvable_orders
endpoint.solvable_orders
and sends orders, in json, to the different solvers. If a solver finds a solution to the batch, the driver executes the trade on chain.solve()
which receives the batch orders
and returns a SettledBatchAuctionModel
aka a solution.USDC == 1 yvUSDC
(price per share is 1).solvable_orders
endpoint.
To consume it, we will need to use the driver.