Calculate the expected amount of asset X needed to put in to get a certain amount of asset Y out.
Decimal
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 - swap fee
Generated using TypeDoc
Calculate the expected amount of asset X needed to put in to get a certain amount of asset Y out.
Returns
Decimal