Skip to main content

CloberVolatileMarketDeployer

CloberVolatileMarketDeployer

deploy

function deploy(address orderToken, address quoteToken, address baseToken, bytes32 salt, uint96 quoteUnit, int24 makerFee, uint24 takerFee, uint128 a, uint128 r) external returns (address)

Deploy a new volatile market.

Only the market factory can call this function.

Parameters

NameTypeDescription
orderTokenaddressThe address of the new market's order token.
quoteTokenaddressThe quote token address.
baseTokenaddressThe base token address.
saltbytes32The salt used to compute the address of the contract.
quoteUnituint96The amount that one raw amount represents in quote tokens.
makerFeeint24The maker fee. Paid to the maker when negative, paid by the maker when positive. Every 10000 represents a 1% fee on trade volume.
takerFeeuint24The taker fee. Paid by the taker. Every 10000 represents a 1% fee on trade volume.
auint128The scale factor of the price points.
ruint128The common ratio between price points.

Return Values

NameTypeDescription
[0]addressThe address of the deployed volatile market.