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

A credit offer is a fund that can be used by other accounts who provide certain collateral. More...

#include <credit_offer_object.hpp>

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

Public Attributes

account_id_type owner_account
 Owner of the fund. More...
 
asset_id_type asset_type
 Asset type in the fund. More...
 
share_type total_balance
 Total size of the fund. More...
 
share_type current_balance
 Usable amount in the fund. More...
 
uint32_t fee_rate = 0
 Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM. More...
 
uint32_t max_duration_seconds = 0
 The time limit that borrowed funds should be repaid. More...
 
share_type min_deal_amount
 Minimum amount to borrow for each new deal. More...
 
bool enabled = false
 Whether this offer is available. More...
 
time_point_sec auto_disable_time
 The time when this offer will be disabled automatically. More...
 
flat_map< asset_id_type, priceacceptable_collateral
 Types and rates of acceptable collateral. More...
 
flat_map< account_id_type, share_typeacceptable_borrowers
 Allowed borrowers and their maximum amounts to borrow. No limitation if empty. More...
 
- Public Attributes inherited from graphene::db::object
object_id_type id
 

Static Public Attributes

static constexpr uint8_t space_id = protocol_ids
 
static constexpr uint8_t type_id = credit_offer_object_type
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< credit_offer_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 ()
 

Detailed Description

A credit offer is a fund that can be used by other accounts who provide certain collateral.

Definition at line 39 of file credit_offer_object.hpp.

Member Data Documentation

◆ acceptable_borrowers

flat_map<account_id_type, share_type> graphene::chain::credit_offer_object::acceptable_borrowers

Allowed borrowers and their maximum amounts to borrow. No limitation if empty.

Definition at line 59 of file credit_offer_object.hpp.

◆ acceptable_collateral

flat_map<asset_id_type, price> graphene::chain::credit_offer_object::acceptable_collateral

Types and rates of acceptable collateral.

Definition at line 56 of file credit_offer_object.hpp.

◆ asset_type

asset_id_type graphene::chain::credit_offer_object::asset_type

Asset type in the fund.

Definition at line 46 of file credit_offer_object.hpp.

◆ auto_disable_time

time_point_sec graphene::chain::credit_offer_object::auto_disable_time

The time when this offer will be disabled automatically.

Definition at line 53 of file credit_offer_object.hpp.

◆ current_balance

share_type graphene::chain::credit_offer_object::current_balance

Usable amount in the fund.

Definition at line 48 of file credit_offer_object.hpp.

◆ enabled

bool graphene::chain::credit_offer_object::enabled = false

Whether this offer is available.

Definition at line 52 of file credit_offer_object.hpp.

◆ fee_rate

uint32_t graphene::chain::credit_offer_object::fee_rate = 0

Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.

Definition at line 49 of file credit_offer_object.hpp.

◆ max_duration_seconds

uint32_t graphene::chain::credit_offer_object::max_duration_seconds = 0

The time limit that borrowed funds should be repaid.

Definition at line 50 of file credit_offer_object.hpp.

◆ min_deal_amount

share_type graphene::chain::credit_offer_object::min_deal_amount

Minimum amount to borrow for each new deal.

Definition at line 51 of file credit_offer_object.hpp.

◆ owner_account

account_id_type graphene::chain::credit_offer_object::owner_account

Owner of the fund.

Definition at line 45 of file credit_offer_object.hpp.

◆ space_id

constexpr uint8_t graphene::chain::credit_offer_object::space_id = protocol_ids
static

Definition at line 42 of file credit_offer_object.hpp.

◆ total_balance

share_type graphene::chain::credit_offer_object::total_balance

Total size of the fund.

Definition at line 47 of file credit_offer_object.hpp.

◆ type_id

constexpr uint8_t graphene::chain::credit_offer_object::type_id = credit_offer_object_type
static

Definition at line 43 of file credit_offer_object.hpp.


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