Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::chain::bitasset_options Struct Reference

The bitasset_options struct contains configurable options available only to BitAssets. More...

#include <asset_ops.hpp>

Public Member Functions

void validate () const
 

Public Attributes

uint32_t feed_lifetime_sec = GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME
 Time before a price feed expires. More...
 
uint8_t minimum_feeds = 1
 Minimum number of unexpired feeds required to extract a median feed from. More...
 
uint32_t force_settlement_delay_sec = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY
 This is the delay between the time a long requests settlement and the chain evaluates the settlement. More...
 
uint16_t force_settlement_offset_percent = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET
 This is the percent to adjust the feed price in the short's favor in the event of a forced settlement. More...
 
uint16_t maximum_force_settlement_volume = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME
 
asset_id_type short_backing_asset
 
extensions_type extensions
 

Detailed Description

The bitasset_options struct contains configurable options available only to BitAssets.

Note
Changes to this struct will break protocol compatibility

Definition at line 90 of file asset_ops.hpp.

Member Function Documentation

◆ validate()

void graphene::chain::bitasset_options::validate ( ) const

Perform internal consistency checks.

Exceptions
fc::exceptionif any check fails

Definition at line 206 of file asset_ops.cpp.

Member Data Documentation

◆ extensions

extensions_type graphene::chain::bitasset_options::extensions

Definition at line 108 of file asset_ops.hpp.

◆ feed_lifetime_sec

uint32_t graphene::chain::bitasset_options::feed_lifetime_sec = GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME

Time before a price feed expires.

Definition at line 92 of file asset_ops.hpp.

◆ force_settlement_delay_sec

uint32_t graphene::chain::bitasset_options::force_settlement_delay_sec = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY

This is the delay between the time a long requests settlement and the chain evaluates the settlement.

Definition at line 96 of file asset_ops.hpp.

◆ force_settlement_offset_percent

uint16_t graphene::chain::bitasset_options::force_settlement_offset_percent = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET

This is the percent to adjust the feed price in the short's favor in the event of a forced settlement.

Definition at line 98 of file asset_ops.hpp.

◆ maximum_force_settlement_volume

uint16_t graphene::chain::bitasset_options::maximum_force_settlement_volume = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME

Force settlement volume can be limited such that only a certain percentage of the total existing supply of the asset may be force-settled within any given chain maintenance interval. This field stores the percentage of the current supply which may be force settled within the current maintenance interval. If force settlements come due in an interval in which the maximum volume has already been settled, the new settlements will be enqueued and processed at the beginning of the next maintenance interval.

Definition at line 104 of file asset_ops.hpp.

◆ minimum_feeds

uint8_t graphene::chain::bitasset_options::minimum_feeds = 1

Minimum number of unexpired feeds required to extract a median feed from.

Definition at line 94 of file asset_ops.hpp.

◆ short_backing_asset

asset_id_type graphene::chain::bitasset_options::short_backing_asset

This speicifies which asset type is used to collateralize short sales This field may only be updated if the current supply of the asset is zero.

Definition at line 107 of file asset_ops.hpp.


The documentation for this struct was generated from the following files: