Skip to content

Commit

Permalink
Merge pull request #101 from terra-money/feat/bwhale
Browse files Browse the repository at this point in the history
feat: implement price request for bWhale
  • Loading branch information
javiersuweijie authored Feb 28, 2024
2 parents f1572b0 + ea3bc86 commit dc7bdf9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
1 change: 1 addition & 0 deletions config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ var DefaultPriceServerConfig = Config{
"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",
"eris-amplified-whale": "AMPWHALE",
"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",
"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 dc7bdf9

Please sign in to comment.