Skip to content

Commit

Permalink
Fix deposit list links
Browse files Browse the repository at this point in the history
* update canto to use mintscan
* suport cosmos hub
* support kuji
  • Loading branch information
jkilpatr committed Jan 5, 2024
1 parent 3f470cb commit 6dd6f67
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gravity-info-dash/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,18 +405,24 @@ function cosmosAddressToExplorerLink(input: string) {
let gravBase = "https://mintscan.io/gravity-bridge/account/"
let osmoBase = "https://mintscan.io/osmosis/account/"
let crescentBase = "https://mintscan.io/crescent/account/"
let cantoBase = "https://explorer.nodestake.top/canto/account/"
let cantoBase = "https://mintscan.io/canto/account/"
let cosmosBase = "https://mintscan.io/cosmos/account/"
let kujiBase = "https://finder.kujira.network/kaiyo-1/address/"
let mantleBase = "https://mintscan.io/mantle/account/"
if (input.startsWith("gravity")) {
return gravBase + input
} else if (input.startsWith("canto")) {
return cantoBase + input
} else if (input.startsWith("osmosis")) {
} else if (input.startsWith("osmo")) {
return osmoBase + input
} else if (input.startsWith("cre")) {
return crescentBase + input
} else if (input.startsWith("mantle")) {
return mantleBase + input
} else if (input.startsWith("cosmos")) {
return cosmosBase + input
} else if (input.startsWith("kujira")) {
return kujiBase + input
} else {
return input
}
Expand Down

0 comments on commit 6dd6f67

Please sign in to comment.