Constants ​
Inherits:LiquidityGovernanceAuth, SessionTypes, Structs
Constants ​
AUTH_CLASS_PAUSE ​
Auth class: 0 = none, 1 = pause-only, 2 = pause + unpause, 3 = + confirm multiplier.
uint8 internal constant AUTH_CLASS_PAUSE = 1AUTH_CLASS_PAUSE_UNPAUSE ​
uint8 internal constant AUTH_CLASS_PAUSE_UNPAUSE = 2AUTH_CLASS_CONFIRM_MULTIPLIER ​
uint8 internal constant AUTH_CLASS_CONFIRM_MULTIPLIER = 3SIX_DECIMALS ​
Scale for extended-hours cap percent (100% = 1e6).
uint256 internal constant SIX_DECIMALS = 1e6FOUR_DECIMALS ​
Scale for multiplier-band percent (100% = 1e4).
uint256 internal constant FOUR_DECIMALS = 1e4MULTIPLIER_PRECISION ​
Backed multiplier precision; also the shares arg for the deploy-time convertToAssets assert.
uint256 internal constant MULTIPLIER_PRECISION = 1e18MIN_CHAINLINK_HEARTBEAT ​
CL feed heartbeat (24h deltaC in feed OCR config, not readable on-chain) + 20 min grace.
uint256 internal constant MIN_CHAINLINK_HEARTBEAT = 24 hours + 20 minutesMAX_UPDATE_TIMESPAN_EXTENDED ​
Liquidate; operate on Holiday/Unknown; fallback when clamp skipped.
uint256 internal constant MAX_UPDATE_TIMESPAN_EXTENDED = 5 daysMULTIPLIER_BAND_PERIOD ​
How long the multiplier band accrues linearly before it stops growing.
uint256 internal constant MULTIPLIER_BAND_PERIOD = 30 daysMAX_ALLOWED_MULTIPLIER_CHANGE_PERCENT ​
Constructor ceiling for maxMultiplierChangePercent (1e2/1e4: 10% = 1000). 0 is allowed: freeze mode — any live ≠accepted needs confirm; exact match does not revert.
uint256 internal constant MAX_ALLOWED_MULTIPLIER_CHANGE_PERCENT = 1000MAX_RATE_MULTIPLIER ​
Optional deploy guard for rateMultiplier (e.g. 8-dec CL → 1e27 uses 1e19).
uint256 internal constant MAX_RATE_MULTIPLIER = 1e27MAX_REGULAR_HOURS_ROUND_LOOKBACK ​
Max CL rounds to walk when discovering the last RTH print.
uint256 internal constant MAX_REGULAR_HOURS_ROUND_LOOKBACK = 300REGULAR_HOURS_HINT_MAX_AGE ​
Stale hint sync / MH regularEnd → ignore hint or skip clamp (matches extended staleness).
uint256 internal constant REGULAR_HOURS_HINT_MAX_AGE = 5 daysREGULAR_HOURS_ANCHOR_BUFFER ​
Extra after official close still counted as RTH: updatedAt ∈ [start, end + this].
uint256 internal constant REGULAR_HOURS_ANCHOR_BUFFER = 2 minutesSCHEDULED_MULTIPLIER_FREEZE_BUFFER ​
Freeze pricing when a scheduled multiplier outside the band activates within this window.
uint256 internal constant SCHEDULED_MULTIPLIER_FREEZE_BUFFER = 24 hoursPRICE_GAP_REFERENCE_MAX_AGE ​
Gap reference older than this is skipped (fail-open; spans long weekends).
uint256 internal constant PRICE_GAP_REFERENCE_MAX_AGE = 5 daysPRICE_GAP_REFERENCE_ROLL_DELAY ​
Min age of the stored reference round before a different round may replace it; also no roll this early into REGULAR. Stops walking the gap guard through a multi-round split print.
uint256 internal constant PRICE_GAP_REFERENCE_ROLL_DELAY = 20 minutesCHAINLINK_FEED ​
Chainlink AggregatorV3 equity feed.
address internal immutable CHAINLINK_FEEDBACKED_WRAPPER ​
Backed wrapper; deploy-time passthrough assert only (pricing reads the underlying).
address internal immutable BACKED_WRAPPERBACKED_UNDERLYING ​
Backed rebasing underlying (wrapper.asset()): live multiplier + schedule source.
address internal immutable BACKED_UNDERLYINGMARKET_HOURS ​
Shared US equity session schedule.
IFluidUsEquityMarketHours internal immutable MARKET_HOURSRATE_MULTIPLIER ​
Scales CL×multiplier into Fluid oracle decimals (e.g. 8-dec → 1e27).
uint256 internal immutable RATE_MULTIPLIERMAX_MULTIPLIER_CHANGE_PERCENT ​
Max accepted↔live drift over MULTIPLIER_BAND_PERIOD (1e2: 1% = 100).
uint256 internal immutable MAX_MULTIPLIER_CHANGE_PERCENTMAX_EXTENDED_HOURS_CAP_PERCENT ​
± vs RTH anchor in non-REGULAR (1e6: 1% = 1e4).
uint256 internal immutable MAX_EXTENDED_HOURS_CAP_PERCENTMAX_PRICE_GAP_DOWN_PERCENT ​
Strict lower price-gap bound vs anchor reference (1e4: 42% = 4200); required, < 100%.
uint256 internal immutable MAX_PRICE_GAP_DOWN_PERCENTMAX_PRICE_GAP_UP_PERCENT ​
Strict upper price-gap bound vs anchor reference (1e4: 68% = 6800; mirror 4 * down - 1).
uint256 internal immutable MAX_PRICE_GAP_UP_PERCENTFunctions ​
constructor ​
constructor(CLXStockOracleConstructorParams memory p_) LiquidityGovernanceAuth(p_.liquidity);