BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Schedules a market-issued asset for automatic settlement. More...
#include <asset_ops.hpp>
Classes | |
struct | fee_params_t |
Public Member Functions | |
account_id_type | fee_payer () const |
void | validate () const |
Public Member Functions inherited from graphene::protocol::base_operation | |
virtual | ~base_operation ()=default |
template<typename T > | |
share_type | calculate_fee (const T ¶ms) const |
virtual void | get_required_authorities (vector< authority > &) const |
virtual void | get_required_active_authorities (flat_set< account_id_type > &) const |
virtual void | get_required_owner_authorities (flat_set< account_id_type > &) const |
fc::optional< fc::future< void > > | validate_parallel (uint32_t skip) 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::protocol::base_operation | |
static uint64_t | calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte) |
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 267 of file asset_ops.hpp.
|
inline |
Definition at line 286 of file asset_ops.hpp.
|
virtual |
Reimplemented from graphene::protocol::base_operation.
Definition at line 214 of file asset_ops.cpp.
account_id_type graphene::protocol::asset_settle_operation::account |
Account requesting the force settlement. This account pays the fee.
Definition at line 281 of file asset_ops.hpp.
asset graphene::protocol::asset_settle_operation::amount |
Amount of asset to force settle. This must be a market-issued asset.
Definition at line 283 of file asset_ops.hpp.
extensions_type graphene::protocol::asset_settle_operation::extensions |
Definition at line 284 of file asset_ops.hpp.
asset graphene::protocol::asset_settle_operation::fee |
Definition at line 279 of file asset_ops.hpp.