diff --git a/.env.example b/.env.example index 5c508803..238c2a0b 100644 --- a/.env.example +++ b/.env.example @@ -28,7 +28,8 @@ NEXT_PUBLIC_ZAPPER=osmo17qwvc70pzc9mudr8t02t3pl74hhqsgwnskl734p4hug3s8mkerdqzduf NEXT_PUBLIC_PARAMS=osmo1nlmdxt9ctql2jr47qd4fpgzg84cjswxyw6q99u4y4u4q6c2f5ksq7ysent NEXT_PUBLIC_PYTH_ENDPOINT=https://hermes.pyth.network/api NEXT_PUBLIC_MAINNET_REST=https://osmosis-node.marsprotocol.io/GGSFGSFGFG34/osmosis-rpc-front/ -NEXT_PUBLIC_CANDLES_ENDPOINT=https://osmosis-candles.marsprotocol.io/ +NEXT_PUBLIC_CANDLES_ENDPOINT_THE_GRAPH=https://osmosis-candles.marsprotocol.io/ +NEXT_PUBLIC_CANDLES_ENDPOINT_PYTH=https://benchmarks.pyth.network NEXT_PUBLIC_WALLET_CONNECT_ID=d93fdffb159bae5ec87d8fee4cdbb045 CHARTING_LIBRARY_REPOSITORY=github.com/tradingview/charting_library CHARTING_LIBRARY_ACCESS_TOKEN=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 diff --git a/src/api/hls/getHLSStakingAccounts.ts b/src/api/hls/getHLSStakingAccounts.ts index 180e049f..3b5ab3eb 100644 --- a/src/api/hls/getHLSStakingAccounts.ts +++ b/src/api/hls/getHLSStakingAccounts.ts @@ -13,12 +13,10 @@ export default async function getHLSStakingAccounts( const hlsAccountsWithStrategy: HLSAccountWithStrategy[] = [] activeAccounts.forEach((account) => { - if (account.deposits.length === 0 || account.debts.length === 0) return + if (account.deposits.length === 0) return const strategy = hlsStrategies.find( - (strategy) => - strategy.denoms.deposit === account.deposits.at(0).denom && - strategy.denoms.borrow === account.debts.at(0).denom, + (strategy) => strategy.denoms.deposit === account.deposits.at(0).denom, ) if (!strategy) return diff --git a/src/api/swap/getSwapRoute.ts b/src/api/swap/getSwapRoute.ts index 82c87f77..c5501c49 100644 --- a/src/api/swap/getSwapRoute.ts +++ b/src/api/swap/getSwapRoute.ts @@ -1,10 +1,5 @@ import { getSwapperQueryClient } from 'api/cosmwasm-client' -interface Route { - pool_id: string - token_out_denom: string -} - export default async function getSwapRoute(denomIn: string, denomOut: string): Promise { try { const swapperClient = await getSwapperQueryClient() diff --git a/src/components/Account/Health/HealthTooltip.tsx b/src/components/Account/Health/HealthTooltip.tsx index 6682990d..14a84dff 100644 --- a/src/components/Account/Health/HealthTooltip.tsx +++ b/src/components/Account/Health/HealthTooltip.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from 'react' +import React, { ReactElement, useMemo } from 'react' import { CircularProgress } from 'components/CircularProgress' import Text from 'components/Text' @@ -8,7 +8,7 @@ import { BN } from 'utils/helpers' interface Props { health: number healthFactor: number - children: React.ReactNode + children: ReactElement } function HealthTooltipContent({ health, healthFactor }: { health: number; healthFactor: number }) { diff --git a/src/components/Borrow/BorrowActionButtons.tsx b/src/components/Borrow/BorrowActionButtons.tsx index 73c263a7..5d7c0c25 100644 --- a/src/components/Borrow/BorrowActionButtons.tsx +++ b/src/components/Borrow/BorrowActionButtons.tsx @@ -2,7 +2,7 @@ import { useCallback } from 'react' import Button from 'components/Button' import ActionButton from 'components/Button/ActionButton' -import { Plus, ReceiptCheck } from 'components/Icons' +import { HandCoins, Plus } from 'components/Icons' import useStore from 'store' import { getEnabledMarketAssets } from 'utils/assets' @@ -37,7 +37,7 @@ export default function BorrowActionButtons(props: Props) { className='min-w-40 text-center' /> {debt && ( - ) diff --git a/src/components/Checkbox.tsx b/src/components/Checkbox.tsx index 807b0586..0ca9b94d 100644 --- a/src/components/Checkbox.tsx +++ b/src/components/Checkbox.tsx @@ -13,13 +13,9 @@ interface Props { export default function Checkbox(props: Props) { return ( <> -