From 39cb002b011b27a676addca64f6bba12ae0ccccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=9B=E6=B6=9B=E6=B6=9B?= <15700059289@163.com> Date: Fri, 22 Jan 2021 15:32:12 +0800 Subject: [PATCH] update cp test --- test/CrowdPooling/CPSettle.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/CrowdPooling/CPSettle.test.ts b/test/CrowdPooling/CPSettle.test.ts index 2e5f4ad..3bd8721 100644 --- a/test/CrowdPooling/CPSettle.test.ts +++ b/test/CrowdPooling/CPSettle.test.ts @@ -71,16 +71,16 @@ describe("Funding", () => { var poolAddress = await ctx.CP.methods._POOL_().call() var pool = getContractWithAddress(DVM_NAME, poolAddress) - assert.equal(await pool.methods.getMidPrice().call(), "9999999999999999987") //todo 验证这个价格 + assert.equal(await pool.methods.getMidPrice().call(), "9999999999999999990") assert.equal(await ctx.CP.methods._AVG_SETTLED_PRICE_().call(), "10000000000000000000") assert.equal(await ctx.CP.methods._UNUSED_QUOTE_().call(), "0") - assert.equal(await ctx.CP.methods._UNUSED_BASE_().call(), "99900000000000000000") + assert.equal(await ctx.CP.methods._UNUSED_BASE_().call(), "100000000000000000000") - assert.equal(await ctx.BASE.methods.balanceOf(poolAddress).call(), "9900100000000000000000") - assert.equal(await ctx.BASE.methods.balanceOf(ctx.CP.options.address).call(), "99900000000000000000") + assert.equal(await ctx.BASE.methods.balanceOf(poolAddress).call(), "9900000000000000000000") + assert.equal(await ctx.BASE.methods.balanceOf(ctx.CP.options.address).call(), "100000000000000000000") - assert.equal(await ctx.QUOTE.methods.balanceOf(poolAddress).call(), decimalStr("999")) + assert.equal(await ctx.QUOTE.methods.balanceOf(poolAddress).call(), decimalStr("1000")) assert.equal(await ctx.QUOTE.methods.balanceOf(ctx.CP.options.address).call(), "0") })