Skip to content

Commit 14a52cd

Browse files
committed
feat(WIP-lifi): integrate wallet into lifi
1 parent 8bdf4c6 commit 14a52cd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

apps/portfolio/src/app/_config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createConfig, http } from 'wagmi'
1+
import { createConfig, http, injected } from 'wagmi'
22
import { arbitrum, mainnet, optimism } from 'wagmi/chains'
33

44
export const config = createConfig({
@@ -10,6 +10,7 @@ export const config = createConfig({
1010
[optimism.id]: http(),
1111
[arbitrum.id]: http(),
1212
},
13+
connectors: [injected()],
1314
})
1415

1516
declare module 'wagmi' {

apps/wallet/src/routes/portfolio/assets/$ticker.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99

1010
import SplittedLayout from '@/components/splitted-layout'
1111
import { useAssets } from '@/hooks/use-assets'
12+
import { apiClient } from '@/providers/api-client'
1213

1314
import { Token } from './-components/token'
1415

@@ -24,6 +25,11 @@ function Component() {
2425
const { data: assets, isLoading } = useAssets()
2526
const pathname = routerState.location.pathname
2627

28+
const wallets = apiClient.wallet.all.query()
29+
wallets.then(wallets => {
30+
console.log(wallets)
31+
})
32+
2733
return (
2834
<>
2935
<div className="hidden 2xl:block">

apps/wallet/src/routes/portfolio/assets/-components/exchange-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const ExchangeDialog = ({ onClose }: Props) => {
1111
<div className="relative w-full max-w-[400px] rounded-20 p-4">
1212
<div className="flex items-center justify-end pb-3">
1313
<button onClick={onClose} className="p-1">
14-
<CloseIcon size={20} />
14+
<CloseIcon />
1515
</button>
1616
</div>
1717
<LifiWidget />

0 commit comments

Comments
 (0)