Utils
Estimate Receiving Amount with Fixed Input Amount
Method Interface
// solidity interface
/// @notice Estimate amount to receive & fee to pay for an fixed input amount during Bonding Curve stage
///
/// @param _amountIn The fixed input amount of coin/collateral
/// @param _reserveIn The virtual reserve amount of input type
/// @param _reserveOut The virtual reserve amount of output type
/// @param _paymentTokenIsIn The _amountIn is collateral or not
///
/// @return amountOut The estimated return coin/collateral amount
/// @return fee The platform fee charged
function getAmountOutAndFee(
uint256 _amountIn,
uint256 _reserveIn,
uint256 _reserveOut,
bool _paymentTokenIsIn
) external view returns (uint256 amountOut, uint256 fee);Estimate Input Amount with Fixed Receiving Amount
Method Interface
Get Coin Bonding Curve Contract
Method Interface
Get Coin Collateral Token
Method Interface
Check Coin Bonding Curve Progress
Method Interface
Check Coin Market Cap
Method Interface
Last updated

