BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
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, protocol_ids, credit_offer_object_type > graphene::db::base_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
 

Additional Inherited Members

- Public Member Functions inherited from graphene::db::abstract_object< credit_offer_object, protocol_ids, credit_offer_object_type >
 abstract_object ()
 
object_id< SpaceID, TypeID > get_id () const
 
- Public Member Functions inherited from graphene::db::base_abstract_object< credit_offer_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
 
- Static Public Attributes inherited from graphene::db::abstract_object< credit_offer_object, protocol_ids, credit_offer_object_type >
static constexpr uint8_t space_id
 
static constexpr uint8_t type_id
 

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 56 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 53 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 43 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 50 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 45 of file credit_offer_object.hpp.

◆ enabled

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

Whether this offer is available.

Definition at line 49 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 46 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 47 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 48 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 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 44 of file credit_offer_object.hpp.


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