Nucleo AMM
Single Swap
For this example, consider an ETH/USDC pool. Swapper wants to sell ETH on Arbitrum for USDC on Solana.
- User interacts with the Satellite Contract on Arbitrum to initiate a "swap" action
- The Application Contract on Arbitrum transfers ETH from the user to the contract
- The Task Gateway receives the intent and forwards it to the Task Executors network
- Task Executors verify the action is valid and correct parameters have been specified
- If valid, the executors update their shared AMM state, update the pool reserves, and send back the results to the Task Gateway
- The Task Gateway aggregates the execution results and sends a response to the Satellite Contract on Solana
- The Application Contract on Solana transfers USDC to the user's address