From cd58793a9b7d4df61a74ea8b31df02193f33da35 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 14 Nov 2024 16:34:10 +0800 Subject: [PATCH] types/deposit: add getArbitrumExplorerURL --- pkg/types/deposit.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/types/deposit.go b/pkg/types/deposit.go index d45a4da243..78d3ae10d7 100644 --- a/pkg/types/deposit.go +++ b/pkg/types/deposit.go @@ -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 }