Amount of primary asset to add to the pool.
Amount of secondary asset to add to the pool.
Amount of liquidity tokens that will be minted and given to user.
Calculates the price of assets. Accepts and returns decimal values.
Primary liquidity if calculating price for primary asset, secondary otherwise.
Secondary liquidity if calculating price for primary asset, primary otherwise.
The price of one asset in relation to the other.
Primary liquidity if swapping primary asset, secondary otherwise.
Secondary liquidity if swapping primary asset, primary otherwise.
Amount of asset the user want to receive from the swap.
Amount of the asset the user has to deposit in the contract.
Converts amountDeposited to amountReceived. Ignores fee calculations.
Primary liquidity if swapping primary asset, secondary otherwise.
Secondary liquidity if swapping primary asset, primary otherwise.
Amount of the asset deposited in the contract.
Amount of asset received from the contract after swap.
Generated using TypeDoc
Returns amount of liquidity tokens that are going to be minted when adding liquidity.