refactoring route intf

This commit is contained in:
owen05
2020-11-30 12:36:59 +08:00
parent 180c687a4a
commit eb76b3b7cc
9 changed files with 125 additions and 65 deletions

View File

@@ -259,7 +259,6 @@ describe("DODOProxyV2.0", () => {
assert.equal(a_USDT,"149474926");
});
it("swap - two jump", async () => {
await ctx.mintTestToken(trader, ctx.DODO, decimalStr("1000"));
var b_DOOD = await ctx.DODO.methods.balanceOf(trader).call();
@@ -355,7 +354,5 @@ describe("DODOProxyV2.0", () => {
"3760778359898791539"
)
});
});
});

View File

@@ -28,6 +28,7 @@ export class ProxyContext {
DPPFactory: Contract;
SmartApprove: Contract;
DODOCalleeHelper: Contract;
DODOSellHelper: Contract;
//token
DODO: Contract;
@@ -94,12 +95,17 @@ export class ProxyContext {
]
)
this.DODOSellHelper = await contracts.newContract(
contracts.DODO_SELL_HELPER
);
this.DODOProxy = await contracts.newContract(contracts.DODO_PROXY_NAME,
[
this.DVMFactory.options.address,
this.DPPFactory.options.address,
this.WETH.options.address,
this.SmartApprove.options.address
this.SmartApprove.options.address,
this.DODOSellHelper.options.address
]
);