Skip to content

Commit

Permalink
Whitelist Milestone Season Fix (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkatsios authored Sep 16, 2024
2 parents fe3f07c + fdf3b41 commit 7886ad9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions protocol/reseed/data/r9-whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
"0xc84c7727",
"1",
"10000",
"0",
"0x5fbc",
"0",
"0x01",
"0",
Expand Down Expand Up @@ -246,7 +246,7 @@
"0xc84c7727",
"1",
"10000",
"0",
"0x5fbc",
"0",
"0x01",
"0",
Expand Down Expand Up @@ -283,7 +283,7 @@
"0xBEA00dAf62D5549D265c5cA6D6BE87eF17881279",
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
[
"0x00000000",
"0xc84c7727",
"0x1",
"0x2540be400",
"0x5525",
Expand Down Expand Up @@ -326,7 +326,7 @@
"0xc84c7727",
"1",
"10000",
"0",
"0x5fbc",
"0",
"0x01",
"0",
Expand Down
25 changes: 13 additions & 12 deletions protocol/reseed/dataConverts/convertWhitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ const tokensToWhitelist = [
"0xBEA00bE150FEF7560A8ff3C68D07387693Ddfd0b"
];

const defaultAssetSettings = {
selector: "0xc84c7727",
stalkEarnedPerSeason: "1",
stalkIssuedPerBdv: "10000",
milestoneSeason: "0",
milestoneStem: "0",
encodeType: "0x01",
deltaStalkEarnedPerSeason: "0",
gaugePoints: "0",
optimalPercentDepositedBdv: "0"
};

const tokenToWhitelistMapping = {
"0xBEA0005B8599265D41256905A9B3073D397812E4": [
"0xBEA0005B8599265D41256905A9B3073D397812E4",
Expand Down Expand Up @@ -186,6 +174,19 @@ const tokenToGpAndOptimalPercentDepositedBdvMapping = {
function parseWhitelist(inputFilePath, outputFilePath) {
try {
const data = JSON.parse(fs.readFileSync(inputFilePath, "utf8"));

const defaultAssetSettings = {
selector: "0xc84c7727",
stalkEarnedPerSeason: "1",
stalkIssuedPerBdv: "10000",
milestoneSeason: data.season.current,
milestoneStem: "0",
encodeType: "0x01",
deltaStalkEarnedPerSeason: "0",
gaugePoints: "0",
optimalPercentDepositedBdv: "0"
};

const assetSettings = data.silo.assetSettings;
const output = {};

Expand Down

0 comments on commit 7886ad9

Please sign in to comment.