mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Rename RippleAsset to Issue and RippleBook to Book:
* Split STAmount out of SerializedTypes.h * New concept of "Issue consistency": when either both or neither of its currency and account are XRP. * Stop checking for consistency of Issue in its constructor. * Clarification of mIsNative logic in STAmount. * Usual cleanups.
This commit is contained in:
committed by
Nik Bougalis
parent
a96dee85d2
commit
206efbf30d
@@ -99,7 +99,7 @@ Json::Value doBookOffers (RPC::Context& context)
|
||||
}
|
||||
else
|
||||
{
|
||||
pay_issuer = xrpIssuer ();
|
||||
pay_issuer = xrpAccount ();
|
||||
}
|
||||
|
||||
if (isXRP (pay_currency) && ! isXRP (pay_issuer))
|
||||
@@ -128,7 +128,7 @@ Json::Value doBookOffers (RPC::Context& context)
|
||||
}
|
||||
else
|
||||
{
|
||||
get_issuer = xrpIssuer ();
|
||||
get_issuer = xrpAccount ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -204,12 +204,12 @@ Json::Value doRipplePathFind (RPC::Context& context)
|
||||
STAmount saMaxAmountAct;
|
||||
STAmount saDstAmountAct;
|
||||
STAmount saMaxAmount (
|
||||
uSrcCurrencyID,
|
||||
!!uSrcIssuerID
|
||||
? uSrcIssuerID // Use specifed issuer.
|
||||
: !!uSrcCurrencyID // Default to source account.
|
||||
? Account(raSrc.getAccountID ())
|
||||
: xrpIssuer(),
|
||||
{uSrcCurrencyID,
|
||||
!!uSrcIssuerID
|
||||
? uSrcIssuerID // Use specifed issuer.
|
||||
: !!uSrcCurrencyID // Default to source account.
|
||||
? Account(raSrc.getAccountID ())
|
||||
: xrpAccount()},
|
||||
1);
|
||||
saMaxAmount.negate ();
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ Json::Value doSubscribe (RPC::Context& context)
|
||||
|| !jvSubRequest[jss::taker_gets].isObject ())
|
||||
return rpcError (rpcINVALID_PARAMS);
|
||||
|
||||
// VFALCO TODO Use RippleAsset here
|
||||
// VFALCO TODO Use Issue here
|
||||
Currency pay_currency;
|
||||
Account pay_issuer;
|
||||
Currency get_currency;
|
||||
|
||||
Reference in New Issue
Block a user