Skip to content

Commit

Permalink
remove migration sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemmsilva committed Feb 21, 2024
1 parent 2fa1b46 commit f0473bc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/legacymigration/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ func migrate(ctx isc.Sandbox) dict.Dict {
TargetAddress: targetAddress,
Assets: isc.NewAssetsBaseTokens(tokensToMigrate),
})

// in theory the code below is not needed, but let's keep for now as a sanity check
{
totalAmount := getTotalAmount(ctx.State())
totalAmount -= tokensToMigrate
setTotalAmount(ctx.State(), totalAmount)
calculatedAmount := calcTotalAmount(ctx.State())
// assert the total migration funds is still correct
ctx.Requiref(calculatedAmount == totalAmount, "inconsistency in migrated funds totals")
ctx.Requiref(ctx.BalanceBaseTokens() >= totalAmount, "inconsistency in migrated funds balance")
}

return nil
}

Expand Down

0 comments on commit f0473bc

Please sign in to comment.