MarketRegistry
Last updated
Was this helpful?
Last updated
Was this helpful?
Get the quote token address
quoteToken
address
The address of the quote token
Get Uniswap factory address
factory
address
The address of the Uniswap factory
Get max allowed orders per market
maxOrdersPerMarket
uint8
The max allowed orders per market
Get the pool address (UNIv3 pool) by given base token address
baseToken
address
The address of the base token
pool
address
The address of the pool
Get the fee ratio of a given market
The ratio is in 1e6
format, that means 1% = 1e4
baseToken
address
The address of the base token
feeRatio
uint24
The fee ratio of the market, it is a decimal in 1e6
Get the insurance fund fee ratio of a given market
The ratio is in 1e6
format, that means 1% = 1e4
baseToken
address
The address of the base token
feeRatio
uint24
The fee ratio of the market, it is a decimal in 1e6
if we didn't set the max spread ratio for the market, we will use the default value
marketMaxPriceSpreadRatio
uint24
Max price spread ratio of the market
Get the market info by given base token address
baseToken
address
The address of the base token
info
struct IMarketRegistry.MarketInfo
The market info encoded as MarketInfo
Check if a pool exist by given base token address
hasPool
bool
True if the pool exist, false otherwise
Return Values:
Return Values:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Return Values:
Parameters:
Return Values:
Return Values: