diff --git a/src/ripple/app/tx/impl/PayChan.cpp b/src/ripple/app/tx/impl/PayChan.cpp index ac5b30246..1d8a6ebc2 100644 --- a/src/ripple/app/tx/impl/PayChan.cpp +++ b/src/ripple/app/tx/impl/PayChan.cpp @@ -490,6 +490,9 @@ PayChanFund::doApply() // issuer does not need to lock anything if (!isIssuer) { + if (slep->getFieldAmount(sfBalance).issue() != amount.issue()) + return temBAD_CURRENCY; + sleLine = ctx_.view().peek(keylet::line( (*slep)[sfAccount], amount.getIssuer(), amount.getCurrency())); @@ -765,7 +768,7 @@ PayChanClaim::doApply() // no reason to do a dry run first if (!ctx_.view().rules().enabled(featurePaychanAndEscrowForTokens)) return temDISABLED; - + auto sleSrcAcc = ctx_.view().peek(keylet::account(src)); TER result = trustTransferLockedBalance( ctx_.view(),