BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
28 namespace graphene {
namespace protocol {
191 const account_id_type& o,
const account_id_type& b,
const asset& u,
const asset& c,
const uint32_t fr)
246 (max_duration_seconds)
250 (acceptable_collateral)
251 (acceptable_borrowers)
268 (max_duration_seconds)
272 (acceptable_collateral)
273 (acceptable_borrowers)
288 (min_duration_seconds)
share_type calculate_fee(const fee_params_t &) const
This is a virtual operation; there is no fee.
account_id_type borrower
The account who accepts the offer.
extension< ext > extensions
Extensions.
account_id_type owner_account
Owner of the credit offer.
account_id_type fee_payer() const
void validate() const override
time_point_sec auto_disable_time
The time when this offer will be disabled automatically.
asset fee
Only for compatibility, unused.
share_type balance
Usable amount in the credit offer.
void validate() const override
optional< flat_map< account_id_type, share_type > > acceptable_borrowers
New allowed borrowers and their maximum amounts to borrow, optional.
credit_deal_id_type deal_id
ID of the credit deal.
uint8_t auto_repay
The specified automatic repayment type.
@ CDAR_TYPE_COUNT
Total number of available automatic repayment types.
extensions_type extensions
Unused. Reserved for future use.
credit_deal_expired_operation(const credit_deal_id_type &did, const credit_offer_id_type &oid, const account_id_type &o, const account_id_type &b, const asset &u, const asset &c, const uint32_t fr)
Create a new credit offer.
flat_map< account_id_type, share_type > acceptable_borrowers
Allowed borrowers and their maximum amounts to borrow. No limitation if empty.
void validate() const override
extensions_type extensions
Unused. Reserved for future use.
extensions_type extensions
Unused. Reserved for future use.
@ no_auto_repayment
Do not repay automatically.
uint32_t fee_rate
Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.
optional< share_type > min_deal_amount
Minimum amount to borrow for each new deal, optional.
share_type calculate_fee(const fee_params_t &k) const
credit_offer_id_type offer_id
ID of the credit offer.
credit_deal_expired_operation()=default
void validate() const override
optional< bool > enabled
Whether this offer is available, optional.
share_type min_deal_amount
Minimum amount to borrow for each new deal.
@ only_full_repayment
Automatically repay fully when and only when the account balance is sufficient.
bool enabled
Whether this offer is available.
asset repay_amount
The amount to repay.
optional< uint32_t > fee_rate
New fee rate, optional.
asset credit_fee
The credit fee relative to the amount to repay.
asset collateral
The collateral liquidated.
#define GRAPHENE_BLOCKCHAIN_PRECISION
extensions_type extensions
Unused. Reserved for future use.
void validate() const override
credit_offer_id_type offer_id
ID of the credit offer.
Accept a credit offer, thereby creating a credit deal.
optional< flat_map< asset_id_type, price > > acceptable_collateral
New types and rates of acceptable collateral, optional.
credit_deal_id_type deal_id
ID of the credit deal.
flat_map< asset_id_type, price > acceptable_collateral
Types and rates of acceptable collateral.
credit_offer_id_type offer_id
ID of the credit offer.
credit_deal_auto_repayment_type
Defines automatic repayment types.
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
asset_id_type asset_type
Asset type in the credit offer.
credit_offer_id_type offer_id
ID of the credit offer.
extensions_type extensions
Unused. Reserved for future use.
asset borrow_amount
The amount to borrow.
account_id_type fee_payer() const
account_id_type fee_payer() const
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
uint32_t max_duration_seconds
The time limit that borrowed funds should be repaid.
share_type calculate_fee(const fee_params_t &k) const
fc::optional< uint8_t > auto_repay
After the core-2595 hard fork, the account can specify whether and how to automatically repay.
A credit deal expired without being fully repaid.
@ allow_partial_repayment
Automatically repay as much as possible using available account balance.
account_id_type borrower
The account who repays to the credit offer.
void validate() const override
credit_deal_id_type deal_id
ID of the credit deal.
uint32_t fee_rate
Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
optional< asset > delta_amount
Delta amount, optional.
account_id_type account
The account who owns the credit deal.
provides stack-based nullable value similar to boost::optional
uint32_t max_fee_rate
The maximum acceptable fee rate.
optional< time_point_sec > auto_disable_time
New time to disable automatically, optional.
account_id_type fee_payer() const
asset unpaid_amount
The amount that is unpaid.
asset collateral
The collateral.
account_id_type fee_payer() const
uint32_t min_duration_seconds
The minimum acceptable duration.
account_id_type owner_account
Owner of the credit offer.
account_id_type owner_account
The account who owns the credit offer.
void validate() const override
account_id_type offer_owner
Owner of the credit offer.
optional< uint32_t > max_duration_seconds
New repayment time limit, optional.
future_extensions::flat_set_type extensions_type
account_id_type account
The account who repays to the credit offer.
account_id_type fee_payer() const
account_id_type fee_payer() const