Swap Detail Page API Integration
Preparation
Get X, Y, poolAddr from statechain.
Display to the user the expected emission, slip and value.
y = ( x * X * Y ) / ( x + X )^2
slip = x * ( 2X + x) / ( X * X )
value = y * priceToken
Transaction
Transaction is a simple send tx.
MEMO = SWAP:SYMBOL(y):ADDR::
(Ignore Price Lim for now)
Edited by JP
