BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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
 
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
- Public Member Functions inherited from graphene::db::object
 object ()=default
 
 object (uint8_t space_id, uint8_t type_id)
 
virtual ~object ()=default
 
virtual std::unique_ptr< objectclone () const =0
 
virtual fc::variant to_variant () const =0
 
virtual std::vector< char > pack () const =0
 

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

◆ get_additional_collateral()

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

Definition at line 210 of file market_object.hpp.

◆ get_debt_covered()

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

Definition at line 211 of file market_object.hpp.

Member Data Documentation

◆ bidder

account_id_type graphene::chain::collateral_bid_object::bidder

Definition at line 214 of file market_object.hpp.

◆ inv_swan_price

price graphene::chain::collateral_bid_object::inv_swan_price

Definition at line 215 of file market_object.hpp.


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