IMarketRegistry
Last updated
Was this helpful?
Last updated
Was this helpful?
Get the pool address (UNIv3 pool) by given base token address
Parameters:
baseToken
address
The address of the base token
Return Values:
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
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
Get the market info by given trader address and base token address
trader
address
The address of the trader
baseToken
address
The address of the base token
info
struct IMarketRegistry.MarketInfo
The market info encoded as MarketInfo
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
Check if a pool exist by given base token address
hasPool
bool
True if the pool exist, false otherwise
marketMaxPriceSpreadRatio
uint24
Max price spread ratio of the market
Emitted when a new market is created.
baseToken
address
The address of the base token
feeRatio
uint24
Fee ratio of the market
pool
address
The address of the pool
Emitted when the fee ratio of a market is updated.
baseToken
address
The address of the base token
feeRatio
uint24
Fee ratio of the market
Emitted when the insurance fund fee ratio is updated.
baseToken
address
The address of the base token
feeRatio
uint24
Insurance fund fee ratio
Emitted when the max orders per market is updated.
maxOrdersPerMarket
uint8
Max orders per market
Emitted when the max market price spread ratio is updated.
baseToken
address
The address of the base token
spreadRatio
uint24
Max market price spread ratio
Emitted when the trader's fee discount ratio gets updated.
trader
address
The address of the trader
discountRatio
uint24
Fee discount ratio (percent-off)
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Return Values:
Return Values:
Return Values:
Return Values:
Return Values:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters: