Skip to content

Market Types

Reference for Market Types.

Optional launch pricing boost configuration for a market.

struct DutchAuctionConfig

FieldType
initBoostMicroBps
Initial boost magnitude at market start.
durationSeconds
Duration over which the boost decays to zero.
curvatureMicroBps
Curve-shape parameter for boost decay.

Aggregate balances tracked directly by the market.

struct MarketBalances

FieldType
reserveTokenBalanceRawTokenQuantity
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. |

Per-market switches for enabling and pausing individual operations.

struct MarketFlags

FieldType
canBuybool
Allow purchases of newly issued AVM tokens.
canSellbool
Allow sales of AVM tokens back into reserve liquidity.
canBorrowReservebool
Allow borrowing reserve tokens against AVM collateral.
canRepayReservebool
Allow repaying reserve-token debt.
canDepositAvmbool
Allow depositing AVM tokens as collateral.
canWithdrawAvmbool
Allow withdrawing AVM collateral.
canExerciseOptionbool
Allow exercising option tokens.
canDonateLiquiditybool
Allow third parties to donate reserve liquidity.

struct MarketState

FieldType
marketKindMarketKind
marketIdMarketId
groupIdGroupId
flagsMarketFlags
balancesMarketBalances
dutchAuctionConfigDutchAuctionConfig
tokensTokenSet
supplyOffsetint256
engineStatebytes

Token addresses and shared decimal precision for a market.

struct TokenSet

FieldType
reserveTokenaddress
Reserve asset used for issuance, redemption, and debt accounting.
avmTokenaddress
Issued market token minted and burned by the market.
optionTokenaddress
Option token associated with the market.
decimalsuint8
Shared decimals used by AVM, option, and reserve token accounting.