ProductLibrary
ProductOpenInterestLongIncreaseOutOfRange
error ProductOpenInterestLongIncreaseOutOfRange()
ProductOpenInterestLongDecreaseOutOfRange
error ProductOpenInterestLongDecreaseOutOfRange()
ProductOpenInterestShortIncreaseOutOfRange
error ProductOpenInterestShortIncreaseOutOfRange()
ProductOpenInterestShortDecreaseOutOfRange
error ProductOpenInterestShortDecreaseOutOfRange()
getUnchecked
function getUnchecked(struct ProductSchema schema, ProductId id) internal pure returns (struct ProductPtr)
exists
function exists(struct ProductPtr ptr) internal view returns (bool)
resolve
function resolve(struct ProductSchema schema, ProductId id) internal view returns (struct ProductPtr)
add
function add(
struct ProductSchema schema,
struct IExchangeDomain.ProductParams props
) internal returns (
struct ProductPtr ptr
)
read
function read(struct ProductPtr ptr) internal view returns (struct IExchangeDomain.Product)
productId
function productId(struct ProductPtr ptr) internal view returns (ProductId)
setProductId
function setProductId(struct ProductPtr ptr, ProductId value) internal
maxLeverage
function maxLeverage(struct ProductPtr ptr) internal view returns (FPUnsigned)
setMaxLeverage
function setMaxLeverage(struct ProductPtr ptr, FPUnsigned value) internal
fee
function fee(struct ProductPtr ptr) internal view returns (FPUnsigned)
setFee
function setFee(struct ProductPtr ptr, FPUnsigned value) internal
isActive
function isActive(struct ProductPtr ptr) internal view returns (bool)
setIsActive
function setIsActive(struct ProductPtr ptr, bool value) internal
openInterestLong
function openInterestLong(struct ProductPtr ptr) internal view returns (FPUnsigned)
_setOpenInterestLong
function _setOpenInterestLong(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestLongIncrease
function updateOpenInterestLongIncrease(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestLongDecrease
function updateOpenInterestLongDecrease(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestLongDecreaseOrZero
function updateOpenInterestLongDecreaseOrZero(struct ProductPtr ptr, FPUnsigned value) internal
openInterestShort
function openInterestShort(struct ProductPtr ptr) internal view returns (FPUnsigned)
_setOpenInterestShort
function _setOpenInterestShort(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestShortIncrease
function updateOpenInterestShortIncrease(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestShortDecrease
function updateOpenInterestShortDecrease(struct ProductPtr ptr, FPUnsigned value) internal
updateOpenInterestShortDecreaseOrZero
function updateOpenInterestShortDecreaseOrZero(struct ProductPtr ptr, FPUnsigned value) internal
minPriceChange
function minPriceChange(struct ProductPtr ptr) internal view returns (FPUnsigned)
setMinPriceChange
function setMinPriceChange(struct ProductPtr ptr, FPUnsigned value) internal
weight
function weight(struct ProductPtr ptr) internal view returns (FPUnsigned)
setWeight
function setWeight(struct ProductPtr ptr, FPUnsigned value) internal
reserveMultiplier
function reserveMultiplier(struct ProductPtr ptr) internal view returns (FPUnsigned)
setReserveMultiplier
function setReserveMultiplier(struct ProductPtr ptr, FPUnsigned value) internal
exposureMultiplier
function exposureMultiplier(struct ProductPtr ptr) internal view returns (FPUnsigned)
setExposureMultiplier
function setExposureMultiplier(struct ProductPtr ptr, FPUnsigned value) internal
liquidationThreshold
function liquidationThreshold(struct ProductPtr ptr) internal view returns (FPUnsigned)
setLiquidationThreshold
function setLiquidationThreshold(struct ProductPtr ptr, FPUnsigned value) internal
liquidationBounty
function liquidationBounty(struct ProductPtr ptr) internal view returns (FPUnsigned)
setLiquidationBounty
function setLiquidationBounty(struct ProductPtr ptr, FPUnsigned value) internal
fundingExponent
function fundingExponent(struct ProductPtr ptr) internal view returns (FPUnsigned)
setFundingExponent
function setFundingExponent(struct ProductPtr ptr, FPUnsigned value) internal