Skip to content

Commit

Permalink
fix: bridge token
Browse files Browse the repository at this point in the history
  • Loading branch information
wellitongervickas committed Dec 9, 2023
1 parent c0318d4 commit 137f93e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ export const BridgeButton = ({
/>
) : (
<div className='flex flex-col space-y-4'>
<div>
<ul>
<li>
Fees (Link):{' '}
{ethers.formatEther(bridgeFeesField || 0n).toString()}
</li>
<ul>
<li>
Fees (Link):
{ethers.formatEther(bridgeFeesField || 0n).toString()}
</li>
{symbol && (
<li>
<Text>NFT to bridge: {symbol}</Text>
</li>
</ul>
</div>
)}
</ul>
<Button
type={isERC721Approved ? 'submit' : 'button'}
className='w-full'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export const useBridgeFees = ({
)
}

console.log(payload)

const getFeeResult = useContractRead({
address: targetEvmChainIdSettings?.adapter as `0x${string}`,
abi: BASE_ADAPTER_ABI,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/wallet/hooks/useERC20Approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const useERC20Approve = ({

const isApproved = useMemo(() => {
return (ERC20Approved || 0n) >= amount
}, [ERC20Approved])
}, [ERC20Approved, amount])

return {
approve: writeAsync,
Expand Down

0 comments on commit 137f93e

Please sign in to comment.