Liquidations¶
Description¶
Documentation Pending
This contract documentation is missing some descriptions.
Source: contracts/Liquidations.sol
Structs¶
LiquidationEntry
¶
Field | Type | Description |
---|---|---|
deadline |
uint256 |
TBA |
caller |
address |
TBA |
Variables¶
LIQUIDATION_CALLER
¶
Type: bytes32
LIQUIDATION_DEADLINE
¶
Type: bytes32
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
``
Views¶
calculateAmountToFixCollateral
¶
Details
Signature
calculateAmountToFixCollateral(uint256 debtBalance, uint256 collateral) view returns (uint256)
Visibility
external
State Mutability
view
getLiquidationDeadlineForAccount
¶
Details
Signature
getLiquidationDeadlineForAccount(address account) view returns (uint256)
Visibility
external
State Mutability
view
isLiquidationDeadlinePassed
¶
Details
Signature
isLiquidationDeadlinePassed(address account) view returns (bool)
Visibility
external
State Mutability
view
isOpenForLiquidation
¶
Details
Signature
isOpenForLiquidation(address account) view returns (bool)
Visibility
external
State Mutability
view
issuanceRatio
¶
Details
Signature
issuanceRatio() view returns (uint256)
Visibility
external
State Mutability
view
liquidationCollateralRatio
¶
Details
Signature
liquidationCollateralRatio() view returns (uint256)
Visibility
external
State Mutability
view
liquidationDelay
¶
Type: uint256
Details
Signature
liquidationDelay() view returns (uint256)
Visibility
external
State Mutability
view
liquidationPenalty
¶
Type: uint256
Details
Signature
liquidationPenalty() view returns (uint256)
Visibility
external
State Mutability
view
liquidationRatio
¶
Type: uint256
Details
Signature
liquidationRatio() view returns (uint256)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
Restricted Functions¶
removeAccountInLiquidation
¶
Details
Signature
removeAccountInLiquidation(address account)
Visibility
external
State Mutability
``
Modifiers
Internal Functions¶
_deadlinePassed
¶
Details
Signature
_deadlinePassed(uint256 deadline) view returns (bool)
Visibility
internal
State Mutability
view
_getKey
¶
Details
Signature
_getKey(bytes32 _scope, address _account) pure returns (bytes32)
Visibility
internal
State Mutability
pure
_getLiquidationEntryForAccount
¶
Details
Signature
_getLiquidationEntryForAccount(address account) view returns (struct Liquidations.LiquidationEntry _liquidation)
Visibility
internal
State Mutability
view
_removeLiquidationEntry
¶
Details
Signature
_removeLiquidationEntry(address _account)
Visibility
internal
State Mutability
``
Emits
_storeLiquidationEntry
¶
Details
Signature
_storeLiquidationEntry(address _account, uint256 _deadline, address _caller)
Visibility
internal
State Mutability
``
eternalStorageLiquidations
¶
Details
Signature
eternalStorageLiquidations() view returns (contract EternalStorage)
Visibility
internal
State Mutability
view
exchangeRates
¶
Details
Signature
exchangeRates() view returns (contract IExchangeRates)
Visibility
internal
State Mutability
view
issuer
¶
Details
Signature
issuer() view returns (contract IIssuer)
Visibility
internal
State Mutability
view
synthetix
¶
Details
Signature
synthetix() view returns (contract ISynthetix)
Visibility
internal
State Mutability
view
systemStatus
¶
Details
Signature
systemStatus() view returns (contract ISystemStatus)
Visibility
internal
State Mutability
view
External Functions¶
checkAndRemoveAccountInLiquidation
¶
Details
Signature
checkAndRemoveAccountInLiquidation(address account)
Visibility
external
State Mutability
``
Requires
Modifiers
flagAccountForLiquidation
¶
Details
Signature
flagAccountForLiquidation(address account)
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
Modifiers¶
onlyIssuer
¶
rateNotInvalid
¶
Signature: rateNotInvalid(bytes32 currencyKey)
Events¶
AccountFlaggedForLiquidation
¶
Signature: AccountFlaggedForLiquidation(address account, uint256 deadline)
AccountRemovedFromLiquidation
¶
Signature: AccountRemovedFromLiquidation(address account, uint256 time)