Skip to content

Commit

Permalink
Capped pool deployment task
Browse files Browse the repository at this point in the history
  • Loading branch information
MickdeGraaf committed Apr 23, 2020
1 parent a803098 commit 7b35e5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions buidler.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BuidlerConfig, usePlugin, task } from "@nomiclabs/buidler/config";
import { utils, constants } from "ethers";
import { MockTokenFactory } from "@pie-dao/mock-contracts/dist/typechain/MockTokenFactory";
import { PBasicSmartPoolFactory } from "./typechain/PBasicSmartPoolFactory";
import { PCappedSmartPoolFactory } from "./typechain/PCappedSmartPoolFactory";
import { IBFactoryFactory } from "./typechain/IBFactoryFactory";
import { deployBalancerFactory } from "./utils";
import { IBPoolFactory } from "./typechain/IBPoolFactory";
Expand Down Expand Up @@ -136,6 +137,15 @@ task("deploy-pie-smart-pool", "deploys a pie smart pool")
console.log(`PBasicSmartPool deployed at: ${smartpool.address}`);
});

task("deploy-pie-capped-smart-pool", "deploys a capped pie smart pool")
.setAction(async(taskArgs, { ethers }) => {
const signers = await ethers.getSigners();
const factory = new PCappedSmartPoolFactory(signers[0]);
const smartpool = await factory.deploy();

console.log(`PCappedSmartPool deployed at: ${smartpool.address}`);
});

task("init-smart-pool", "initialises a smart pool")
.addParam("smartPool", "Smart pool address")
.addParam("pool", "Balancer pool address (should have tokens binded)")
Expand Down

0 comments on commit 7b35e5d

Please sign in to comment.