Skip to content

Commit

Permalink
Merge pull request #63 from Gearbox-protocol/configs-separation
Browse files Browse the repository at this point in the history
fix: Configs separation
  • Loading branch information
manylov authored Oct 10, 2023
2 parents 3c8fe47 + e3efb9a commit 71f7f60
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 37 deletions.
8 changes: 8 additions & 0 deletions config/scripts/usdcLevScript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { PoolV3CoreConfigurator } from "@gearbox-protocol/sdk-gov";

import { config } from "../usdcLevconfig";

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
8 changes: 8 additions & 0 deletions config/scripts/usdcMTScript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { PoolV3CoreConfigurator } from "@gearbox-protocol/sdk-gov";

import { config } from "../usdcMTconfig";

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
8 changes: 8 additions & 0 deletions config/scripts/wbtcTScript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { PoolV3CoreConfigurator } from "@gearbox-protocol/sdk-gov";

import { config } from "../wbtcTconfig";

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
8 changes: 8 additions & 0 deletions config/scripts/wethMTScript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { PoolV3CoreConfigurator } from "@gearbox-protocol/sdk-gov";

import { config } from "../wethMTconfig";

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
10 changes: 1 addition & 9 deletions config/usdcLevconfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
PoolV3CoreConfigurator,
PoolV3DeployConfig,
} from "@gearbox-protocol/sdk-gov";
import { PoolV3DeployConfig } from "@gearbox-protocol/sdk-gov";

import { adapters } from "./adapters";

Expand Down Expand Up @@ -357,8 +354,3 @@ export const config: PoolV3DeployConfig = {
],
supportsQuotas: true,
};

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
10 changes: 1 addition & 9 deletions config/usdcMTconfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
PoolV3CoreConfigurator,
PoolV3DeployConfig,
} from "@gearbox-protocol/sdk-gov";
import { PoolV3DeployConfig } from "@gearbox-protocol/sdk-gov";

const POOL_DECIMALS = BigInt(1e6);
const POOL_DIVIDER = BigInt(1);
Expand Down Expand Up @@ -138,8 +135,3 @@ export const config: PoolV3DeployConfig = {
],
supportsQuotas: false,
};

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
10 changes: 1 addition & 9 deletions config/wbtcTconfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
PoolV3CoreConfigurator,
PoolV3DeployConfig,
} from "@gearbox-protocol/sdk-gov";
import { PoolV3DeployConfig } from "@gearbox-protocol/sdk-gov";

const POOL_DECIMALS = BigInt(1e8);
const POOL_DIVIDER = BigInt(26000);
Expand Down Expand Up @@ -54,8 +51,3 @@ export const config: PoolV3DeployConfig = {
],
supportsQuotas: false,
};

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
10 changes: 1 addition & 9 deletions config/wethMTconfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
PoolV3CoreConfigurator,
PoolV3DeployConfig,
} from "@gearbox-protocol/sdk-gov";
import { PoolV3DeployConfig } from "@gearbox-protocol/sdk-gov";

const POOL_DECIMALS = BigInt(1e18);
const POOL_DIVIDER = BigInt(1800);
Expand Down Expand Up @@ -60,8 +57,3 @@ export const config: PoolV3DeployConfig = {
],
supportsQuotas: false,
};

const poolCfg = PoolV3CoreConfigurator.new(config);
console.error(poolCfg.toString());

console.log(poolCfg.deployConfig());
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"url": "https://github.com/Gearbox-protocol/integrations-v3"
},
"files": [
"contracts"
"contracts",
"config"
],
"license": "BUSL-1.1",
"scripts": {
Expand Down

0 comments on commit 71f7f60

Please sign in to comment.