generated from TreasureProject/web3-frontend-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add swap pair convenience button on pool details
- Loading branch information
1 parent
25521f2
commit 3d5eb3d
Showing
4 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { arbitrum } from "viem/chains"; | ||
import { CHAIN_ID_TO_CHAIN } from "~/consts"; | ||
|
||
export const getBlockExplorerUrl = ({ chainId }: { chainId: number }) => { | ||
export const getBlockExplorer = ({ chainId }: { chainId: number }) => { | ||
const chain = CHAIN_ID_TO_CHAIN[chainId] ?? arbitrum; | ||
return chain.blockExplorers?.default ?? arbitrum.blockExplorers.default; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters