Skip to content

Constants ​

Git Source

Inherits:LiquidityGovernanceAuth, SessionTypes, Structs

Constants ​

AUTH_CLASS_PAUSE ​

Auth class: 0 = none, 1 = pause-only, 2 = pause + unpause, 3 = + confirm multiplier.

solidity
uint8 internal constant AUTH_CLASS_PAUSE = 1

AUTH_CLASS_PAUSE_UNPAUSE ​

solidity
uint8 internal constant AUTH_CLASS_PAUSE_UNPAUSE = 2

AUTH_CLASS_CONFIRM_MULTIPLIER ​

solidity
uint8 internal constant AUTH_CLASS_CONFIRM_MULTIPLIER = 3

SIX_DECIMALS ​

Scale for extended-hours cap percent (100% = 1e6).

solidity
uint256 internal constant SIX_DECIMALS = 1e6

FOUR_DECIMALS ​

Scale for multiplier-band percent (100% = 1e4).

solidity
uint256 internal constant FOUR_DECIMALS = 1e4

MULTIPLIER_PRECISION ​

Backed multiplier precision; also the shares arg for the deploy-time convertToAssets assert.

solidity
uint256 internal constant MULTIPLIER_PRECISION = 1e18

CL feed heartbeat (24h deltaC in feed OCR config, not readable on-chain) + 20 min grace.

solidity
uint256 internal constant MIN_CHAINLINK_HEARTBEAT = 24 hours + 20 minutes

MAX_UPDATE_TIMESPAN_EXTENDED ​

Liquidate; operate on Holiday/Unknown; fallback when clamp skipped.

solidity
uint256 internal constant MAX_UPDATE_TIMESPAN_EXTENDED = 5 days

MULTIPLIER_BAND_PERIOD ​

How long the multiplier band accrues linearly before it stops growing.

solidity
uint256 internal constant MULTIPLIER_BAND_PERIOD = 30 days

MAX_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.

solidity
uint256 internal constant MAX_ALLOWED_MULTIPLIER_CHANGE_PERCENT = 1000

MAX_RATE_MULTIPLIER ​

Optional deploy guard for rateMultiplier (e.g. 8-dec CL → 1e27 uses 1e19).

solidity
uint256 internal constant MAX_RATE_MULTIPLIER = 1e27

MAX_REGULAR_HOURS_ROUND_LOOKBACK ​

Max CL rounds to walk when discovering the last RTH print.

solidity
uint256 internal constant MAX_REGULAR_HOURS_ROUND_LOOKBACK = 300

REGULAR_HOURS_HINT_MAX_AGE ​

Stale hint sync / MH regularEnd → ignore hint or skip clamp (matches extended staleness).

solidity
uint256 internal constant REGULAR_HOURS_HINT_MAX_AGE = 5 days

REGULAR_HOURS_ANCHOR_BUFFER ​

Extra after official close still counted as RTH: updatedAt ∈ [start, end + this].

solidity
uint256 internal constant REGULAR_HOURS_ANCHOR_BUFFER = 2 minutes

SCHEDULED_MULTIPLIER_FREEZE_BUFFER ​

Freeze pricing when a scheduled multiplier outside the band activates within this window.

solidity
uint256 internal constant SCHEDULED_MULTIPLIER_FREEZE_BUFFER = 24 hours

PRICE_GAP_REFERENCE_MAX_AGE ​

Gap reference older than this is skipped (fail-open; spans long weekends).

solidity
uint256 internal constant PRICE_GAP_REFERENCE_MAX_AGE = 5 days

PRICE_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.

solidity
uint256 internal constant PRICE_GAP_REFERENCE_ROLL_DELAY = 20 minutes

Chainlink AggregatorV3 equity feed.

solidity
address internal immutable CHAINLINK_FEED

BACKED_WRAPPER ​

Backed wrapper; deploy-time passthrough assert only (pricing reads the underlying).

solidity
address internal immutable BACKED_WRAPPER

BACKED_UNDERLYING ​

Backed rebasing underlying (wrapper.asset()): live multiplier + schedule source.

solidity
address internal immutable BACKED_UNDERLYING

MARKET_HOURS ​

Shared US equity session schedule.

solidity
IFluidUsEquityMarketHours internal immutable MARKET_HOURS

RATE_MULTIPLIER ​

Scales CL×multiplier into Fluid oracle decimals (e.g. 8-dec → 1e27).

solidity
uint256 internal immutable RATE_MULTIPLIER

MAX_MULTIPLIER_CHANGE_PERCENT ​

Max accepted↔live drift over MULTIPLIER_BAND_PERIOD (1e2: 1% = 100).

solidity
uint256 internal immutable MAX_MULTIPLIER_CHANGE_PERCENT

MAX_EXTENDED_HOURS_CAP_PERCENT ​

± vs RTH anchor in non-REGULAR (1e6: 1% = 1e4).

solidity
uint256 internal immutable MAX_EXTENDED_HOURS_CAP_PERCENT

MAX_PRICE_GAP_DOWN_PERCENT ​

Strict lower price-gap bound vs anchor reference (1e4: 42% = 4200); required, < 100%.

solidity
uint256 internal immutable MAX_PRICE_GAP_DOWN_PERCENT

MAX_PRICE_GAP_UP_PERCENT ​

Strict upper price-gap bound vs anchor reference (1e4: 68% = 6800; mirror 4 * down - 1).

solidity
uint256 internal immutable MAX_PRICE_GAP_UP_PERCENT

Functions ​

constructor ​

solidity
constructor(CLXStockOracleConstructorParams memory p_) LiquidityGovernanceAuth(p_.liquidity);