pairTradingFeePPM()
CarbonController.sol
This function returns the fee settings for a specific pair, represented in PPM (parts per million). It is recommended to identify the trading fee for the required pair to ensure the fee considerations are correctly represented to the user.
Function Arguments
Name
Type
Description
token0
Token
The first token address.
token1
Token
The second token address.
Returns
Fee percentage in PPM
For example a PPM of 1000 represents a 0.1% trading fee:
1000 / 1,000,000 = 0.001 = 0.1%
Example
Last updated