Calculate the output amount for a given input amount on a bonding curve.
This function determines how much of the output asset you'll receive for a given input amount.
This function does not take into account fees.
Returns
The output amount you'll receive from the swap
Throws
Error if the bonding curve type is unsupported or calculation errors occur
Calculate the output amount for a given input amount on a bonding curve. This function determines how much of the output asset you'll receive for a given input amount. This function does not take into account fees.
Returns
The output amount you'll receive from the swap
Throws
Error if the bonding curve type is unsupported or calculation errors occur