1- import { Hex } from "viem" ;
1+ import { Hex , parseEther } from "viem" ;
22import { PendingIcon } from "../icons/PendingIcon" ;
33import { Button } from "../ui/Button" ;
44import { Balance } from "../ui/Balance" ;
55import { useBalance , useWatchBlockNumber } from "wagmi" ;
66import { useEntryKitConfig } from "../EntryKitConfigProvider" ;
77import relayChains from "../data/relayChains.json" ;
88import { useSetBalance } from "./useSetBalance" ;
9- import { RelayChains , minGasBalance } from "./common" ;
9+ import { RelayChains } from "./common" ;
1010import { TruncatedHex } from "../ui/TruncatedHex" ;
1111import { useShowMutationError } from "../errors/useShowMutationError" ;
1212import { useShowQueryError } from "../errors/useShowQueryError" ;
@@ -46,7 +46,7 @@ export function GasBalance({ isActive, isExpanded, sessionAddress }: Props) {
4646 onClick = { ( ) =>
4747 setBalance . mutate ( {
4848 address : sessionAddress ,
49- value : minGasBalance + ( balance . data ?. value ?? 0n ) ,
49+ value : parseEther ( "0.01" ) + ( balance . data ?. value ?? 0n ) ,
5050 } )
5151 }
5252 >
@@ -55,7 +55,7 @@ export function GasBalance({ isActive, isExpanded, sessionAddress }: Props) {
5555 ) : relayChain != null ? (
5656 // TODO: convert this to a <ButtonLink>
5757 < a
58- href = { `${ relayChain . bridgeUrl } ?${ new URLSearchParams ( { toAddress : sessionAddress } ) } ` }
58+ href = { `${ relayChain . bridgeUrl } ?${ new URLSearchParams ( { toAddress : sessionAddress , amount : "0.01" } ) } ` }
5959 target = "_blank"
6060 rel = "noopener noreferrer"
6161 >
0 commit comments