BitShares-Core  6.0.1
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
graphene::chain::collateral_bid_object Class Reference

bids of collateral for debt after a black swan More...

#include <market_object.hpp>

Inheritance diagram for graphene::chain::collateral_bid_object:
graphene::db::abstract_object< collateral_bid_object > graphene::db::object

Public Member Functions

asset get_additional_collateral () const
asset get_debt_covered () const
asset_id_type debt_type () const
- Public Member Functions inherited from graphene::db::abstract_object< collateral_bid_object >
virtual unique_ptr< objectclone () const
 these methods are implemented for derived classes by inheriting abstract_object<DerivedClass> More...
virtual void move_from (object &obj)
virtual variant to_variant () const
virtual vector< char > pack () const
- Public Member Functions inherited from graphene::db::object
 object ()
virtual ~object ()

Public Attributes

account_id_type bidder
price inv_swan_price
- Public Attributes inherited from graphene::db::object
object_id_type id

Static Public Attributes

static constexpr uint8_t space_id = implementation_ids
static constexpr uint8_t type_id = impl_collateral_bid_object_type

Detailed Description

bids of collateral for debt after a black swan

There should only be one collateral_bid_object per asset per account, and only for smartcoin assets that have a global settlement_price.

Definition at line 199 of file market_object.hpp.

Member Function Documentation

◆ debt_type()

asset_id_type graphene::chain::collateral_bid_object::debt_type ( ) const

Definition at line 207 of file market_object.hpp.

◆ get_additional_collateral()

asset graphene::chain::collateral_bid_object::get_additional_collateral ( ) const

Definition at line 205 of file market_object.hpp.

◆ get_debt_covered()

asset graphene::chain::collateral_bid_object::get_debt_covered ( ) const

Definition at line 206 of file market_object.hpp.

Member Data Documentation

◆ bidder

account_id_type graphene::chain::collateral_bid_object::bidder

Definition at line 209 of file market_object.hpp.

◆ inv_swan_price

price graphene::chain::collateral_bid_object::inv_swan_price

Definition at line 210 of file market_object.hpp.

◆ space_id

constexpr uint8_t graphene::chain::collateral_bid_object::space_id = implementation_ids

Definition at line 202 of file market_object.hpp.

◆ type_id

constexpr uint8_t graphene::chain::collateral_bid_object::type_id = impl_collateral_bid_object_type

Definition at line 203 of file market_object.hpp.

The documentation for this class was generated from the following file: