MarketRegistry
Functions
initialize
addPool
setFeeRatio
setInsuranceFundFeeRatio
setMaxOrdersPerMarket
setMarketMaxPriceSpreadRatio
setFeeDiscountRatio
getQuoteToken
Get the quote token address
Return Values:
getUniswapV3Factory
Get Uniswap factory address
Return Values:
getMaxOrdersPerMarket
Get max allowed orders per market
Return Values:
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:
getMarketMaxPriceSpreadRatio
if we didn't set the max spread ratio for the market, we will use the default value
Return Values:
getMarketInfo
Get the market info by given base token address
Parameters:
Return Values:
getMarketInfoByTrader
hasPool
Check if a pool exist by given base token address
Return Values:
Last updated