Skip to content

VaultOracleFactoryConstants ​

Git Source

Vault type identifiers (must match IFluidVault.TYPE() on T2–T4).

Constants ​

LIQUIDITY_GOVERNANCE_SLOT ​

Same slot as Liquidity governance / EIP-1967 proxy admin (GOVERNANCE_SLOT in liquidity/common/variables.sol).

solidity
bytes32 internal constant LIQUIDITY_GOVERNANCE_SLOT =
    0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103

VAULT_T1_TYPE ​

solidity
uint256 internal constant VAULT_T1_TYPE = 10000

VAULT_T2_SMART_COL_TYPE ​

solidity
uint256 internal constant VAULT_T2_SMART_COL_TYPE = 20000

VAULT_T3_SMART_DEBT_TYPE ​

solidity
uint256 internal constant VAULT_T3_SMART_DEBT_TYPE = 30000

VAULT_T4_SMART_COL_SMART_DEBT_TYPE ​

solidity
uint256 internal constant VAULT_T4_SMART_COL_SMART_DEBT_TYPE = 40000

DEX_PRICE_SCALE ​

DEX range prices (upperRange/lowerRange) are 1e27; used to scale the band ratio.

solidity
uint256 internal constant DEX_PRICE_SCALE = 1e27

MAX_DEX_RANGE_RATIO ​

Max DEX band ratio (upperRange / lowerRange, 1e27) for a DEX-share oracle. 1.5e27 keeps worst-case skew <0.5%; real peg pools sit ≤ ~1.02, volatile pools far wider.

solidity
uint256 internal constant MAX_DEX_RANGE_RATIO = 1.5e27

MAX_PEG_BUFFER_PPM ​

Upper bound (ppm on 1e6) for either DEX share peg buffer. The buffer only covers pricing uncertainty the USD oracle feeds cannot correct, so anything above 1% signals a misconfiguration, not a risk choice.

solidity
uint256 internal constant MAX_PEG_BUFFER_PPM = 10_000

LIQUIDITY ​

Liquidity protocol contract — used to resolve current governance for UUPS upgrades (readFromStorage).

solidity
address public immutable LIQUIDITY

USD_ORACLE ​

solidity
address public immutable USD_ORACLE

VAULT_FACTORY ​

solidity
IFluidVaultFactory public immutable VAULT_FACTORY

DEPLOYER_FACTORY ​

Shared FluidContractFactory — must match IFluidVault.constantsView().deployer on T2–T4 vaults.

solidity
IFluidContractFactory public immutable DEPLOYER_FACTORY

T1_ORACLE_LOGIC ​

Per-type oracle deployment logics.

solidity
VaultT1OracleDeploymentLogic public immutable T1_ORACLE_LOGIC

T2_ORACLE_LOGIC ​

solidity
VaultT2OracleDeploymentLogic public immutable T2_ORACLE_LOGIC

T3_ORACLE_LOGIC ​

solidity
VaultT3OracleDeploymentLogic public immutable T3_ORACLE_LOGIC

T4_ORACLE_LOGIC ​

solidity
VaultT4OracleDeploymentLogic public immutable T4_ORACLE_LOGIC

TEAM_MULTISIG ​

Team multisig — may setVaultOracleDeployer together with governance (same hardcoded address as contracts/config auth contracts).

solidity
address public constant TEAM_MULTISIG = 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e