20 #ifndef RIPPLE_APP_PATHS_CREDIT_H_INCLUDED
21 #define RIPPLE_APP_PATHS_CREDIT_H_INCLUDED
23 #include <ripple/basics/IOUAmount.h>
24 #include <ripple/ledger/View.h>
25 #include <ripple/protocol/STAmount.h>
STAmount creditBalance(ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const ¤cy)
Returns the amount of IOUs issued by issuer that are held by an account.
IOUAmount creditLimit2(ReadView const &v, AccountID const &acc, AccountID const &iss, Currency const &cur)
STAmount creditLimit(ReadView const &view, AccountID const &account, AccountID const &issuer, Currency const ¤cy)
Calculate the maximum amount of IOUs that an account can hold.
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.