Skip to content

CollateralManagerState

Description

Source: contracts/CollateralManagerState.sol

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

constructor(address _owner, address _associatedContract)

Visibility

public

State Mutability

undefined

Restricted Functions

addShortCurrency

Source

Details

Signature

addShortCurrency(bytes32 currency)

Visibility

external

State Mutability

undefined

Modifiers

decrementLongs

Source

Details

Signature

decrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

undefined

Modifiers

decrementShorts

Source

Details

Signature

decrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

undefined

Modifiers

incrementLongs

Source

Details

Signature

incrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

undefined

Modifiers

incrementShorts

Source

Details

Signature

incrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

undefined

Modifiers

incrementTotalLoans

Source

Details

Signature

incrementTotalLoans() returns (uint256)

Visibility

external

State Mutability

undefined

Modifiers

long

Source

Details

Signature

long(bytes32 synth) view returns (uint256)

Visibility

external

State Mutability

undefined

Modifiers

removeShortCurrency

Source

Details

Signature

removeShortCurrency(bytes32 currency)

Visibility

external

State Mutability

undefined

Modifiers

short

Source

Details

Signature

short(bytes32 synth) view returns (uint256)

Visibility

external

State Mutability

undefined

Modifiers

updateBorrowRates

Source

Details

Signature

updateBorrowRates(uint256 rate)

Visibility

external

State Mutability

undefined

Modifiers

updateShortRates

Source

Details

Signature

updateShortRates(bytes32 currency, uint256 rate)

Visibility

external

State Mutability

undefined

Modifiers

Internal Functions

getShortRateAt

Source

Details

Signature

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

Visibility

internal

State Mutability

undefined

shortRateLastUpdated

Source

Details

Signature

shortRateLastUpdated(bytes32 currency) view returns (uint256)

Visibility

internal

State Mutability

undefined

External Functions

getRateAt

Source

Details

Signature

getRateAt(uint256 index) view returns (uint256)

Visibility

public

State Mutability

undefined

getRatesAndTime

Source

Details

Signature

getRatesAndTime(uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)

Visibility

external

State Mutability

undefined

getRatesLength

Source

Details

Signature

getRatesLength() view returns (uint256)

Visibility

public

State Mutability

undefined

getShortRatesAndTime

Source

Details

Signature

getShortRatesAndTime(bytes32 currency, uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)

Visibility

external

State Mutability

undefined

getShortRatesLength

Source

Details

Signature

getShortRatesLength(bytes32 currency) view returns (uint256)

Visibility

public

State Mutability

undefined

ratesLastUpdated

Source

Details

Signature

ratesLastUpdated() view returns (uint256)

Visibility

public

State Mutability

undefined