Contains controller state variables and read-only methods that can be called by anyone.
1. Functions
1.1. uniV3Router
function uniV3Router() external returns (address)
Returns the address of the Uniswap V3 router
1.2. uniV3Factory
function uniV3Factory() external returns (address)
Returns the address of the Uniswap V3 facotry
1.3. hotpot
function hotpot() external returns (address)
Returns the address of the project's governance token HPT
1.4. governance
function governance() external returns (address)
Returns governance account address
1.5. WETH9
function WETH9() external returns (address)
Returns the address of WETH9
1.6. verifiedToken
function verifiedToken(
address token
) external returns (bool)
Check whether the token is verified
The call will revert if the the token argument is address 0.
Parameters:
Name | Type | Description |
---|---|---|
token |
address | Token address to be checked |
1.7. harvestPath
function harvestPath(
address token
) external returns (bytes)
Get swap path at harvest
Parameters:
Name | Type | Description |
---|---|---|
token |
address | Tokens to be exchanged |
1.8. maxSqrtSlippage
function maxSqrtSlippage() external returns (uint32)
Returns the maximum slippage when swap, the value range is 0-1e4, the calculation formula is: MaxSwapSlippage = (1-(sqrtSlippage/1e4)^2) 100%, If the maximum slippage is set to 0.5%, then sqrtSlippage should be set to 9974, at this time MaxSwapSlippage = (1-(9974/1e4)^2)100% = 0.5%
1.9. maxPriceImpact
function maxPriceImpact() external returns (uint32)
Returns the maximum price impact during swap, the value range is 0-1e4