cloud_functions: Override terra-classic LUNA CoinGeckoId (#1319)

This commit is contained in:
kev1n-peters 2022-06-30 15:50:22 -05:00 committed by GitHub
parent 47318c2a03
commit 260b0c7c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -364,6 +364,12 @@ func ProcessVAA(ctx context.Context, m PubSubMessage) error {
name = foundName
}
// special case for terra-classic
if symbol == "LUNA" && chainID == vaa.ChainIDTerra {
coinGeckoCoinId = "terra-luna"
name = "LUNA"
}
log.Printf("Processing AssetMeta: Name %v, Symbol %v, coingeckoId %v\n", name, symbol, coinGeckoCoinId)
// save payload to bigtable