Skip to content

Commit

Permalink
Exclude curve pool
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Apr 23, 2024
1 parent 1ff2208 commit 070291b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tooling/src/tasks/allocate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ import { saveAllocation } from "../persistence";
import proportionally from "../fns/proportionally";
import sort from "../fns/balancemapSort";
import sum from "../fns/balancemapSum";
import balancemapWithout from "../fns/balancemapWithout";

import { BalanceMap } from "../types";

const EXCLUDE = [getAddress("0x2686d5e477d1aaa58bf8ce598fa95d97985c7fb1")];

task(
"allocate",
"Calculates and persists one allocation file per VestingSlice entry in the schedule",
Expand All @@ -34,8 +37,15 @@ task(
.setAction(async (taskArgs) => {
const log = (text: string) => console.info(`Task allocate -> ${text}`);

const weightsMainnet = weightsFromCSV(taskArgs.weightsMainnet);
const weightsGnosis = weightsFromCSV(taskArgs.weightsGnosis);
const weightsMainnet = balancemapWithout(
weightsFromCSV(taskArgs.weightsMainnet),
EXCLUDE,
);
const weightsGnosis = balancemapWithout(
weightsFromCSV(taskArgs.weightsGnosis),
EXCLUDE,
);

const amountToDistribute = parseUnits(taskArgs.amountToDistribute, 18);

log("Starting");
Expand Down

0 comments on commit 070291b

Please sign in to comment.