Nucleo AMM

Multi Hop Swap

For this example, consider two pools. One ETH/USDC pool, and one USDC/MEME pool. Swapper wants to sell ETH on Arbitrum for MEME on Solana.

  1. User interacts with the Satellite Contract on Arbitrum to initiate a "multi-hop-swap" action
  2. The Application Contract on Arbitrum transfers ETH from the user to the contract
  3. The Task Gateway receives the intent and forwards it to the Task Executors network
  4. Task Executors verify the action is valid and correct parameters have been specified
  5. If valid, the executors update their shared AMM state, update the pool reserves, and send back the results to the Task Gateway. Internally, this requires swapping ETH -> USDC and then USDC -> MEME
  6. The Task Gateway aggregates the execution results and sends a response to the Satellite Contract on Solana
  7. The Application Contract on Solana transfers MEME to the user's address

On this page

No Headings