Skip to main content

FundingLibrary

CumulativeFundingIncreaseOutOfRange

error CumulativeFundingIncreaseOutOfRange()

maxFundingRate

function maxFundingRate(struct FundingSchema schema) internal view returns (FPUnsigned)

setMaxFundingRate

function setMaxFundingRate(struct FundingSchema schema, FPUnsigned value) internal

maxInterestRate

function maxInterestRate(struct FundingSchema schema) internal view returns (FPUnsigned)

setMaxInterestRate

function setMaxInterestRate(struct FundingSchema schema, FPUnsigned value) internal

minFundingMultiplier

function minFundingMultiplier(struct FundingSchema schema) internal view returns (FPUnsigned)

setMinFundingMultiplier

function setMinFundingMultiplier(struct FundingSchema schema, FPUnsigned value) internal

fundingMultiplier

function fundingMultiplier(struct FundingSchema schema, ProductId productId) internal view returns (FPUnsigned)

setFundingMultiplier

function setFundingMultiplier(struct FundingSchema schema, ProductId productId, FPUnsigned value) internal

cumulativeFunding

function cumulativeFunding(struct FundingSchema schema, ProductId productId) internal view returns (FPSigned)

updateCumulativeFundingDelta

function updateCumulativeFundingDelta(
struct FundingSchema schema,
ProductId productId,
FPSigned delta
) internal

_setCumulativeFunding

function _setCumulativeFunding(struct FundingSchema schema, ProductId productId, FPSigned value) internal

lastUpdateTime

function lastUpdateTime(struct FundingSchema schema, ProductId productId) internal view returns (uint64)

setLastUpdateTime

function setLastUpdateTime(struct FundingSchema schema, ProductId productId, uint64 value) internal

baseInterestRate

function baseInterestRate(struct FundingSchema schema, ProductId productId) internal view returns (FPUnsigned)

setBaseInterestRate

function setBaseInterestRate(struct FundingSchema schema, ProductId productId, FPUnsigned value) internal

cumulativeBaseInterest

function cumulativeBaseInterest(
struct FundingSchema schema,
ProductId productId
) internal view returns (
FPUnsigned
)

updateCumulativeBaseInterestIncrease

function updateCumulativeBaseInterestIncrease(
struct FundingSchema schema,
ProductId productId,
FPUnsigned value
) internal

_setCumulativeBaseInterest

function _setCumulativeBaseInterest(
struct FundingSchema schema,
ProductId productId,
FPUnsigned value
) internal

setDefaults

function setDefaults(struct FundingSchema schema) internal