add dvm sync test

This commit is contained in:
mingda
2020-12-21 23:17:11 +08:00
parent ad046a7b11
commit 79f5351dc5
2 changed files with 11 additions and 2 deletions

View File

@@ -25,7 +25,6 @@ async function init(ctx: DVMContext): Promise<void> {
await ctx.transferQuoteToDVM(lp, decimalStr("1000"))
await ctx.DVM.methods.buyShares(lp).send(ctx.sendParam(lp));
console.log("deposit")
}
describe("AMMLikeCase", () => {
@@ -54,7 +53,7 @@ describe("AMMLikeCase", () => {
describe("trade", () => {
it("basic state", async () => {
console.log(await ctx.DVM.methods.getMidPrice().call())
console.log("DVM mid price", await ctx.DVM.methods.getMidPrice().call())
})
it("buy", async () => {