Swap Detail Page API Integration

https://gitlab.com/thorchain/bepswap/bepswap-react-app/uploads/1af002370b405bc65a3b86e36ad50b6f/BEPSwap-July19-Desktop-APIGuide.pdf

image

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 Sep 05, 2019 by JP
Assignee Loading
Time tracking Loading