Nucleo AMM

Removing Liquidity

For this example, consider an ETH/USDC pool. A liquidity provider previously added liquidity to this pool from Base and holds the LP Token on Base.

Now, the LP wants to close their position and withdraw their liquidity on Optimism.

  1. LP interacts with the Satellite Contract on Base to initiate a "remove liquidity" action
  2. The Application Contract on Base transfers the LP token from the LP and burns it
  3. The Task Gateway receives the intent and forwards it to the Task Executors network
  4. Task Executors verify the action is valid and that the LP has supplied correct parameters and amounts of ETH and USDC
  5. If valid, the executors update their shared AMM state, removing the LP position, and send back the results to the Task Gateway
  6. The Task Gateway aggregates the execution results and sends a response to the Satellite Contract on Optimism
  7. The Application Contract on Optimism transfers ETH and USDC tokens to the LP's address

On this page

No Headings