Skip to content

BinaryOptionMarketManager

Description

Source: contracts/BinaryOptionMarketManager.sol

Architecture

Libraries

Inheritance Graph

graph TD BinaryOptionMarketManager[BinaryOptionMarketManager] --> Pausable[Pausable] BinaryOptionMarketManager[BinaryOptionMarketManager] --> SelfDestructible[SelfDestructible] BinaryOptionMarketManager[BinaryOptionMarketManager] --> MixinResolver[MixinResolver] Pausable[Pausable] --> Owned[Owned] SelfDestructible[SelfDestructible] --> Owned[Owned] MixinResolver[MixinResolver] --> Owned[Owned]

Structs

CreatorLimits

Source

Field Type Description
capitalRequirement uint256 TBA
skewLimit uint256 TBA

Durations

Source

Field Type Description
maxOraclePriceAge uint256 TBA
expiryDuration uint256 TBA
maxTimeToMaturity uint256 TBA

Fees

Source

Field Type Description
poolFee uint256 TBA
creatorFee uint256 TBA
refundFee uint256 TBA

Variables

creatorLimits

Source

Type: struct BinaryOptionMarketManager.CreatorLimits

durations

Source

Type: struct BinaryOptionMarketManager.Durations

fees

Source

Type: struct BinaryOptionMarketManager.Fees

marketCreationEnabled

Source

Type: bool

totalDeposited

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

(address _owner, address _resolver, uint256 _maxOraclePriceAge, uint256 _expiryDuration, uint256 _maxTimeToMaturity, uint256 _creatorCapitalRequirement, uint256 _creatorSkewLimit, uint256 _poolFee, uint256 _creatorFee, uint256 _refundFee)

Visibility

public

State Mutability

nonpayable

Requires

Views

activeMarkets

Source

Details

Signature

activeMarkets(uint256 index, uint256 pageSize) returns (address[])

Visibility

external

State Mutability

view

maturedMarkets

Source

Details

Signature

maturedMarkets(uint256 index, uint256 pageSize) returns (address[])

Visibility

external

State Mutability

view

numActiveMarkets

Source

Details

Signature

numActiveMarkets() returns (uint256)

Visibility

external

State Mutability

view

numMaturedMarkets

Source

Details

Signature

numMaturedMarkets() returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

decrementTotalDeposited

Source

Details

Signature

decrementTotalDeposited(uint256 delta)

Visibility

external

State Mutability

nonpayable

Modifiers

incrementTotalDeposited

Source

Details

Signature

incrementTotalDeposited(uint256 delta)

Visibility

external

State Mutability

nonpayable

Modifiers

migrateMarkets

Source

Details

Signature

migrateMarkets(contract BinaryOptionMarketManager receivingManager, bool active, contract BinaryOptionMarket[] marketsToMigrate)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

setCreatorCapitalRequirement

Source

Details

Signature

setCreatorCapitalRequirement(uint256 _creatorCapitalRequirement)

Visibility

public

State Mutability

nonpayable

Modifiers

Emits

setCreatorFee

Source

Details

Signature

setCreatorFee(uint256 _creatorFee)

Visibility

public

State Mutability

nonpayable

Requires

Modifiers

Emits

setCreatorSkewLimit

Source

Details

Signature

setCreatorSkewLimit(uint256 _creatorSkewLimit)

Visibility

public

State Mutability

nonpayable

Requires

Modifiers

Emits

setExpiryDuration

Source

Details

Signature

setExpiryDuration(uint256 _expiryDuration)

Visibility

public

State Mutability

nonpayable

Modifiers

Emits

setMarketCreationEnabled

Source

Details

Signature

setMarketCreationEnabled(bool enabled)

Visibility

public

State Mutability

nonpayable

Modifiers

setMaxOraclePriceAge

Source

Details

Signature

setMaxOraclePriceAge(uint256 _maxOraclePriceAge)

Visibility

public

State Mutability

nonpayable

Modifiers

Emits

setMaxTimeToMaturity

Source

Details

