IMarketGroupAdmin
Overview
Section titled “Overview”Operations restricted to the active market-group admin (the owner of the market’s group, as resolved through IAvmDirectory.getMarketGroup).
IMarketGroupAdmin
Section titled “IMarketGroupAdmin”Group admins manage their own market: per-operation flag toggles, floor raises within an existing curve, and group-revenue collection. Engine swaps and platform-revenue collection are intentionally excluded from this surface and live on the non-public protocol-admin surface.Unit conventions on this surface. External market entry points speak in RawTokenQuantity and ExchangeRate. RawTokenQuantity is an unscaled integer count of a token’s smallest unit and carries no assumption about decimal precision. ExchangeRate is an unsigned Fixed18 y-value ratio; in ABI terms it is a uint256, but the integer is the 18-decimal floor price or exchange rate itself. The market converts raw x-values to Fixed18Value only when it calls the pricing engine.
Functions
Section titled “Functions”collectGroupRevenue
Section titled “collectGroupRevenue”function collectGroupRevenue(RawTokenQuantity amount, address recipient) returns (RawTokenQuantity) nonpayableParameters
amount— RawTokenQuantityrecipient—address
Returns
collected— RawTokenQuantity
raiseFloorFromExcessLiquidity
Section titled “raiseFloorFromExcessLiquidity”Raise floor using surplus reserve liquidity already held by the market.
This is the separate operation that may consume surplus created by donateLiquidity; donation itself does not raise the floor.
@newFloorPrice — Target floor price as an unsigned Fixed18 exchange rate (reserve token per AVM token).
function raiseFloorFromExcessLiquidity(ExchangeRate newFloorPrice) nonpayableParameters
newFloorPrice— ExchangeRate
raiseFloorPreserveArea
Section titled “raiseFloorPreserveArea”Raise floor while preserving curve area by explicitly choosing the new ramp end.
@newFloorPrice — Target floor price as an unsigned Fixed18 exchange rate (reserve token per AVM token).
@newRampEndSupply — Target ramp-end x-value as an unscaled raw count of the AVM token’s smallest unit.
function raiseFloorPreserveArea(RawTokenQuantity newRampEndSupply, ExchangeRate newFloorPrice) nonpayableParameters
newRampEndSupply— RawTokenQuantitynewFloorPrice— ExchangeRate
setMarketFlags
Section titled “setMarketFlags”function setMarketFlags(struct MarketFlags newFlags) nonpayableParameters
newFlags— MarketFlags