20#ifndef RIPPLE_APP_PATHS_CREDIT_H_INCLUDED
21#define RIPPLE_APP_PATHS_CREDIT_H_INCLUDED
23#include <xrpl/ledger/View.h>
24#include <xrpl/protocol/IOUAmount.h>
25#include <xrpl/protocol/STAmount.h>
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.
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.
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.
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
IOUAmount creditLimit2(ReadView const &v, AccountID const &acc, AccountID const &iss, Currency const &cur)