Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/sections/lending/components/primitives/TokenIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const SYMBOL_TO_ASSET_ID_MAP_TESTNET: Record<string, string> = {
weth: "20",
wbtc: "3",
vdot: "15",
tbtc: "1000765",
}

const SYMBOL_TO_ASSET_ID_MAP_MAINNET: Record<string, string> = {
Expand All @@ -19,6 +20,7 @@ const SYMBOL_TO_ASSET_ID_MAP_MAINNET: Record<string, string> = {
weth: "20",
wbtc: "19",
vdot: "15",
tbtc: "1000765",
}

const SYMBOL_TO_ASSET_ID_MAP =
Expand Down
4 changes: 4 additions & 0 deletions src/sections/lending/ui-config/aTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const A_TOKEN_UNDERLYING_ID_MAP_TESTNET: { [key: string]: string } = {
"1000041": "20",
//avDOT
"1005": "15",
//atBTC
"1006": "1000765",
}

export const A_TOKEN_UNDERLYING_ID_MAP_MAINNET: { [key: string]: string } = {
Expand All @@ -27,6 +29,8 @@ export const A_TOKEN_UNDERLYING_ID_MAP_MAINNET: { [key: string]: string } = {
"1004": "19",
//avDOT
"1005": "15",
//atBTC
"1006": "1000765",
}

export const A_TOKEN_UNDERLYING_ID_MAP =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,9 @@ export const ProviderItemLayout = ({
/>
)

const isOffline = !blockNumber
const isDisabled = isLoading || isOffline

return (
<SItem
isDisabled={isDisabled}
isDisabled={isLoading}
onClick={() => onClick?.(url)}
className={className}
>
Expand Down