IMarketRegistry
MarketInfo
Functions
getPool
Get the pool address (UNIv3 pool) by given base token address
Parameters:
Return Values:
getFeeRatio
Get the fee ratio of a given market
The ratio is in 1e6
format, that means 1% = 1e4
Parameters:
Return Values:
getInsuranceFundFeeRatio
Get the insurance fund fee ratio of a given market
The ratio is in 1e6
format, that means 1% = 1e4
Parameters:
Return Values:
getMarketInfo
Get the market info by given base token address
Parameters:
Return Values:
getMarketInfoByTrader
Get the market info by given trader address and base token address
Parameters:
Return Values:
getQuoteToken
Get the quote token address
Return Values:
getUniswapV3Factory
Get Uniswap factory address
Return Values:
getMaxOrdersPerMarket
Get max allowed orders per market
Return Values:
hasPool
Check if a pool exist by given base token address
Return Values:
getMarketMaxPriceSpreadRatio
Return Values:
Events
PoolAdded
Emitted when a new market is created.
Parameters:
FeeRatioChanged
Emitted when the fee ratio of a market is updated.
Parameters:
InsuranceFundFeeRatioChanged
Emitted when the insurance fund fee ratio is updated.
Parameters:
MaxOrdersPerMarketChanged
Emitted when the max orders per market is updated.
Parameters:
MarketMaxPriceSpreadRatioChanged
Emitted when the max market price spread ratio is updated.
Parameters:
FeeDiscountRatioChanged
Emitted when the trader's fee discount ratio gets updated.
Parameters:
Last updated