OracleProviderProperties.sol
OracleProviderProperties
struct OracleProviderProperties {
uint32 minTakeProfitBPS;
uint32 maxTakeProfitBPS;
uint8 leverageLevel;
}
The OracleProviderProperties struct represents properties of the oracle provider.
Name | Type | Description |
---|---|---|
minTakeProfitBPS | uint32 | The minimum take-profit basis points. |
maxTakeProfitBPS | uint32 | The maximum take-profit basis points. |
leverageLevel | uint8 | The leverage level of the oracle provider. |
OracleProviderPropertiesLib
checkValidLeverageLevel
function checkValidLeverageLevel(uint8 leverageLevel) internal pure returns (bool)
maxAllowableLeverage
function maxAllowableLeverage(struct OracleProviderProperties self) internal pure returns (uint256 leverage)