Swap coin by exact output, calculated input
Buy order request
Calculate token amount and liquidity amount of the deposit request by exact standard token amount
Exact standard token amount to be deposited
The token denom being calculated
The DepositRequest, max_token = -1 means the liquidity pool is empty, users can deposit any amount of the token
Calculate the amount of another token to be received based on the exact amount of tokens sold
sold coin
output token amount to be received
Calculate the amount of the token to be paid based on the exact amount of the token to be bought
Calculate how many tokens can be withdrawn by exact liquidity amount
Exact liquidity amount to be withdrawn
The WithdrawRequest
Add liquidity by exact iris amount, calculated token and liquidity amount
Add liquidity request
Query liquidity by id
The liquidity id
Swap coin by exact input, calculated output
Sell order request
Remove liquidity by exact liquidity amount, calculated iris and token amount
Remove liquidity request
Generated using TypeDoc
Implementation of the Constant Product Market Maker Model token exchange protocol on IRISHub.
More Details