Get-methods
get_assets
Returns assets of which the pool consists.
Inputs
None.
Returns
get_reserves
Returns reserves of the assets in the pool.
Inputs
None.
Returns
reserve0int- reserve ofasset0reserve1int- reserve ofasset1
is_stable
Returns whether the pool is based on stable-swap or not.
Inputs
None.
Returns
is_stableint(boolean)
get_trade_fee
Returns the trading fee details of the pool.
Inputs
None.
Returns
trade_fee_numeratorinttrade_fee_denominatorint
estimate_swap_out
Estimates the expected output from a given input.
Inputs
asset_inslice(Asset)amount_inint
Returns
asset_outslice(Asset)amount_outint- amount ofasset_outtrade_feeint- amount ofasset_inasset given as a fee.
