Skip to content

Commit

Permalink
cloud_functions: Override terra-classic LUNA CoinGeckoId (wormhole-fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Jun 30, 2022
1 parent 47318c2 commit 260b0c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions event_database/cloud_functions/process-vaa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 260b0c7

Please sign in to comment.