20 #include <ripple/app/paths/AccountCurrencies.h>
36 if (
auto const lines =
39 for (
auto const& rspEntry : *lines)
41 auto& saBalance = rspEntry.getBalance();
44 if (saBalance > beast::zero
47 (rspEntry.getLimitPeer()
49 && ((-saBalance) < rspEntry.getLimitPeer())))
51 currencies.
insert(saBalance.getCurrency());
72 if (
auto const lines =
75 for (
auto const& rspEntry : *lines)
77 auto& saBalance = rspEntry.getBalance();
79 if (saBalance < rspEntry.getLimit())
80 currencies.
insert(saBalance.getCurrency());
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
hash_set< Currency > accountDestCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
Integers of any length that is a multiple of 32-bits.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< std::vector< PathFindTrustLine > > getRippleLines(AccountID const &accountID, LineDirection direction)
Find the trust lines associated with an account.
hash_set< Currency > accountSourceCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
Currency const & xrpCurrency()
XRP currency.