rippled
Loading...
Searching...
No Matches
Credit.h
1#ifndef XRPL_APP_PATHS_CREDIT_H_INCLUDED
2#define XRPL_APP_PATHS_CREDIT_H_INCLUDED
3
4#include <xrpl/ledger/View.h>
5#include <xrpl/protocol/IOUAmount.h>
6#include <xrpl/protocol/STAmount.h>
7
8namespace ripple {
9
18STAmount
20 ReadView const& view,
21 AccountID const& account,
22 AccountID const& issuer,
23 Currency const& currency);
24
25IOUAmount
27 ReadView const& v,
28 AccountID const& acc,
29 AccountID const& iss,
30 Currency const& cur);
40STAmount
42 ReadView const& view,
43 AccountID const& account,
44 AccountID const& issuer,
45 Currency const& currency);
48} // namespace ripple
49
50#endif
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:29
STAmount creditLimit(ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const &currency)
Calculate the maximum amount of IOUs that an account can hold.
Definition Credit.cpp:9
STAmount creditBalance(ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const &currency)
Returns the amount of IOUs issued by issuer that are held by an account.
Definition Credit.cpp:46
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Definition UintTypes.h:37
IOUAmount creditLimit2(ReadView const &v, AccountID const &acc, AccountID const &iss, Currency const &cur)
Definition Credit.cpp:36