# How does MES work

1\. User deposits asset from source chain to MES’s smart contract

2\. Once the fund is received by the smart contract, MES’s node will execute a swap, the price is determined by Stableswap AMM algorithm, i.e. the price deduced will be based on liquidity of the input/output chain

3\. After the order is settled, the node will call the transfer function at destination chain and transfer asset to the user’s address on destination chain
