NotEnabled
trading pair.
token_a
: Asset id A.
token_b
: Asset id B.
amount_a_desired
: amount a desired to add.
amount_b_desired
: amount b desired to add.
amount_a_min
: amount a minimum willing to add.
amount_b_min
: amount b minimum willing to add.
to
: The recipient of the LP token. The caller is the default recipient if it is set to None.
deadline
: The deadline of executing this extrinsic. The deadline won’t be checked if it is set to None
Enabled
trading pair.
Enabled
status
token_a
: Asset id A.
token_b
: Asset id B.
NotEnabled
trading pair.
NotEnabled
status
token_a
: Asset id A.
token_b
: Asset id B.
NotEnabled
trading pairs.
token_a
: Asset id A.
token_b
: Asset id B.
liquidity
: liquidity amount to remove.
amount_a_min
: minimum amount of asset A to be withdrawn from LP token.
amount_b_min
: minimum amount of asset B to be withdrawn from LP token.
to
: The recipient of the withdrawn token assets. The caller is the default recipient if it is set to None.
deadline
: The deadline of executing this extrinsic. The deadline won’t be checked if it is set to None
FeeTo
account. This operation requires root access.
setFeeTo
fee_to
: the new account or None assigned to FeeTo.
swapExactTokensForTokens
path
: trading path.
amount_in
: exact supply amount.
amount_out_min
: acceptable minimum target amount.
to
: The recipient of the swapped token asset. The caller is the default recipient if it is set to None.
deadline
: The deadline of executing this extrinsic. The deadline won’t be checked if it is set to None
swapTokensForExactTokens
amount_out
: exact target amount.
amount_in_max
: acceptable maximum supply amount.
path
: trading path.
to
: The recipient of the swapped token asset. The caller is the default recipient if it is set to None.
deadline
: The deadline of executing this extrinsic. The deadline won’t be checked if it is set to None
Rate
type to minimize internal division operation.
Namespace
getAmountsIn
getAmountsOut
getLPTokenID
getLiquidity
getTradingPairStatus
quote