Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::call_order_object Class Reference

tracks debt and call price information More...

#include <market_object.hpp>

Inheritance diagram for golos::chain::call_order_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 call_order_object (Constructor &&c, allocator< Allocator > a)
 
 call_order_object ()
 
protocol::asset< 0, 17, 0 > get_collateral () const
 
protocol::asset< 0, 17, 0 > get_debt () const
 
protocol::asset< 0, 17, 0 > amount_to_receive () const
 
protocol::asset_name_type debt_type () const
 
protocol::price< 0, 17, 0 > collateralization () const
 
pair< protocol::asset_name_type, protocol::asset_name_type > get_market () const
 

Public Attributes

id_type id
 
protocol::integral_id_type order_id
 
account_name_type borrower
 
share_type collateral
 call_price.base.asset_id, access via get_collateral More...
 
share_type debt
 call_price.quote.asset_id, access via get_collateral More...
 
protocol::price< 0, 17, 0 > call_price
 Debt / Collateral. More...
 

Detailed Description

tracks debt and call price information

There should only be one call_order_object per asset pair per account and they will all have the same call price.

Definition at line 61 of file market_object.hpp.

Constructor & Destructor Documentation

◆ call_order_object() [1/2]

template<typename Constructor , typename Allocator >
golos::chain::call_order_object::call_order_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 64 of file market_object.hpp.

◆ call_order_object() [2/2]

golos::chain::call_order_object::call_order_object ( )
inline

Definition at line 68 of file market_object.hpp.

Member Function Documentation

◆ amount_to_receive()

protocol::asset<0, 17, 0> golos::chain::call_order_object::amount_to_receive ( ) const
inline

Definition at line 82 of file market_object.hpp.

◆ collateralization()

protocol::price<0, 17, 0> golos::chain::call_order_object::collateralization ( ) const
inline

Definition at line 90 of file market_object.hpp.

◆ debt_type()

protocol::asset_name_type golos::chain::call_order_object::debt_type ( ) const
inline

Definition at line 86 of file market_object.hpp.

◆ get_collateral()

protocol::asset<0, 17, 0> golos::chain::call_order_object::get_collateral ( ) const
inline

Definition at line 74 of file market_object.hpp.

◆ get_debt()

protocol::asset<0, 17, 0> golos::chain::call_order_object::get_debt ( ) const
inline

Definition at line 78 of file market_object.hpp.

◆ get_market()

pair<protocol::asset_name_type, protocol::asset_name_type> golos::chain::call_order_object::get_market ( ) const
inline

Definition at line 100 of file market_object.hpp.

Member Data Documentation

◆ borrower

account_name_type golos::chain::call_order_object::borrower

Definition at line 95 of file market_object.hpp.

◆ call_price

protocol::price<0, 17, 0> golos::chain::call_order_object::call_price

Debt / Collateral.

Definition at line 98 of file market_object.hpp.

◆ collateral

share_type golos::chain::call_order_object::collateral

call_price.base.asset_id, access via get_collateral

Definition at line 96 of file market_object.hpp.

◆ debt

share_type golos::chain::call_order_object::debt

call_price.quote.asset_id, access via get_collateral

Definition at line 97 of file market_object.hpp.

◆ id

id_type golos::chain::call_order_object::id

Definition at line 72 of file market_object.hpp.

◆ order_id

protocol::integral_id_type golos::chain::call_order_object::order_id

Definition at line 94 of file market_object.hpp.


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