CloberMarketDeployer
CloberMarketDeployer
Deploy
event Deploy(address market)
Emitted when a new market is deployed.
Parameters
Name | Type | Description |
---|---|---|
market | address | The address of the generated market. |
deploy
function deploy(address orderToken, address quoteToken, address baseToken, bytes32 salt, uint96 quoteUnit, int24 makerFee, uint24 takerFee, address priceBook) external returns (address)
Deploys a new stable market.
Only the market factory can call this function.
Parameters
Name | Type | Description |
---|---|---|
orderToken | address | The address of the new market's order token. |
quoteToken | address | The quote token address. |
baseToken | address | The base token address. |
salt | bytes32 | The salt used to compute the address of the contract. |
quoteUnit | uint96 | The amount that one raw amount represents in quote tokens. |
makerFee | int24 | The maker fee. Paid to the maker when negative, paid by the maker when positive. Every 10000 represents a 1% fee on trade volume. |
takerFee | uint24 | The taker fee. Paid by the taker. Every 10000 represents a 1% fee on trade volume. |
priceBook | address | The address of the price book. |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The address of the deployed stable market. |