OptionCore
This contract is the base that sets common configuration that call
, puts
, e even in the future other complex forms of options.
View methods
underlyingBalance()
function underlyingBalance()
Returns the current total underlyingAsset
balance available in the contract
return
name
Type
Description
underlyingBalance
uint256
underlyingAsset
balance, in wei units.
strikeBalance()
function strikeBalance()
Returns the current total strikeAsset
balance available in the contract
return
name
Type
Description
strikeBalance
uint256
strikeAsset
balance, in wei units.
hasExpired()
function hasExpired()
Returns a boolean representing whether the current options series has expired.
return
name
Type
Description
hasExpired
boolean
receiver if option contract has expired.
lockedBalance()
function lockedBalance(address)
Returns the current total of asset locked by an address
in order to create options.
return
name
Type
Description
balance
uint256
locked balance of the user. if is put, the locked is the strikeAsset
. If is call, then is the underlyingAsset
locked.
Last updated
Was this helpful?