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 8, 2023
1 parent f4f3898 commit 5a897bc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,20 @@ 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)

assertBalance(actorAddress, currencyMSC, startMSC, 0.divisible)

// Create a DEx offer to reserve an amount
if (mscReserved > 0) {
reserveAmountMSC(actorAddress, currencyMSC, mscReserved.divisible)
}

assertBalance(actorAddress, currencyMSC, mscAvailable, mscReserved)

when: "the owners are funded"
def ownerIds = 0..<numberOfOwners
def owners = ownerIds.stream()
Expand Down

0 comments on commit 5a897bc

Please sign in to comment.