Skip to content

FuturesMarketManager

Description

Source: contracts/FuturesMarketManager.sol

Structs

MarketSummary

Source

Field Type Description
market address TBA
asset bytes32 TBA
marketKey bytes32 TBA
price uint256 TBA
marketSize uint256 TBA
marketSkew int256 TBA
marketDebt uint256 TBA
currentFundingRate int256 TBA
priceInvalid bool TBA

Variables

CONTRACT_NAME

Source

Type: bytes32

marketForKey

Source

Type: mapping(bytes32 => address)

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Views

allMarketSummaries

Source

Details

Signature

allMarketSummaries() view returns (struct FuturesMarketManager.MarketSummary[])

Visibility

external

State Mutability

view

allMarkets

Source

Details

Signature

allMarkets() view returns (address[])

Visibility

public

State Mutability

view

marketSummaries

Source

Details

Signature

marketSummaries(address[] addresses) view returns (struct FuturesMarketManager.MarketSummary[])

Visibility

external

State Mutability

view

marketSummariesForKeys

Source

Details

Signature

marketSummariesForKeys(bytes32[] marketKeys) view returns (struct FuturesMarketManager.MarketSummary[])

Visibility

external

State Mutability

view

markets

Source

Details

Signature

markets(uint256 index, uint256 pageSize) view returns (address[])

Visibility

external

State Mutability

view

marketsForKeys

Source

Details

Signature

marketsForKeys(bytes32[] marketKeys) view returns (address[])

Visibility

external

State Mutability

view

numMarkets

Source

Details

Signature

numMarkets() view returns (uint256)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

totalDebt

Source

Details

Signature

totalDebt() view returns (uint256 debt, bool isInvalid)

Visibility

external

State Mutability

view

Restricted Functions

addMarkets

Source

Details

Signature

addMarkets(address[] marketsToAdd)

Visibility

external

State Mutability

``

Modifiers

burnSUSD

Source

Details

Signature

burnSUSD(address account, uint256 amount) returns (uint256 postReclamationAmount)

Visibility

external

State Mutability

``

Modifiers

issueSUSD

Source

Details

Signature

issueSUSD(address account, uint256 amount)

Visibility

external

State Mutability

``

Modifiers

payFee

Source

Details

Signature

payFee(uint256 amount)

Visibility

external

State Mutability

``

Modifiers

removeMarkets

Source

Details

Signature

removeMarkets(address[] marketsToRemove)

Visibility

external

State Mutability

``

Modifiers

removeMarketsByKey

Source

Details

Signature

removeMarketsByKey(bytes32[] marketKeysToRemove)

Visibility

external

State Mutability

``

Modifiers

Internal Functions

_exchanger

Source

Details

Signature

_exchanger() view returns (contract IExchanger)

Visibility

internal

State Mutability

view

_feePool

Source

Details

Signature

_feePool() view returns (contract IFeePool)

Visibility

internal

State Mutability

view

_marketSummaries

Source

Details

Signature

_marketSummaries(address[] addresses) view returns (struct FuturesMarketManager.MarketSummary[])

Visibility

internal

State Mutability

view

_marketsForKeys

Source

Details

Signature

_marketsForKeys(bytes32[] marketKeys) view returns (address[])

Visibility

internal

State Mutability

view

_removeMarkets

Source

Details

Signature

_removeMarkets(address[] marketsToRemove)

Visibility

internal

State Mutability

``

_requireIsMarket

Source

Details

Signature

_requireIsMarket() view

Visibility

internal

State Mutability

view

Requires

_sUSD

Source

Details

Signature

_sUSD() view returns (contract ISynth)

Visibility

internal

State Mutability

view

Modifiers

onlyMarkets

Source

Events

MarketAdded

Source

Signature: MarketAdded(address market, bytes32 asset, bytes32 marketKey)

MarketRemoved

Source

Signature: MarketRemoved(address market, bytes32 asset, bytes32 marketKey)