Skip to content

Commit

Permalink
governor: Add initial token list for Unichain and Berachain
Browse files Browse the repository at this point in the history
  • Loading branch information
djb15 committed Feb 21, 2025
1 parent 2ea519c commit 94895c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node/hack/governor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ axios
var tokenParts = token.split("-");
var newTokenSymbol = newTokenKeys[tokenParts[0] + "-" + tokenParts[1]];
if (!newTokenSymbol) {
removedTokens.push(token + " (https://www.coingecko.com/en/coins/" + newTokenSymbol[1] + ")");
removedTokens.push(token);
}
// The token symbol has changed
// We take a substring of the symbol to cut the "=" character we added above
Expand Down
5 changes: 0 additions & 5 deletions node/pkg/governor/mainnet_tokens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ func TestGovernedChainHasGovernedAssets(t *testing.T) {
ignoredChains := map[vaa.ChainID]bool{
// TODO: Remove this once we have governed tokens for Snax.
vaa.ChainIDSnaxchain: true,
// TODO: Remove this once we have governed tokens for Berachain.
vaa.ChainIDBerachain: true,
// TODO: Remove this once we have governed tokens for Unichain.
vaa.ChainIDUnichain: true,

// Wormchain is an abstraction over IBC-connected chains so no assets are "native" to it
vaa.ChainIDWormchain: true,
}
Expand Down
10 changes: 10 additions & 0 deletions node/pkg/governor/manual_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ func manualTokenList() []tokenConfigEntry {
{chain: 35, addr: "000000000000000000000000cDA86A272531e8640cD7F1a92c01839911B90bb0", symbol: "METH", coinGeckoId: "mantle-staked-ether", decimals: 18, price: 3934.06},
{chain: 35, addr: "000000000000000000000000deaddeaddeaddeaddeaddeaddeaddeaddead1111", symbol: "WETH", coinGeckoId: "wrapped-ether-mantle-bridge", decimals: 18, price: 3825.65},
{chain: 35, addr: "000000000000000000000000371c7ec6d8039ff7933a2aa28eb827ffe1f52f07", symbol: "JOE", coinGeckoId: "joe", decimals: 18, price: 0.4911},
// BERACHAIN (non-bridged tokens over $1,000,000 24h volume)
{chain: 39, addr: "0000000000000000000000006969696969696969696969696969696969696969", symbol: "WBERA", coinGeckoId: "wrapped-bera", decimals: 18, price: 6.62},
{chain: 39, addr: "000000000000000000000000fcbd14dc51f0a4d49d5e53c2e0950e0bc26d0dce", symbol: "HONEY", coinGeckoId: "honey-3", decimals: 18, price: 0.9985},
{chain: 39, addr: "0000000000000000000000006fc6545d5cde268d5c7f1e476d444f39c995120d", symbol: "BERAETH", coinGeckoId: "berachain-staked-eth", decimals: 18, price: 2713.26},
{chain: 39, addr: "00000000000000000000000036e9fe653e673fda3857dbe5afbc884af8a316a2", symbol: "BERAFI", coinGeckoId: "berafi", decimals: 18, price: 0.00117},
// UNICHAIN (tokens over $1,000,000 24h volume)
{chain: 44, addr: "000000000000000000000000078D782b760474a361dDA0AF3839290b0EF57AD6", symbol: "USDC", coinGeckoId: "usd-coin", decimals: 6, price: 1.00},
{chain: 44, addr: "0000000000000000000000004200000000000000000000000000000000000006", symbol: "WETH", coinGeckoId: "unichain-bridged-weth-unichain", decimals: 18, price: 2722.24},
{chain: 44, addr: "0000000000000000000000008f187aA05619a017077f5308904739877ce9eA21", symbol: "UNI", coinGeckoId: "uniswap", decimals: 18, price: 9.43},
{chain: 44, addr: "00000000000000000000000020CAb320A855b39F724131C69424240519573f81", symbol: "DAI", coinGeckoId: "dai", decimals: 18, price: 1.0},
// WORLDCHAIN (tokens over $50,000 24h volume)
{chain: 45, addr: "0000000000000000000000002cFc85d8E48F8EAB294be644d9E25C3030863003", symbol: "WLD", coinGeckoId: "worldcoin-wld", decimals: 18, price: 2.47},
{chain: 45, addr: "00000000000000000000000003C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3", symbol: "WBTC", coinGeckoId: "bridged-wrapped-bitcoin-worldchain", decimals: 8, price: 86683.84},
Expand Down

0 comments on commit 94895c9

Please sign in to comment.