Skip to content

Commit

Permalink
SendToOwnersTestPlanSpec: add more asserts of actorAddress OMNI balance
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Jul 9, 2023
1 parent f4f3898 commit ce79b7c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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..<numberOfOwners
def owners = ownerIds.stream()
Expand Down

0 comments on commit ce79b7c

Please sign in to comment.