Skip to content

CollateralManagerState

Description

Source: contracts/CollateralManagerState.sol

Architecture

Libraries

Inheritance Graph

graph TD CollateralManagerState[CollateralManagerState] --> State[State] State[State] --> Owned[Owned]

Structs

Balance

Source

Field Type Description
long uint256 TBA
short uint256 TBA

Variables

borrowRates

Source

Type: uint256[]

borrowRatesLastUpdated

Source

Type: uint256

shortRates

Source

Type: mapping(bytes32 => uint256[])

shortRatesLastUpdated

Source

Type: mapping(bytes32 => uint256)

totalIssuedSynths

Source

Type: mapping(bytes32 => struct CollateralManagerState.Balance)

totalLoans

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

(address _owner, address _associatedContract)

Visibility

public

State Mutability

nonpayable

Views

getRateAt

Source

Details

Signature

getRateAt(uint256 index) returns (uint256)

Visibility

public

State Mutability

view

getRatesAndTime

Source

Details

Signature

getRatesAndTime(uint256 index) returns (uint256, uint256, uint256, uint256)

Visibility

external

State Mutability

view

getRatesLength

Source

Details

Signature

getRatesLength() returns (uint256)

Visibility

public

State Mutability

view

getShortRatesAndTime

Source

Details

Signature

getShortRatesAndTime(bytes32 currency, uint256 index) returns (uint256, uint256, uint256, uint256)

Visibility

external

State Mutability

view

getShortRatesLength

Source

Details

Signature

getShortRatesLength(bytes32 currency) returns (uint256)

Visibility

public

State Mutability

view

long

Source

Details

Signature

long(bytes32 synth) returns (uint256)

Visibility

external

State Mutability

view

Modifiers

ratesLastUpdated

Source

Details

Signature

ratesLastUpdated() returns (uint256)

Visibility

public

State Mutability

view

short

Source

Details

Signature

short(bytes32 synth) returns (uint256)

Visibility

external

State Mutability

view

Modifiers

Restricted Functions

addShortCurrency

Source

Details

Signature

addShortCurrency(bytes32 currency)

Visibility

external

State Mutability

nonpayable

Modifiers

decrementLongs

Source

Details

Signature

decrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

decrementShorts

Source

Details

Signature

decrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

incrementLongs

Source

Details

Signature

incrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

incrementShorts

Source

Details

Signature

incrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

nonpayable

Modifiers

incrementTotalLoans

Source

Details

Signature

incrementTotalLoans() returns (uint256)

Visibility

external

State Mutability

nonpayable

Modifiers

long

Source

Details

Signature

long(bytes32 synth) returns (uint256)

Visibility

external

State Mutability

view

Modifiers

removeShortCurrency

Source

Details

Signature

removeShortCurrency(bytes32 currency)

Visibility

external

State Mutability

nonpayable

Modifiers

short

Source

Details

Signature

short(bytes32 synth) returns (uint256)

Visibility

external

State Mutability

view

Modifiers

updateBorrowRates

Source

Details

Signature

updateBorrowRates(uint256 rate)

Visibility

external

State Mutability

nonpayable

Modifiers

updateShortRates

Source

Details

Signature

updateShortRates(bytes32 currency, uint256 rate)

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

getShortRateAt

Source

Details

Signature

getShortRateAt(bytes32 currency, uint256 index) returns (uint256)

Visibility

internal

State Mutability

view

shortRateLastUpdated

Source

Details

Signature

shortRateLastUpdated(bytes32 currency) returns (uint256)

Visibility

internal

State Mutability

view