Skip to content

IMarketQuoter

Fee-aware, view-only quote surface that compiles market fees on top of IPricingCurve outputs.

This interface is intentionally read-only and does not commit engine state or move tokens.Token-amount inputs are RawTokenQuantity — raw integer counts in the relevant token’s native decimals (no implicit rescaling).Discovery: the current market-actions implementation is also the quoter — resolve it via IAvmDirectoryViews.marketActionsImpl() and call these views directly at that address. Quote and execute logic ship in one artifact, so rotating the actions implementation upgrades both atomically and the quoted price cannot drift from the executed one across an upgrade.

function quoteBuyWithExactAvmTokensOut(address market, RawTokenQuantity avmTokensOut) returns (struct DataTypes.FeeAwareBuyExactAvmOutQuote) view

Parameters

Returns

function quoteBuyWithExactReserveTokensIn(address market, RawTokenQuantity grossReserveTokensIn) returns (struct DataTypes.FeeAwareBuyExactReserveInQuote) view

Parameters

Returns

Quote exercising optionTokensIn call options struck at the floor.

The fee prices the option premium (current_price - floor), so it is zero when the market sits at its floor; only the strike enters liquidity.

function quoteExerciseOptionTokens(address market, RawTokenQuantity optionTokensIn) returns (struct DataTypes.FeeAwareExerciseOptionQuote) view

Parameters

Returns

Quote a floor redemption with exact AVM-token input.

function quoteRedeemAtFloorWithExactAvmTokensIn(address market, RawTokenQuantity avmTokensIn) returns (struct DataTypes.FeeAwareRedeemAtFloorExactAvmInQuote) view

Parameters

Returns

function quoteSellWithExactAvmTokensIn(address market, RawTokenQuantity avmTokensIn) returns (struct DataTypes.FeeAwareSellExactAvmInQuote) view

Parameters

Returns

Quote a sell whose reserve-token output is exact after fees.

function quoteSellWithExactReserveTokensOut(address market, RawTokenQuantity netReserveTokensOut) returns (struct DataTypes.FeeAwareSellExactReserveOutQuote) view

Parameters

Returns