Fraction ProtocolsubInternalFacetsmarginCallPhaseFacetsmarginCallTimeFacetsfixedDurationTime

FixedDurationMarginCallFacet

FixedDurationMarginCallFacet

This facet should always contain the hook from state facet and the internal hook of lending oracle facet

UnauthorizedInitialization

error UnauthorizedInitialization(address account)

Thrown when trying to initialize from non admin account.

UnauthorizedUpdate

error UnauthorizedUpdate(address account)

Thrown when trying to update margin call time from non admin account.

MarginCallDurationUpdated

event MarginCallDurationUpdated(uint256 marginCallDuration)

Emitted when the margin call duration is updated.

initMarginCallTimeFacet

function initMarginCallTimeFacet(bytes initMarginCallTimeData) external

setAndCheckMarginCallTimes

function setAndCheckMarginCallTimes(bytes) external view

checkMarginCallTimes

function checkMarginCallTimes(uint256 campaignId) external view

triggerMarginCallPeriod

function triggerMarginCallPeriod(uint256 campaignId) external

isMarginCallPeriodExpired

function isMarginCallPeriodExpired(uint256 campaignId) external view returns (bool)

getMarginCallTimes

function getMarginCallTimes(uint256 campaignId) external view returns (uint256, uint256)

setMarginCallDuration

function setMarginCallDuration(uint256 marginCallDuration) external

On this page