BigNumber - amount of 'in' asset in the pool
BigNumber - weight of 'in' asset on the pool
BigNumber - amount of 'out' asset in the pool
BigNumber - weight of 'out' asset on the pool
BigNumber - amount in for the swap
BigNumber - swap fee
Generated using TypeDoc
Calculate the expected amount of asset X gotten out when swaping an asset Y into a pool.
Returns
Decimal