Skip to content

Commit

Permalink
types/deposit: add getArbitrumExplorerURL
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Nov 14, 2024
1 parent 10e3323 commit cd58793
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/types/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,18 @@ func getExplorerURL(network string, txID string) string {
return getBscNetworkExplorerURL(txID)
case "ETH":
return getEthNetworkExplorerURL(txID)
case "ARBITRUM", "ARB":
return getArbitrumExplorerURL(txID)

}

return ""
}

func getArbitrumExplorerURL(txID string) string {
return "https://arbiscan.io/tx/" + txID
}

func getEthNetworkExplorerURL(txID string) string {
return "https://etherscan.io/tx/" + txID
}
Expand Down

0 comments on commit cd58793

Please sign in to comment.