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

Schedules a market-issued asset for automatic settlementHolders of market-issued assests may request a forced settlement for some amount of their asset. This means that the specified sum will be locked by the chain and held for the settlement period, after which time the chain will choose a margin posision holder and buy the settled asset using the margin's collateral. The price of this sale will be based on the feed price for the market-issued asset being settled. The exact settlement price will be the feed price at the time of settlement with an offset in favor of the margin position, where the offset is a blockchain parameter set in the global_property_object. More...

#include <asset_ops.hpp>

Inheritance diagram for graphene::chain::asset_settle_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
- Public Member Functions inherited from graphene::chain::base_operation
template<typename T >
share_type calculate_fee (const T &params) const
 
void get_required_authorities (vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_id_type > &) const
 
void get_required_owner_authorities (flat_set< account_id_type > &) const
 
void validate () const
 

Public Attributes

asset fee
 
account_id_type account
 Account requesting the force settlement. This account pays the fee. More...
 
asset amount
 Amount of asset to force settle. This must be a market-issued asset. More...
 
extensions_type extensions
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::chain::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Schedules a market-issued asset for automatic settlement

Holders of market-issued assests may request a forced settlement for some amount of their asset. This means that the specified sum will be locked by the chain and held for the settlement period, after which time the chain will choose a margin posision holder and buy the settled asset using the margin's collateral. The price of this sale will be based on the feed price for the market-issued asset being settled. The exact settlement price will be the feed price at the time of settlement with an offset in favor of the margin position, where the offset is a blockchain parameter set in the global_property_object.

The fee is paid by account, and account must authorize this operation

Definition at line 191 of file asset_ops.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::chain::asset_settle_operation::fee_payer ( ) const
inline

Definition at line 210 of file asset_ops.hpp.

◆ validate()

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

Definition at line 183 of file asset_ops.cpp.

Member Data Documentation

◆ account

account_id_type graphene::chain::asset_settle_operation::account

Account requesting the force settlement. This account pays the fee.

Definition at line 205 of file asset_ops.hpp.

◆ amount

asset graphene::chain::asset_settle_operation::amount

Amount of asset to force settle. This must be a market-issued asset.

Definition at line 207 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::chain::asset_settle_operation::extensions

Definition at line 208 of file asset_ops.hpp.

◆ fee

asset graphene::chain::asset_settle_operation::fee

Definition at line 203 of file asset_ops.hpp.


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