Skip to content

Commit

Permalink
Merge pull request #103 from terra-money/feat/develop/bwhale
Browse files Browse the repository at this point in the history
feat(develop): implement price request for bWhale
  • Loading branch information
javiersuweijie authored Feb 28, 2024
2 parents ee2cd10 + 7690c64 commit 83781ce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
2 changes: 2 additions & 0 deletions config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,11 @@ var DefaultPriceServerConfig = Config{
"stargaze",
"akash-network",
"white-whale",
"eris-amplified-whale",
"switcheo",
"stafi-staked-swth",
"stride-staked-luna",
"backbone-labs-staked-whale",
},
},
"osmosis": {
Expand Down
49 changes: 25 additions & 24 deletions internal/parser/internal/coingecko/coingecko.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,31 @@ 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",
"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",
"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",
"eris-amplified-whale": "AMPWHALE",
"backbone-labs-staked-whale": "BWHALE",
"secret": "SCRT",
"juno-network": "JUNO",
"stargaze": "STARS",
"akash-network": "AKT",
"white-whale": "WHALE", // White Whale chain
"switcheo": "SWTH", // Carbon chain
"stride-staked-luna": "STLUNA", // Stride chain
"stafi-staked-swth": "rSWTH", // stafi-staked-swth
"osmosis": "OSMO",
}

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

0 comments on commit 83781ce

Please sign in to comment.