Market Types
Reference for Market Types.
DutchAuctionConfig
Section titled “DutchAuctionConfig”Optional launch pricing boost configuration for a market.
struct DutchAuctionConfig
| Field | Type |
|---|---|
initBoost | MicroBps Initial boost magnitude at market start. |
duration | Seconds Duration over which the boost decays to zero. |
curvature | MicroBps Curve-shape parameter for boost decay. |
MarketBalances
Section titled “MarketBalances”Aggregate balances tracked directly by the market.
struct MarketBalances
| Field | Type |
|---|---|
reserveTokenBalance | RawTokenQuantity Internally accounted reserve liquidity owned by the market, excluding |
revenue escrow. Donation increases this value because the reserve has
no separate ERC-20 holder address of its own. |
| totalDebtBalance | RawTokenQuantity
Sum of all open reserve-token debt. For surplus calculations, this is
a reserve asset owed back to the market. |
| totalCollateralBalance | RawTokenQuantity
Sum of all AVM collateral deposited across positions. |
| revenueEscrowBalanceGroup | RawTokenQuantity
Group revenue escrow balance in reserve tokens. |
| revenueEscrowBalancePlatform | RawTokenQuantity
Platform revenue escrow balance in reserve tokens. |
MarketFlags
Section titled “MarketFlags”Per-market switches for enabling and pausing individual operations.
struct MarketFlags
| Field | Type |
|---|---|
canBuy | boolAllow purchases of newly issued AVM tokens. |
canSell | boolAllow sales of AVM tokens back into reserve liquidity. |
canBorrowReserve | boolAllow borrowing reserve tokens against AVM collateral. |
canRepayReserve | boolAllow repaying reserve-token debt. |
canDepositAvm | boolAllow depositing AVM tokens as collateral. |
canWithdrawAvm | boolAllow withdrawing AVM collateral. |
canExerciseOption | boolAllow exercising option tokens. |
canDonateLiquidity | boolAllow third parties to donate reserve liquidity. |
MarketState
Section titled “MarketState”struct MarketState
| Field | Type |
|---|---|
marketKind | MarketKind |
marketId | MarketId |
groupId | GroupId |
flags | MarketFlags |
balances | MarketBalances |
dutchAuctionConfig | DutchAuctionConfig |
tokens | TokenSet |
supplyOffset | int256 |
engineState | bytes |
TokenSet
Section titled “TokenSet”Token addresses and shared decimal precision for a market.
struct TokenSet
| Field | Type |
|---|---|
reserveToken | addressReserve asset used for issuance, redemption, and debt accounting. |
avmToken | addressIssued market token minted and burned by the market. |
optionToken | addressOption token associated with the market. |
decimals | uint8Shared decimals used by AVM, option, and reserve token accounting. |