Skip to content

Commit

Permalink
feat: amp whale price from coingecko
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 committed Feb 19, 2024
1 parent 093dab7 commit 1f4b851
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
1 change: 1 addition & 0 deletions config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ var DefaultPriceServerConfig = Config{
"injective-protocol",
"secret",
"juno-network",
"eris-amplified-whale",
"stargaze",
"akash-network",
"white-whale",
Expand Down
47 changes: 24 additions & 23 deletions internal/parser/internal/coingecko/coingecko.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,30 @@ import (

// symbol to base coin mapping
var COIN_GECKO_MAPPING = map[string]string{
"bitcoin": "BTC",
"ethereum": "ETH",
"binancecoin": "BNB",
"tether": "USDT",
"usd-coin": "USDC",
"binance-usd": "BUSD",
"dai": "DAI",
"okb": "OKB",
"solana": "SOL",
"cosmos": "ATOM",
"terra-luna-2": "LUNA",
"terra-luna": "LUNC",
"terrausd": "USTC",
"injective-protocol": "INJ",
"secret": "SCRT",
"juno-network": "JUNO",
"stargaze": "STARS",
"akash-network": "AKT",
"white-whale": "WHALE", // White Whale chain
"switcheo": "SWTH", // Carbon chain
"stafi-staked-swth": "rSWTH", // stafi-staked-swth
"stride-staked-luna": "STLUNA", // Stride chain
"osmosis": "OSMO",
"bitcoin": "BTC",
"ethereum": "ETH",
"binancecoin": "BNB",
"tether": "USDT",
"usd-coin": "USDC",
"binance-usd": "BUSD",
"dai": "DAI",
"okb": "OKB",
"solana": "SOL",
"cosmos": "ATOM",
"terra-luna-2": "LUNA",
"terra-luna": "LUNC",
"terrausd": "USTC",
"injective-protocol": "INJ",
"secret": "SCRT",
"juno-network": "JUNO",
"eris-amplified-whale": "AMPWHALE",
"stargaze": "STARS",
"akash-network": "AKT",
"white-whale": "WHALE", // White Whale chain
"switcheo": "SWTH", // Carbon chain
"stafi-staked-swth": "rSWTH", // stafi-staked-swth
"stride-staked-luna": "STLUNA", // Stride chain
"osmosis": "OSMO",
}

func ParseSymbol(symbol string) (string, string, error) {
Expand Down

0 comments on commit 1f4b851

Please sign in to comment.