bad currency guard

This commit is contained in:
Denis Angell
2023-01-29 05:47:23 -05:00
committed by Richard Holland
parent 4e6e81f5de
commit 31da4bf8d4

View File

@@ -491,6 +491,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()));