Skip to content

Commit

Permalink
feat: [sc-29879] Update MATIC -> POL, Klayth -> Kaia (#176)
Browse files Browse the repository at this point in the history
* Update MARIC->POL, Klayth -> Kaia

* Fix unit tests

* Update POL name
  • Loading branch information
tw-daniel authored Sep 30, 2024
1 parent effad9f commit ee6082f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions coin/coins.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions coin/coins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@
isTokenSupported: false

- id: 966
symbol: MATIC
symbol: POL
handle: polygon
name: Polygon
name: POL (ex-MATIC)
decimals: 18
blockchain: Ethereum
minConfirmations: 12
Expand Down Expand Up @@ -765,7 +765,7 @@
- id: 10008217
symbol: KLAY
handle: klaytn
name: Klaytn
name: Kaia
decimals: 18
blockchain: Ethereum
minConfirmations: 36
Expand Down
2 changes: 1 addition & 1 deletion coin/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func GetCoinExploreURL(c Coin, tokenID, tokenType string) (string, error) {
case MOONBEAM:
return fmt.Sprintf("https://moonscan.io/token/%s", tokenID), nil
case KLAYTN:
return fmt.Sprintf("https://scope.klaytn.com/token/%s", tokenID), nil
return fmt.Sprintf("https://kaiascan.io/token/%s", tokenID), nil
case METIS:
return fmt.Sprintf("https://andromeda-explorer.metis.io/token/%s", tokenID), nil
case MOONRIVER:
Expand Down
2 changes: 1 addition & 1 deletion coin/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func TestGetCoinExploreURL(t *testing.T) {
tokenType: "KLAYTN",
chain: Klaytn(),
},
want: "https://scope.klaytn.com/token/test",
want: "https://kaiascan.io/token/test",
wantErr: false,
},
{
Expand Down
2 changes: 1 addition & 1 deletion types/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const (
KIP20 TokenType = "KIP20"
APTOS TokenType = "APTOS"
MOONBEAM TokenType = "MOONBEAM"
KLAYTN TokenType = "KLAYTN"
KLAYTN TokenType = "KAIA"
METIS TokenType = "METIS"
MOONRIVER TokenType = "MOONRIVER"
BOBA TokenType = "BOBA"
Expand Down

0 comments on commit ee6082f

Please sign in to comment.