USDC Into cbBTC and ETH Limit Buy

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 2 USDC into cbBTC on Tessera, Wintermute's on-chain market-making venue, and spends 2 USDC buying ETH on the Hanji ETH/USDC order book at market. It asks the caller to supply the USDC for both legs. It executes when run, reading Tessera's live quote for the cbBTC leg and capping the ETH purchase at a price of at most 5000. Doing this by hand or on a stale quote risks filling the cbBTC swap at an outdated price and the ETH order above 5000.

Actions · 3

  • Get swap amounts
    Get amount received for to
    Reads what Tessera, Wintermute's on-chain market-making venue, would pay right now for an exact input.
  • Swap with allowances
    Swap for with exact
    Swaps against Tessera, Wintermute's on-chain market-making venue, at the price its engine quotes this block.
  • Place market order with target value
    Spend on for at a price of at most
    Spends an amount of a Hanji order book's quote token on its base token at market, never above a maximum price.

Related plugs · 2