MemoryStructs ​
Structs ​
SourceConfig ​
solidity
struct SourceConfig {
uint8 sourceType;
address source;
uint16 capOperand; // cap bound in 2-decimal precision (100 = 1.00). 0 = no cap for this leg.
}PriceReadContext ​
Read context threaded through the price tree as one memory pointer (avoids stack-too-deep). isWrite selects _readFluidSourceWrite at Fluid/capped leaves.
solidity
struct PriceReadContext {
bool isOperate;
bool isCollateral;
bool isWrite;
}OracleKey ​
solidity
struct OracleKey {
address token;
uint256 eMode;
uint8 isOperate; // 0 = liquidate, 1 = operate
uint8 isCollateral; // 0 = debt, 1 = collateral
}