Skip to content

BinaryOption

Description

Source: contracts/BinaryOption.sol

Architecture

Libraries

Constants

decimals

Source

Type: uint8

name

Source

Type: string

symbol

Source

Type: string

Variables

allowance

Source

Type: mapping(address => mapping(address => uint256))

balanceOf

Source

Type: mapping(address => uint256)

bidOf

Source

Type: mapping(address => uint256)

market

Source

Type: contract BinaryOptionMarket

totalBids

Source

Type: uint256

totalSupply

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

(address initialBidder, uint256 initialBid)

Visibility

public

State Mutability

nonpayable

Views

claimableBalanceOf

Source

Details

Signature

claimableBalanceOf(address account) returns (uint256)

Visibility

external

State Mutability

view

totalClaimableSupply

Source

Details

Signature

totalClaimableSupply() returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

bid

Source

Details

Signature

bid(address bidder, uint256 newBid)

Visibility

external

State Mutability

nonpayable

Modifiers

claim

Source

Details

Signature

claim(address claimant, uint256 price, uint256 depositsRemaining) returns (uint256)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

exercise

Source

Details

Signature

exercise(address claimant)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

expire

Source

Details

Signature

expire(address payable beneficiary)

Visibility

external

State Mutability

nonpayable

Modifiers

refund

Source

Details

Signature

refund(address bidder, uint256 newRefund)

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

_claimableBalanceOf

Source

Details

Signature

_claimableBalanceOf(uint256 _bid, uint256 price, uint256 exercisableDeposits) returns (uint256)

Visibility

internal

State Mutability

view

_requireMinimumBid

Source

Details

Signature

_requireMinimumBid(uint256 bid) returns (uint256)

Visibility

internal

State Mutability

pure

Requires

_totalClaimableSupply

Source

Details

Signature

_totalClaimableSupply(uint256 exercisableDeposits) returns (uint256)

Visibility

internal

State Mutability

view

_transfer

Source

Details

Signature

_transfer(address _from, address _to, uint256 _value) returns (bool)

Visibility

internal

State Mutability

nonpayable

Requires

Emits

External Functions

approve

Source

Details

Signature

approve(address _spender, uint256 _value) returns (bool)

Visibility

external

State Mutability

nonpayable

Requires

Emits

transfer

Source

Details

Signature

transfer(address _to, uint256 _value) returns (bool)

Visibility

external

State Mutability

nonpayable

transferFrom

Source

Details

Signature

transferFrom(address _from, address _to, uint256 _value) returns (bool)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

onlyMarket

Source

Events

Approval

Source

Signature: Approval(address owner, address spender, uint256 value)

Burned

Source

Signature: Burned(address account, uint256 value)

Issued

Source

Signature: Issued(address account, uint256 value)

Transfer

Source

Signature: Transfer(address from, address to, uint256 value)