Skip to content

Commit

Permalink
release: adjust TLC weight
Browse files Browse the repository at this point in the history
  • Loading branch information
shutsuwei committed Apr 25, 2024
1 parent 6315e2c commit 3bc76b4
Showing 1 changed file with 46 additions and 8 deletions.
54 changes: 46 additions & 8 deletions script/ts/configs/TLCHook/set-market-weight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,52 @@ async function main(chainId: number) {
const safeWrapper = new SafeWrapper(chainId, config.safe, deployer);

const weightConfigs: Array<WeightConfig> = [
{
marketIndex: 52, // WUSD
weightBPS: 5 * BPS,
},
{
marketIndex: 53, // ENAUSD
weightBPS: 5 * BPS,
},
{ marketIndex: 0, weightBPS: 30000 },
{ marketIndex: 1, weightBPS: 30000 },
{ marketIndex: 2, weightBPS: 15000 },
{ marketIndex: 3, weightBPS: 55000 },
{ marketIndex: 4, weightBPS: 15000 },
{ marketIndex: 5, weightBPS: 55000 },
{ marketIndex: 6, weightBPS: 15000 },
{ marketIndex: 7, weightBPS: 15000 },
{ marketIndex: 8, weightBPS: 55000 },
{ marketIndex: 9, weightBPS: 55000 },
{ marketIndex: 10, weightBPS: 55000 },
{ marketIndex: 11, weightBPS: 55000 },
{ marketIndex: 12, weightBPS: 55000 },
{ marketIndex: 13, weightBPS: 55000 },
{ marketIndex: 14, weightBPS: 55000 },
{ marketIndex: 15, weightBPS: 55000 },
{ marketIndex: 16, weightBPS: 55000 },
{ marketIndex: 17, weightBPS: 55000 },
{ marketIndex: 18, weightBPS: 15000 },
{ marketIndex: 19, weightBPS: 55000 },
{ marketIndex: 20, weightBPS: 15000 },
{ marketIndex: 21, weightBPS: 15000 },
{ marketIndex: 22, weightBPS: 15000 },
{ marketIndex: 23, weightBPS: 15000 },
{ marketIndex: 24, weightBPS: 55000 },
{ marketIndex: 25, weightBPS: 55000 },
{ marketIndex: 26, weightBPS: 15000 },
{ marketIndex: 27, weightBPS: 55000 },
{ marketIndex: 28, weightBPS: 55000 },
{ marketIndex: 29, weightBPS: 55000 },
{ marketIndex: 30, weightBPS: 55000 },
{ marketIndex: 31, weightBPS: 55000 },
{ marketIndex: 32, weightBPS: 55000 },
{ marketIndex: 33, weightBPS: 55000 },
{ marketIndex: 34, weightBPS: 55000 },
{ marketIndex: 35, weightBPS: 55000 },
{ marketIndex: 36, weightBPS: 55000 },
{ marketIndex: 37, weightBPS: 55000 },
{ marketIndex: 38, weightBPS: 15000 },
{ marketIndex: 39, weightBPS: 55000 },
{ marketIndex: 40, weightBPS: 55000 },
{ marketIndex: 41, weightBPS: 55000 },
{ marketIndex: 42, weightBPS: 55000 },
{ marketIndex: 43, weightBPS: 55000 },
{ marketIndex: 44, weightBPS: 55000 },
{ marketIndex: 45, weightBPS: 55000 },
];

const tlcHook = TLCHook__factory.connect(config.hooks.tlc, deployer);
Expand Down

0 comments on commit 3bc76b4

Please sign in to comment.