This commit is contained in:
owen05
2021-01-22 14:54:34 +08:00
parent a5b29dd35c
commit 53c1e3ebee
6 changed files with 28 additions and 19 deletions

View File

@@ -83,7 +83,7 @@ describe("ConstPriceCase", () => {
// maintainer balances
assert.equal(
await ctx.BASE.methods.balanceOf(ctx.Maintainer).call(),
decimalStr("0.002")
decimalStr("0")
);
assert.equal(
await ctx.QUOTE.methods.balanceOf(ctx.Maintainer).call(),
@@ -124,7 +124,7 @@ describe("ConstPriceCase", () => {
);
assert.equal(
await ctx.QUOTE.methods.balanceOf(ctx.Maintainer).call(),
decimalStr("0.1")
decimalStr("0")
);
});
});

View File

@@ -52,7 +52,7 @@ async function initCreateDVM(ctx: ProxyContext, token0: string, token1: string,
config.lpFeeRate,
i,
config.k,
true,
false,
Math.floor(new Date().getTime() / 1000 + 60 * 10)
).send(ctx.sendParam(project, ethValue));
if (token0 == '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE') token0 = ctx.WETH.options.address;