BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
allows global settling of bitassets (black swan or prediction markets) 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 | issuer |
must equal issuer of asset_to_settle More... | |
asset_id_type | asset_to_settle |
price | settle_price |
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) |
allows global settling of bitassets (black swan or prediction markets)
In order to use this operation, asset_to_settle must have the global_settle flag set
When this operation is executed all balances are converted into the backing asset at the settle_price and all open margin positions are called at the settle price. If this asset is used as backing for other bitassets, those bitassets will be force settled at their current feed price.
Definition at line 238 of file asset_ops.hpp.
|
inline |
Definition at line 248 of file asset_ops.hpp.
|
virtual |
Reimplemented from graphene::protocol::base_operation.
Definition at line 231 of file asset_ops.cpp.
asset_id_type graphene::protocol::asset_global_settle_operation::asset_to_settle |
Definition at line 244 of file asset_ops.hpp.
extensions_type graphene::protocol::asset_global_settle_operation::extensions |
Definition at line 246 of file asset_ops.hpp.
asset graphene::protocol::asset_global_settle_operation::fee |
Definition at line 242 of file asset_ops.hpp.
account_id_type graphene::protocol::asset_global_settle_operation::issuer |
must equal issuer of asset_to_settle
Definition at line 243 of file asset_ops.hpp.
price graphene::protocol::asset_global_settle_operation::settle_price |
Definition at line 245 of file asset_ops.hpp.