BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | 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, implementation_ids, impl_collateral_bid_object_type > graphene::db::base_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, implementation_ids, impl_collateral_bid_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< collateral_bid_object >
std::unique_ptr< objectclone () const override
 
void move_from (object &obj) override
 
fc::variant to_variant () const override
 
std::vector< char > pack () const override
 
- Public Member Functions inherited from graphene::db::object
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
virtual ~object ()=default
 

Public Attributes

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

Additional Inherited Members

- Static Public Attributes inherited from graphene::db::abstract_object< collateral_bid_object, implementation_ids, impl_collateral_bid_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

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 191 of file market_object.hpp.

Member Function Documentation

◆ debt_type()

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

Definition at line 197 of file market_object.hpp.

◆ get_additional_collateral()

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

Definition at line 195 of file market_object.hpp.

◆ get_debt_covered()

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

Definition at line 196 of file market_object.hpp.

Member Data Documentation

◆ bidder

account_id_type graphene::chain::collateral_bid_object::bidder

Definition at line 199 of file market_object.hpp.

◆ inv_swan_price

price graphene::chain::collateral_bid_object::inv_swan_price

Definition at line 200 of file market_object.hpp.


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