diff --git a/coin/models.go b/coin/models.go index c55174d..7fec490 100644 --- a/coin/models.go +++ b/coin/models.go @@ -83,7 +83,7 @@ func GetCoinExploreURL(c Coin, tokenID, tokenType string) (string, error) { case RONIN: return fmt.Sprintf("https://explorer.roninchain.com/token/%s", tokenID), nil case CELO: - return fmt.Sprintf("https://explorer.bitquery.io/celo_rc1/token/%s", tokenID), nil + return fmt.Sprintf("https://explorer.celo.org/mainnet/address/%s", tokenID), nil case ELROND: if tokenType == "ESDT" { return fmt.Sprintf("https://explorer.multiversx.com/tokens/%s", tokenID), nil diff --git a/coin/models_test.go b/coin/models_test.go index 3e72015..9055775 100644 --- a/coin/models_test.go +++ b/coin/models_test.go @@ -387,6 +387,16 @@ func TestGetCoinExploreURL(t *testing.T) { want: "https://explorer.zetachain.com/address/0x890a1b6dc3ca666eacda1c453115494291c6bc6a", wantErr: false, }, + { + name: "Test Celo", + args: args{ + addr: "0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C", + tokenType: "CELO", + chain: Celo(), + }, + want: "https://explorer.celo.org/mainnet/address/0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C", + wantErr: false, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {