Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ylv-io committed Jun 1, 2021
1 parent 510d07d commit 0137cdd
Show file tree
Hide file tree
Showing 24 changed files with 60 additions and 60 deletions.
16 changes: 8 additions & 8 deletions deployments/deploy-mainnet-31042021.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ contracts/PriceOracle.sol -> Deploy -> Done -> Set
contracts/gardens/Garden.sol -> Deploy -> Done
contracts/gardens/GardenFactory.sol -> Deploy -> Done -> Set
contracts/integrations/passive/HarvestVaultIntegration.sol -> Deploy -> Done -> Set
contracts/integrations/trade/OneInchTradeIntegration.sol -> Deploy -> Done
contracts/integrations/trade/OneInchTradeIntegration.sol -> Deploy -> Done -> Set
contracts/strategies/Strategy.sol -> Deploy -> Done
contracts/strategies/StrategyFactory.sol -> Deploy -> Done
contracts/strategies/StrategyNFT.sol -> Deploy -> Done
contracts/token/RewardsDistributor.sol -> Deploy -> Done
contracts/strategies/operations/AddLiquidityOperation.sol -> Deploy -> Done
contracts/strategies/operations/BuyOperation.sol -> Deploy -> Done
contracts/strategies/operations/DepositVaultOperation.sol -> Deploy -> Done
contracts/strategies/operations/LendOperation.sol -> Deploy -> Done
contracts/strategies/StrategyFactory.sol -> Deploy -> Done -> Set
contracts/strategies/StrategyNFT.sol -> Deploy -> Done -> Set
contracts/token/RewardsDistributor.sol -> Deploy -> Done -> Set
contracts/strategies/operations/AddLiquidityOperation.sol -> Deploy -> Done -> Set
contracts/strategies/operations/BuyOperation.sol -> Deploy -> Done -> Set
contracts/strategies/operations/DepositVaultOperation.sol -> Deploy -> Done -> Set
contracts/strategies/operations/LendOperation.sol -> Deploy -> Done -> Set
4 changes: 2 additions & 2 deletions deployments/migrations/000-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = async ({
const { deployer } = await getNamedAccounts();
const signers = await ethers.getSigners();
const chainId = await getChainId();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();

if (chainId === '31337') {
Expand All @@ -29,7 +29,7 @@ module.exports = async ({
},
);

const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

if (!(await controllerContract.isValidReserveAsset('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'))) {
console.log('Setting reserve asset to WETH');
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/004-treasury.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'Treasury';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/005-garden-valuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'GardenValuer';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/006-gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'IshtarGate';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand All @@ -27,7 +27,7 @@ module.exports = async ({
console.log(`Setting ishtar gate on controller ${deployment.address}`);
await (await controllerContract.editIshtarGate(deployment.address, { gasPrice })).wait();

const ishtarGate = await ethers.getContractAt('IshtarGate', deployment.address, singer);
const ishtarGate = await ethers.getContractAt('IshtarGate', deployment.address, signer);
for (const address of [
'0x83f4622A18e38bE297e089fB055Dd5123bb0b279',
'0x21584Cc5a52102AbB381286a5119E3be08431CfD',
Expand Down
2 changes: 1 addition & 1 deletion deployments/migrations/007-garden-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(signer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();

const gardenFactoryContract = 'GardenFactory';
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/008-strategy-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(deployer);
const gasPrice = await getRapid();

const strategyFactoryContract = 'StrategyFactory';
const strategyContract = 'Strategy';
const beaconContract = 'StrategyBeacon';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const strategy = await deploy(strategyContract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/010-oracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);
const contract = 'PriceOracle';

const uniswapTWAPv3 = await deployments.get('UniswapTWAPV3');
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/011-kyber.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'KyberTradeIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/012-inch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(owner);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'OneInchTradeIntegration';

Expand All @@ -25,7 +25,7 @@ module.exports = async ({
gasPrice,
});

if (!deployment.newlyDeployed) {
if (deployment.newlyDeployed) {
console.log(`Adding integration ${contract}(${deployment.address}) to BabController`);
await (
await controllerContract.addIntegration(
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/013-balancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'BalancerIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/014-uniswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'UniswapPoolIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/015-sushiswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'SushiswapPoolIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/016-inch-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'OneInchPoolIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/017-yearn.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'YearnVaultIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/018-harvest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer, owner } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'HarvestVaultIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/019-compound.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'CompoundLendIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/020-aave.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'AaveLendIntegration';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/021-buy-operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'BuyOperation';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/022-add-liquidity-operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const { deployer, owner } = await getNamedAccounts();
const gasPrice = await getRapid();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const contract = 'AddLiquidityOperation';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/023-deposit-vault-operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'DepositVaultOperation';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/024-lend-operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'LendOperation';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
4 changes: 2 additions & 2 deletions deployments/migrations/025-gardennft.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module.exports = async ({
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'GardenNFT';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down
6 changes: 3 additions & 3 deletions deployments/migrations/026-strategynft.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ module.exports = async ({
getRapid,
}) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
const singer = await getSigner(deployer);
const { deployer, owner } = await getNamedAccounts();
const signer = await getSigner(deployer);
const gasPrice = await getRapid();
const contract = 'StrategyNFT';

const controller = await deployments.get('BabControllerProxy');
const controllerContract = await ethers.getContractAt('BabController', controller.address, singer);
const controllerContract = await ethers.getContractAt('BabController', controller.address, signer);

const deployment = await deploy(contract, {
from: deployer,
Expand Down

0 comments on commit 0137cdd

Please sign in to comment.