diff --git a/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy b/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy index abdf40a9..e29509cf 100644 --- a/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy +++ b/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy @@ -55,13 +55,24 @@ class SendToOwnersTestPlanSpec extends BaseRegTestSpec { def startMSC = OmniDivisibleValue.of(mscAvailable + mscReserved) def actorAddress = createFundedAddress(startBTC, startMSC, false) def currencyMSC = CurrencyID.of(ecosystem.value()) + + assertBalance(actorAddress, currencyMSC, startMSC, 0.divisible) + def currencySPT = getStoProperty(actorAddress, data) + if (currencySPT != CurrencyID.OMNI && currencySPT != CurrencyID.TOMNI) { + assertBalance(actorAddress, currencyMSC, startMSC, 0.divisible) + } + // Create a DEx offer to reserve an amount if (mscReserved > 0) { reserveAmountMSC(actorAddress, currencyMSC, mscReserved.divisible) } + if (currencySPT != CurrencyID.OMNI && currencySPT != CurrencyID.TOMNI) { + assertBalance(actorAddress, currencyMSC, mscAvailable, mscReserved) + } + when: "the owners are funded" def ownerIds = 0..