locked token vault

This commit is contained in:
mingda
2020-09-25 14:53:38 +08:00
parent 4c00bd2e9a
commit 2345523dc4
2 changed files with 36 additions and 19 deletions

View File

@@ -134,6 +134,10 @@ describe("Lock DODO Token", () => {
assert.equal(await LockedTokenVault.methods.getClaimableBalance(u3).call(), "0")
assert.ok(approxEqual(await LockedTokenVault.methods.getRemainingBalance(u3).call(), decimalStr("82.5")))
assert.ok(approxEqual(await DODOToken.methods.balanceOf(u3).call(), decimalStr("93.75")))
// transfer from u3 to u1
await LockedTokenVault.methods.transferLockedToken(u1).send(ctx.sendParam(u3))
})
it("withdraw", async () => {