update feeratemodel & test case
This commit is contained in:
@@ -39,6 +39,8 @@ export class ProxyContext {
|
||||
|
||||
//Functions
|
||||
DODOIncentive: Contract;
|
||||
MtFeeRateModelLogic: Contract;
|
||||
MtFeeRateModelLogicUpdate: Contract;
|
||||
|
||||
Deployer: string;
|
||||
Maintainer: string;
|
||||
@@ -78,8 +80,8 @@ export class ProxyContext {
|
||||
var dppAdminTemplate = await contracts.newContract(contracts.DPP_ADMIN_NAME)
|
||||
var permissionManagerTemplate = await contracts.newContract(contracts.PERMISSION_MANAGER_NAME)
|
||||
var mtFeeRateModelTemplate = await contracts.newContract(contracts.FEE_RATE_MODEL_NAME)
|
||||
// await mtFeeRateModelTemplate.methods.init(this.Deployer,decimalStr("0.01")).send(this.sendParam(this.Deployer));
|
||||
await mtFeeRateModelTemplate.methods.init(this.Deployer,decimalStr("0")).send(this.sendParam(this.Deployer));
|
||||
await mtFeeRateModelTemplate.methods.init(this.Deployer,decimalStr("0.01")).send(this.sendParam(this.Deployer));
|
||||
// await mtFeeRateModelTemplate.methods.init(this.Deployer,decimalStr("0")).send(this.sendParam(this.Deployer));
|
||||
|
||||
this.DVMFactory = await contracts.newContract(contracts.DVM_FACTORY_NAME,
|
||||
[
|
||||
@@ -150,6 +152,11 @@ export class ProxyContext {
|
||||
[this.WETH.options.address]
|
||||
)
|
||||
|
||||
|
||||
this.MtFeeRateModelLogic = await contracts.newContract(contracts.FEE_RATE_MODEL_LOGIC_NAME)
|
||||
this.MtFeeRateModelLogicUpdate = await contracts.newContract(contracts.FEE_RATE_MODEL_LOGIC_UPDATE_NAME)
|
||||
|
||||
|
||||
console.log(log.blueText("[Init DVM context]"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user