Skip to content

chore: migrate to new llamalend library #915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# curve-frontend

Curve-frontend is a NextJs user-interface application designed to connect to Curve's deployment of smart contracts. This UI application is designed for both the [crvUSD](https://crvusd-curve.fi) and [Curve](https://curve.fi) dapps, and utilizes [curve-js](https://github.com/curvefi/curve-js) and [curve-stablecoin-api](https://github.com/curvefi/curve-stablecoin-js) to communicate with the blockchain.
Curve-frontend is a NextJs user-interface application designed to connect to Curve's deployment of smart contracts.
This UI application is designed for both the [Curve](https://curve.fi) dapp, and utilizes [curve-js](https://github.com/curvefi/curve-js) and [curve-llamalend-api](https://github.com/curvefi/curve-llamalend-js) to communicate with the blockchain.

## Prerequisites

Expand Down Expand Up @@ -48,6 +49,7 @@ This repository is organized as follows:
- `/apps/main`: This application manages router swaps, pool-specific functions (deposit, withdraw, swap), and pool creation [React](https://react.dev/) application.
- `/apps/loan`: crvUSD [React](https://react.dev/) application.
- `/apps/lend`: Lend [React](https://react.dev/) application.
- `/apps/dao`: DAO [React](https://react.dev/) application.
- `/tests`: DApp tests
- `/packages/curve-ui-kit`: Shared UI kit created using Material UI, mapped as `@ui-kit`
- `/packages/prices-api`: Package for consuming the Prices API, mapped as `@curvefi/prices-api`. Soon to be to separated its own NPM package.
Expand Down
3 changes: 1 addition & 2 deletions apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
},
"dependencies": {
"@curvefi/api": "2.66.20",
"@curvefi/lending-api": "2.5.9",
"@curvefi/stablecoin-api": "1.5.19",
"@curvefi/llamalend-api": "^1.0.10",
"@hookform/error-message": "2.0.1",
"@hookform/resolvers": "5.0.1",
"@supercharge/promise-pool": "3.2.0",
Expand Down
20 changes: 6 additions & 14 deletions apps/main/src/app/crvusd/client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use client'
import type { Eip1193Provider } from 'ethers'
import '@/global-extensions'
import delay from 'lodash/delay'
import { useParams, useRouter } from 'next/navigation'
Expand All @@ -9,25 +8,18 @@ import Page from '@/loan/layout'
import { networks, networksIdMapper } from '@/loan/networks'
import { getPageWidthClassName } from '@/loan/store/createLayoutSlice'
import useStore from '@/loan/store/useStore'
import { type TempApi, useStablecoinConnection } from '@/loan/temp-lib'
import type { ChainId, UrlParams } from '@/loan/types/loan.types'
import { initLendApi, initStableJs } from '@/loan/utils/utilsCurvejs'
import type { ChainId, LlamaApi, UrlParams } from '@/loan/types/loan.types'
import { initLlamaApi } from '@/loan/utils/utilsCurvejs'
import { getPath, getRestFullPathname } from '@/loan/utils/utilsRouter'
import { ConnectionProvider, useWallet } from '@ui-kit/features/connect-wallet'
import { ConnectionProvider, useConnection, useWallet } from '@ui-kit/features/connect-wallet'
import { useUserProfileStore } from '@ui-kit/features/user-profile'
import usePageVisibleInterval from '@ui-kit/hooks/usePageVisibleInterval'
import { REFRESH_INTERVAL } from '@ui-kit/lib/model'

const initLib = async (chainId: ChainId, provider?: Eip1193Provider): Promise<TempApi | undefined> => {
if (!provider) return
const [stablecoin, lend] = await Promise.all([initStableJs(chainId, provider), initLendApi(chainId, provider)])
return { stablecoin, lend, chainId, signerAddress: stablecoin.signerAddress ?? lend.signerAddress }
}

export const App = ({ children }: { children: ReactNode }) => {
const { network: networkId = 'ethereum' } = useParams() as Partial<UrlParams> // network absent only in root
const chainId = networksIdMapper[networkId]
const { lib: curve = null } = useStablecoinConnection()
const { lib: curve = null } = useConnection<LlamaApi>()
const isPageVisible = useStore((state) => state.isPageVisible)
const pageWidth = useStore((state) => state.layout.pageWidth)
const fetchAllStoredUsdRates = useStore((state) => state.usdRates.fetchAllStoredUsdRates)
Expand Down Expand Up @@ -109,9 +101,9 @@ export const App = ({ children }: { children: ReactNode }) => {

return (
<ClientWrapper loading={!appLoaded}>
<ConnectionProvider<ChainId, TempApi>
<ConnectionProvider<ChainId, LlamaApi>
hydrate={hydrate}
initLib={initLib}
initLib={initLlamaApi}
chainId={chainId}
onChainUnavailable={onChainUnavailable}
>
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/dex/components/FormConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { isLoading, useConnection, useWallet } from '@ui-kit/features/connect-wa
import { t } from '@ui-kit/lib/i18n'

const FormConnectWallet = ({ loading, children }: { loading: boolean; children: ReactNode }) => {
const { lib: curve } = useConnection<CurveApi>()
const { connectState } = useConnection<CurveApi>()
const { connectState, lib: curve } = useConnection<CurveApi>()
const { connect: connectWallet } = useWallet()
return (
<>
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/dex/components/PageRouterSwap/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ export const PageRouterSwap = (props: NetworkUrlParams) => {
const { push } = useRouter()
const searchParams = useSearchParams()
const { lib: curve = null, connectState } = useConnection<CurveApi>()
const { connect: connectWallet } = useWallet()
const { connect: connectWallet, provider } = useWallet()
const rChainId = useChainId(props.network)

const getNetworkConfigFromApi = useStore((state) => state.getNetworkConfigFromApi)
const routerCached = useStore((state) => state.storeCache.routerFormValues[rChainId])
const activeKey = useStore((state) => state.quickSwap.activeKey)
const routesAndOutput = useStore((state) => state.quickSwap.routesAndOutput[activeKey])
const { provider } = useWallet()
const nativeToken = useStore((state) => state.networks.nativeToken[rChainId])
const network = useStore((state) => state.networks.networks[rChainId])
const theme = useUserProfileStore((state) => state.theme)
Expand Down
16 changes: 0 additions & 16 deletions apps/main/src/dex/types/main.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,6 @@ export const FormTypes = [
'',
] as const
export type RFormType = (typeof FormTypes)[number]
export type RouterParams = {
rChainId: ChainId
rNetwork: NetworkEnum
rNetworkIdx: number
rSubdirectory: string
rSubdirectoryUseDefault: boolean
rPoolId: string
rFormType: RFormType
redirectPathname: string
restFullPathname: string
}
export type PageProps = {
curve: CurveApi | null
pageLoaded: boolean
routerParams: RouterParams
}
export type Pool = PoolTemplate
export type Provider = ethers.BrowserProvider
export type ClaimableReward = {
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/DetailInfoHealth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { DEFAULT_HEALTH_MODE } from '@/lend/components/PageLoanManage/utils'
import { useOneWayMarket } from '@/lend/entities/chain'
import { helpers } from '@/lend/lib/apiLending'
import useStore from '@/lend/store/useStore'
import { PageContentProps, HeathColorKey, HealthMode } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { OneWayMarketTemplate, PageContentProps, HeathColorKey, HealthMode } from '@/lend/types/lend.types'
import Box from '@ui/Box'
import DetailInfo from '@ui/DetailInfo'
import Icon from '@ui/Icon'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import useMarketAlert from '@/lend/hooks/useMarketAlert'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, HealthMode, type MarketUrlParams, PageContentProps } from '@/lend/types/lend.types'
import { Api, HealthMode, type MarketUrlParams, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { getLoanManagePathname } from '@/lend/utils/utilsRouter'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import Accordion from '@ui/Accordion'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageLoanCreate/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import useTitleMapper from '@/lend/hooks/useTitleMapper'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, type MarketUrlParams, PageContentProps } from '@/lend/types/lend.types'
import { Api, type MarketUrlParams, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { getCollateralListPathname, parseMarketParams, scrollToTop } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import {
AppPageFormContainer,
AppPageFormsWrapper,
Expand Down
9 changes: 7 additions & 2 deletions apps/main/src/lend/components/PageLoanCreate/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { Dispatch, SetStateAction } from 'react'
import type { FormStatus as Fs } from '@/lend/components/PageLoanManage/types'
import type { LiqRangeSliderIdx } from '@/lend/store/types'
import { DetailInfoResp, DetailInfoLeverageResp, ExpectedCollateral, HealthMode } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import {
DetailInfoLeverageResp,
DetailInfoResp,
ExpectedCollateral,
HealthMode,
OneWayMarketTemplate,
} from '@/lend/types/lend.types'
import type { Step } from '@ui/Stepper/types'

export type FormType = 'create' | 'vault' | 'leverage'
Expand Down
2 changes: 1 addition & 1 deletion apps/main/src/lend/components/PageLoanCreate/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FormStatus, FormValues } from '@/lend/components/PageLoanCreate/types'
import { DEFAULT_FORM_STATUS as FORM_STATUS } from '@/lend/components/PageLoanManage/utils'
import { type OneWayMarketTemplate } from '@/lend/types/lend.types'
import { _parseStepTokensList } from '@/lend/utils/helpers'
import type { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'

export const DEFAULT_FORM_STATUS: FormStatus = {
...FORM_STATUS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import { NOFITY_MESSAGE } from '@/lend/constants'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, HealthMode, PageContentProps } from '@/lend/types/lend.types'
import { Api, HealthMode, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { _showNoLoanFound } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import AlertBox from '@ui/AlertBox'
import Stepper from '@ui/Stepper'
import { getActiveStep } from '@ui/Stepper/helpers'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FormStatus, FormValues } from '@/lend/components/PageLoanManage/LoanBorrowMore/types'
import { DEFAULT_FORM_STATUS as FORM_STATUS } from '@/lend/components/PageLoanManage/utils'
import { OneWayMarketTemplate } from '@/lend/types/lend.types'
import { _parseStepTokensList } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'

export const DEFAULT_FORM_STATUS: FormStatus = {
...FORM_STATUS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import { DEFAULT_FORM_VALUES } from '@/lend/store/createLoanCollateralAddSlice'
import useStore from '@/lend/store/useStore'
import { Api, PageContentProps } from '@/lend/types/lend.types'
import { Api, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { _showNoLoanFound } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import AlertBox from '@ui/AlertBox'
import Stepper from '@ui/Stepper'
import { getActiveStep } from '@ui/Stepper/helpers'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import { DEFAULT_FORM_VALUES } from '@/lend/store/createLoanCollateralRemoveSlice'
import useStore from '@/lend/store/useStore'
import { Api, HealthMode, PageContentProps } from '@/lend/types/lend.types'
import { Api, HealthMode, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { _showNoLoanFound } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import AlertBox from '@ui/AlertBox'
import Stepper from '@ui/Stepper'
import { getActiveStep } from '@ui/Stepper/helpers'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ import { NOFITY_MESSAGE } from '@/lend/constants'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, HealthMode, type MarketUrlParams, PageContentProps } from '@/lend/types/lend.types'
import { Api, HealthMode, type MarketUrlParams, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { _showNoLoanFound } from '@/lend/utils/helpers'
import { getCollateralListPathname } from '@/lend/utils/utilsRouter'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import Checkbox from '@ui/Checkbox'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FormStatus, FormValues } from '@/lend/components/PageLoanManage/LoanRepay/types'
import { DEFAULT_FORM_STATUS as FORM_STATUS } from '@/lend/components/PageLoanManage/utils'
import type { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { type OneWayMarketTemplate } from '@/lend/types/lend.types'

export const DEFAULT_FORM_STATUS: FormStatus = {
...FORM_STATUS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ import { NOFITY_MESSAGE } from '@/lend/constants'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, type MarketUrlParams, PageContentProps, UserLoanState } from '@/lend/types/lend.types'
import {
Api,
type MarketUrlParams,
OneWayMarketTemplate,
PageContentProps,
UserLoanState,
} from '@/lend/types/lend.types'
import { _showNoLoanFound } from '@/lend/utils/helpers'
import { getCollateralListPathname } from '@/lend/utils/utilsRouter'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import AlertBox from '@ui/AlertBox'
import InputReadOnly from '@ui/InputReadOnly'
import InternalLink from '@ui/Link/InternalLink'
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageLoanManage/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import useTitleMapper from '@/lend/hooks/useTitleMapper'
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, type MarketUrlParams } from '@/lend/types/lend.types'
import { Api, type MarketUrlParams, OneWayMarketTemplate } from '@/lend/types/lend.types'
import { parseMarketParams, scrollToTop } from '@/lend/utils/helpers'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import {
AppPageFormContainer,
AppPageFormsWrapper,
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageMarketList/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Filter, FilterType } from '@/lend/components/PageMarketList/utils'
import { SEARCH_TERM } from '@/lend/hooks/useSearchTermMapper'
import { ChainId, Api, Order, TitleKey, TitleMapper } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, ChainId, OneWayMarketTemplate, Order, TitleKey, TitleMapper } from '@/lend/types/lend.types'

export type FormStatus = {
error: string
Expand Down
2 changes: 1 addition & 1 deletion apps/main/src/lend/components/PageMarketList/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FuseResult } from 'fuse.js'
import sortBy from 'lodash/sortBy'
import type { FormStatus, MarketListMapper, SearchTermResult } from '@/lend/components/PageMarketList/types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { OneWayMarketTemplate } from '@/lend/types/lend.types'

export enum Filter {
all = 'all',
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageVault/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import { useOneWayMarket } from '@/lend/entities/chain'
import useTitleMapper from '@/lend/hooks/useTitleMapper'
import { helpers } from '@/lend/lib/apiLending'
import useStore from '@/lend/store/useStore'
import { Api, type MarketUrlParams, PageContentProps } from '@/lend/types/lend.types'
import { Api, type MarketUrlParams, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import { parseMarketParams } from '@/lend/utils/utilsRouter'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import {
AppPageFormContainer,
AppPageFormsWrapper,
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageVault/VaultClaim/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import type { FormStatus, RewardType } from '@/lend/components/PageVault/VaultCl
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, MarketClaimable, PageContentProps } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, MarketClaimable, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import Button from '@ui/Button'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import { _getMaxActiveKey, _isDeposit } from '@/lend/store/createVaultDepositMintSlice'
import useStore from '@/lend/store/useStore'
import { Api, PageContentProps } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import DetailInfo from '@ui/DetailInfo'
Expand Down
3 changes: 1 addition & 2 deletions apps/main/src/lend/components/PageVault/VaultStake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import type { FormStatus, FormValues, StepKey } from '@/lend/components/PageVaul
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, PageContentProps } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import InputProvider, { InputDebounced, InputMaxBtn } from '@ui/InputComp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import type { FormStatus, FormValues, StepKey } from '@/lend/components/PageVaul
import { helpers } from '@/lend/lib/apiLending'
import networks from '@/lend/networks'
import useStore from '@/lend/store/useStore'
import { Api, PageContentProps } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import InputProvider, { InputDebounced, InputMaxBtn } from '@ui/InputComp'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import networks from '@/lend/networks'
import { _getMaxActiveKey } from '@/lend/store/createVaultDepositMintSlice'
import { _isWithdraw } from '@/lend/store/createVaultWithdrawRedeemSlice'
import useStore from '@/lend/store/useStore'
import { Api, PageContentProps } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { Api, OneWayMarketTemplate, PageContentProps } from '@/lend/types/lend.types'
import AlertBox from '@ui/AlertBox'
import Box from '@ui/Box'
import Checkbox from '@ui/Checkbox'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components'
import InpChipUsdRate from '@/lend/components/InpChipUsdRate'
import useStore from '@/lend/store/useStore'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { OneWayMarketTemplate } from '@/lend/types/lend.types'
import Box from '@ui/Box'
import TextCaption from '@ui/TextCaption'
import { formatNumber } from '@ui/utils'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components'
import Chip from 'ui/src/Typography/Chip'
import InpChipUsdRate from '@/lend/components/InpChipUsdRate'
import useStore from '@/lend/store/useStore'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { OneWayMarketTemplate } from '@/lend/types/lend.types'
import Box from '@ui/Box'
import TextCaption from '@ui/TextCaption'
import { formatNumber } from '@ui/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/main/src/lend/components/SharedCellData/CellToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CampaignRewardsRow from '@/lend/components/CampaignRewardsRow'
import TokenLabel from '@/lend/components/TokenLabel'
import useCampaignRewardsMapper from '@/lend/hooks/useCampaignRewardsMapper'
import { ChainId } from '@/lend/types/lend.types'
import { OneWayMarketTemplate } from '@curvefi/lending-api/lib/markets'
import { OneWayMarketTemplate } from '@/lend/types/lend.types'
import Box from '@ui/Box'
import Chip from '@ui/Typography/Chip'

Expand Down
Loading
Loading