Skip to main content

OracleProviderProperties.sol

OracleProviderProperties

struct OracleProviderProperties {
uint32 minTakeProfitBPS;
uint32 maxTakeProfitBPS;
uint8 leverageLevel;
}

The OracleProviderProperties struct represents properties of the oracle provider.

NameTypeDescription
minTakeProfitBPSuint32The minimum take-profit basis points.
maxTakeProfitBPSuint32The maximum take-profit basis points.
leverageLeveluint8The 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)