Skip to content

Liquidations

Description

Documentation Pending

This contract documentation is missing some descriptions.

Source: contracts/Liquidations.sol

Architecture

Libraries

Inheritance Graph

graph TD Liquidations[Liquidations] --> MixinResolver[MixinResolver] MixinResolver[MixinResolver] --> Owned[Owned]

Structs

LiquidationEntry

Source

Field Type Description
deadline uint256 TBA
caller address TBA

Constants

LIQUIDATION_CALLER

Source

Type: bytes32

LIQUIDATION_DEADLINE

Source

Type: bytes32

MAX_LIQUIDATION_DELAY

Source

Type: uint256

MAX_LIQUIDATION_PENALTY

Source

Type: uint256

MAX_LIQUIDATION_RATIO

Source

Type: uint256

MIN_LIQUIDATION_DELAY

Source

Type: uint256

RATIO_FROM_TARGET_BUFFER

Source

Type: uint256

Variables

liquidationDelay

Source

Type: uint256

liquidationPenalty

Source

Type: uint256

liquidationRatio

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

(address _owner, address _resolver)

Visibility

public

State Mutability

nonpayable

Views

calculateAmountToFixCollateral

Source

Details

Signature

calculateAmountToFixCollateral(uint256 debtBalance, uint256 collateral) returns (uint256)

Visibility

external

State Mutability

view

getLiquidationDeadlineForAccount

Source

Details

Signature

getLiquidationDeadlineForAccount(address account) returns (uint256)

Visibility

external

State Mutability

view

isLiquidationDeadlinePassed

Source

Details

Signature

isLiquidationDeadlinePassed(address account) returns (bool)

Visibility

external

State Mutability

view

isOpenForLiquidation

Source

Details

Signature

isOpenForLiquidation(address account) returns (bool)

Visibility

external

State Mutability

view

liquidationCollateralRatio

Source

Details

Signature

liquidationCollateralRatio() returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

removeAccountInLiquidation

Source

Details

Signature

removeAccountInLiquidation(address account)

Visibility

external

State Mutability

nonpayable

Modifiers

setLiquidationDelay

Source

Details

Signature

setLiquidationDelay(uint256 time)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setLiquidationPenalty

Source

Details

Signature

setLiquidationPenalty(uint256 penalty)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setLiquidationRatio

Source

Details

Signature

setLiquidationRatio(uint256 _liquidationRatio)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

Internal Functions

_deadlinePassed

Source

Details

Signature

_deadlinePassed(uint256 deadline) returns (bool)

Visibility

internal

State Mutability

view

_getKey

Source

Details

Signature

_getKey(bytes32 _scope, address _account) returns (bytes32)

Visibility

internal

State Mutability

pure

_getLiquidationEntryForAccount

Source

Details

Signature

_getLiquidationEntryForAccount(address account) returns (struct Liquidations.LiquidationEntry)

Visibility

internal

State Mutability

view

_removeLiquidationEntry

Source

Details

Signature

_removeLiquidationEntry(address _account)

Visibility

internal

State Mutability

nonpayable

Emits

_storeLiquidationEntry

Source

Details

Signature

_storeLiquidationEntry(address _account, uint256 _deadline, address _caller)

Visibility

internal

State Mutability

nonpayable

eternalStorageLiquidations

Source

Details

Signature

eternalStorageLiquidations() returns (contract EternalStorage)

Visibility

internal

State Mutability

view

exchangeRates

Source

Details

Signature

exchangeRates() returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

issuer

Source

Details

Signature

issuer() returns (contract IIssuer)

Visibility

internal

State Mutability

view

synthetix

Source

Details

Signature

synthetix() returns (contract ISynthetix)

Visibility

internal

State Mutability

view

synthetixState

Source

Details

Signature

synthetixState() returns (contract ISynthetixState)

Visibility

internal

State Mutability

view

systemStatus

Source

Details

Signature

systemStatus() returns (contract ISystemStatus)

Visibility

internal

State Mutability

view

External Functions

checkAndRemoveAccountInLiquidation

Source

Details

Signature

checkAndRemoveAccountInLiquidation(address account)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

flagAccountForLiquidation

Source

Details

Signature

flagAccountForLiquidation(address account)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

Modifiers

onlyIssuer

Source

rateNotStale

Source

Signature: rateNotStale(bytes32 currencyKey)

Events

AccountFlaggedForLiquidation

Source

Signature: AccountFlaggedForLiquidation(address account, uint256 deadline)

AccountRemovedFromLiquidation

Source

Signature: AccountRemovedFromLiquidation(address account, uint256 time)

LiquidationDelayUpdated

Source

Signature: LiquidationDelayUpdated(uint256 newDelay)

LiquidationPenaltyUpdated

Source

Signature: LiquidationPenaltyUpdated(uint256 newPenalty)

LiquidationRatioUpdated

Source

Signature: LiquidationRatioUpdated(uint256 newRatio)