Skip to content

Commit

Permalink
node: Governor token list update
Browse files Browse the repository at this point in the history
  • Loading branch information
djb15 authored and johnsaigle committed Sep 19, 2024
1 parent 91ec4d1 commit 857c554
Show file tree
Hide file tree
Showing 3 changed files with 1,457 additions and 1,447 deletions.
3 changes: 2 additions & 1 deletion node/hack/governor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ axios
// The token symbol has changed
// We take a substring of the symbol to cut the "=" character we added above
else if (tokenParts[0] + "-" + tokenParts[1] + "-" + newTokenSymbol.substring(1) != token) {
changedSymbols.push(token + "->" + newTokenSymbol);
changedSymbols.push(token + "->" + newTokenSymbol.substring(1));
}
}

Expand All @@ -263,6 +263,7 @@ axios
changedContent += "\n\nTokens removed = " + removedTokens.length + ":\n<WH_chain_id>-<WH_token_addr>-<token_symbol>\n\n";
changedContent += JSON.stringify(removedTokens, null, 1);
changedContent += "\n\nTokens with changed symbols = " + changedSymbols.length + ":\n<WH_chain_id>-<WH_token_addr>-<old_token_symbol>-><new_token_symbol>\n\n";
changedContent += JSON.stringify(changedSymbols, null, 1);

changedContent += "\n\nTokens with invalid symbols = " + failedInputValidationTokens.length + ":\n<WH_chain_id>-<WH_token_addr>-<token_symbol>\n\n";
changedContent += JSON.stringify(failedInputValidationTokens, null, 1);
Expand Down
Loading

0 comments on commit 857c554

Please sign in to comment.