Skip to main content

KandelSeeder

KandelSeeder​

NewKandel​

event NewKandel(address owner, bytes32 baseQuoteOlKeyHash, bytes32 quoteBaseOlKeyHash, address kandel)

a new Kandel has been deployed. By emitting this data, an indexer will be able to keep track of what Kandel strats are deployed, what market its deployed on and who the owner is.

Parameters​

NameTypeDescription
owneraddressthe owner of the strat. This is indexed so that RPC calls can filter on it.
baseQuoteOlKeyHashbytes32the hash of the base/quote offer list key. This is indexed so that RPC calls can filter on it.
quoteBaseOlKeyHashbytes32the hash of the quote/base offer list key. This is indexed so that RPC calls can filter on it.
kandeladdressthe address of the deployed strat.

constructor​

constructor(contract IMangrove mgv, uint256 kandelGasreq) public

constructor for KandelSeeder.

Parameters​

NameTypeDescription
mgvcontract IMangroveThe Mangrove deployment.
kandelGasrequint256the gasreq to use for offers.

_deployKandel​

function _deployKandel(struct OLKey olKeyBaseQuote, bool) internal returns (contract GeometricKandel kandel)

deploys a new Kandel contract for the given seed parameters.

Parameters​

NameTypeDescription
olKeyBaseQuotestruct OLKeyThe OLKey for the outbound_tkn base and inbound_tkn quote offer list Kandel will act on, the flipped OLKey is used for the opposite offer list.
bool

Return Values​

NameTypeDescription
kandelcontract GeometricKandelthe Kandel contract.