VaultOracleFactoryConstants ​
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).
bytes32 internal constant LIQUIDITY_GOVERNANCE_SLOT =
0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103VAULT_T1_TYPE ​
uint256 internal constant VAULT_T1_TYPE = 10000VAULT_T2_SMART_COL_TYPE ​
uint256 internal constant VAULT_T2_SMART_COL_TYPE = 20000VAULT_T3_SMART_DEBT_TYPE ​
uint256 internal constant VAULT_T3_SMART_DEBT_TYPE = 30000VAULT_T4_SMART_COL_SMART_DEBT_TYPE ​
uint256 internal constant VAULT_T4_SMART_COL_SMART_DEBT_TYPE = 40000DEX_PRICE_SCALE ​
DEX range prices (upperRange/lowerRange) are 1e27; used to scale the band ratio.
uint256 internal constant DEX_PRICE_SCALE = 1e27MAX_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.
uint256 internal constant MAX_DEX_RANGE_RATIO = 1.5e27MAX_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.
uint256 internal constant MAX_PEG_BUFFER_PPM = 10_000LIQUIDITY ​
Liquidity protocol contract — used to resolve current governance for UUPS upgrades (readFromStorage).
address public immutable LIQUIDITYUSD_ORACLE ​
address public immutable USD_ORACLEVAULT_FACTORY ​
IFluidVaultFactory public immutable VAULT_FACTORYDEPLOYER_FACTORY ​
Shared FluidContractFactory — must match IFluidVault.constantsView().deployer on T2–T4 vaults.
IFluidContractFactory public immutable DEPLOYER_FACTORYT1_ORACLE_LOGIC ​
Per-type oracle deployment logics.
VaultT1OracleDeploymentLogic public immutable T1_ORACLE_LOGICT2_ORACLE_LOGIC ​
VaultT2OracleDeploymentLogic public immutable T2_ORACLE_LOGICT3_ORACLE_LOGIC ​
VaultT3OracleDeploymentLogic public immutable T3_ORACLE_LOGICT4_ORACLE_LOGIC ​
VaultT4OracleDeploymentLogic public immutable T4_ORACLE_LOGICTEAM_MULTISIG ​
Team multisig — may setVaultOracleDeployer together with governance (same hardcoded address as contracts/config auth contracts).
address public constant TEAM_MULTISIG = 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e