refactoring route intf
This commit is contained in:
@@ -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"
|
||||
)
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user