Signature

setMaxTimeToMaturity(uint256 _maxTimeToMaturity)

Visibility

public

State Mutability

nonpayable

Modifiers

Emits

setMigratingManager

Source

Details

Signature

setMigratingManager(contract BinaryOptionMarketManager manager)

Visibility

public

State Mutability

nonpayable

Modifiers

setPoolFee

Source

Details

Signature

setPoolFee(uint256 _poolFee)

Visibility

public

State Mutability

nonpayable

Requires

Modifiers

Emits

setRefundFee

Source

Details

Signature

setRefundFee(uint256 _refundFee)

Visibility

public

State Mutability

nonpayable

Requires

Modifiers

Emits

setResolverAndSyncCacheOnMarkets

Source

Details

Signature

setResolverAndSyncCacheOnMarkets(contract AddressResolver _resolver, contract BinaryOptionMarket[] marketsToSync)

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

_exchangeRates

Source

Details

Signature

_exchangeRates() returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

_factory

Source

Details

Signature

_factory() returns (contract BinaryOptionMarketFactory)

Visibility

internal

State Mutability

view

_isKnownMarket

Source

Details

Signature

_isKnownMarket(address candidate) returns (bool)

Visibility

internal

State Mutability

view

_isValidKey

Source

Details

Signature

_isValidKey(bytes32 oracleKey) returns (bool)

Visibility

internal

State Mutability

view

_sUSD

Source

Details

Signature

_sUSD() returns (contract IERC20)

Visibility

internal

State Mutability

view

_systemStatus

Source

Details

Signature

_systemStatus() returns (contract ISystemStatus)

Visibility

internal

State Mutability

view

External Functions

createMarket

Source

Details

Signature

createMarket(bytes32 oracleKey, uint256 strikePrice, uint256[2] times, uint256[2] bids) returns (contract IBinaryOptionMarket)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

expireMarkets

Source

Details

Signature

expireMarkets(address[] markets)

Visibility

external

State Mutability

nonpayable

Modifiers

receiveMarkets

Source

Details

Signature

receiveMarkets(bool active, contract BinaryOptionMarket[] marketsToReceive)

Visibility

external

State Mutability

nonpayable

Requires

Emits

resolveMarket

Source

Details

Signature

resolveMarket(address market)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

onlyActiveMarkets

Source

onlyKnownMarkets

Source

Events

CreatorCapitalRequirementUpdated

Source

Signature: CreatorCapitalRequirementUpdated(uint256 value)

CreatorFeeUpdated

Source

Signature: CreatorFeeUpdated(uint256 fee)

CreatorSkewLimitUpdated

Source

Signature: CreatorSkewLimitUpdated(uint256 value)

ExerciseDurationUpdated

Source

Signature: ExerciseDurationUpdated(uint256 duration)

ExpiryDurationUpdated

Source

Signature: ExpiryDurationUpdated(uint256 duration)

MarketCreated

Source

Signature: MarketCreated(address market, address creator, bytes32 oracleKey, uint256 strikePrice, uint256 biddingEndDate, uint256 maturityDate, uint256 expiryDate)

MarketCreationEnabledUpdated

Source

Signature: MarketCreationEnabledUpdated(bool enabled)

MarketExpired

Source

Signature: MarketExpired(address market)

MarketsMigrated

Source

Signature: MarketsMigrated(contract BinaryOptionMarketManager receivingManager, contract BinaryOptionMarket[] markets)

MarketsReceived

Source

Signature: MarketsReceived(contract BinaryOptionMarketManager migratingManager, contract BinaryOptionMarket[] markets)

MaxOraclePriceAgeUpdated

Source

Signature: MaxOraclePriceAgeUpdated(uint256 duration)

MaxTimeToMaturityUpdated

Source

Signature: MaxTimeToMaturityUpdated(uint256 duration)

PoolFeeUpdated

Source

Signature: PoolFeeUpdated(uint256 fee)

RefundFeeUpdated

Source

Signature: RefundFeeUpdated(uint256 fee)