Skip to content

Commit

Permalink
Fix relative deps (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit authored Sep 9, 2024
1 parent 8a0c1ac commit ab95c9b
Show file tree
Hide file tree
Showing 75 changed files with 137 additions and 249 deletions.
2 changes: 1 addition & 1 deletion liquidity/components/BorrowModal/BorrowModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { isBaseAndromeda } from '@snx-v3/isBaseAndromeda';
import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { useSystemToken } from '@snx-v3/useSystemToken';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';

export const BorrowModalUi: React.FC<{
onClose: () => void;
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/BorrowModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/txnReducer": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/ClaimModal/ClaimModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { isBaseAndromeda } from '@snx-v3/isBaseAndromeda';
import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { useSystemToken } from '@snx-v3/useSystemToken';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import { LiquidityPosition } from '@snx-v3/useLiquidityPosition';

export const ClaimModalUi: React.FC<{
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/ClaimModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/txnReducer": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/DepositModal/DepositModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type { StateFrom } from 'xstate';
import { DepositMachine, Events, ServiceNames, State } from './DepositMachine';
import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import { ManagePositionContext } from '@snx-v3/ManagePositionContext';
import { LiquidityPosition } from '@snx-v3/useLiquidityPosition';
import { ChangeStat } from '../../ui/src/components';
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/DepositModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/format": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/useApprove": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/RepayModal/RepayModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type { StateFrom } from 'xstate';
import { Events, RepayMachine, ServiceNames, State } from './RepayMachine';
import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';

export const RepayModalUi: React.FC<{
onClose: () => void;
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/RepayModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/format": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/useApprove": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/UndelegateModal/UndelegateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { StateFrom } from 'xstate';
import { Events, ServiceNames, State, UndelegateMachine } from './UndelegateMachine';
import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import { ChangeStat } from '../../ui/src/components';
import { currency } from '@snx-v3/format';
import { CRatioChangeStat } from '../../ui/src/components/CRatioBar/CRatioChangeStat';
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/UndelegateModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/format": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/components/WithdrawModal/WithdrawModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ArrowBackIcon } from '@chakra-ui/icons';
import { LiquidityPositionUpdated } from '../../ui/src/components/Manage/LiquidityPositionUpdated';
import { LiquidityPosition } from '@snx-v3/useLiquidityPosition';
import { isBaseAndromeda } from '@snx-v3/isBaseAndromeda';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import { useWithdrawBaseAndromeda } from '@snx-v3/useWithdrawBaseAndromeda';
import { ManagePositionContext } from '@snx-v3/ManagePositionContext';
import { useParams } from '@snx-v3/useParams';
Expand Down
1 change: 1 addition & 0 deletions liquidity/components/WithdrawModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@snx-v3/ContractError": "workspace:*",
"@snx-v3/ManagePositionContext": "workspace:*",
"@snx-v3/Multistep": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/useAccountCollateral": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/calculations/calculations.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MarketSnapshotByWeekSchema, PoolType } from '@snx-v3/usePoolData';
import { z } from 'zod';
import { wei, Wei } from '@synthetixio/wei';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';

type MarketSnapshotByWeek = z.infer<typeof MarketSnapshotByWeekSchema>;

Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/calculations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "index.ts",
"version": "0.0.1",
"dependencies": {
"@snx-v3/constants": "workspace:*",
"@snx-v3/usePoolData": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"zod": "^3.22.4"
Expand Down
10 changes: 10 additions & 0 deletions liquidity/lib/constants/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import { constants } from 'ethers';
import Wei from '@synthetixio/wei';

export const LOCAL_STORAGE_KEYS = {
SHOW_TESTNETS: 'SHOW_TESTNETS',
};
export const ZEROWEI = new Wei(0);
export const ONEWEI = new Wei(1);
export const MAXUINT = new Wei(constants.MaxUint256);

export const GWEI_DECIMALS = 9;
export const GAS_LIMIT_MULTIPLIER = 1.5;

Expand Down
6 changes: 5 additions & 1 deletion liquidity/lib/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"name": "@snx-v3/constants",
"private": true,
"main": "index.ts",
"version": "0.0.0"
"version": "0.0.0",
"dependencies": {
"@synthetixio/wei": "^2.74.4",
"ethers": "^5.7.2"
}
}
1 change: 1 addition & 0 deletions liquidity/lib/useAccountCollateral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"@snx-v3/tsHelpers": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/useSystemToken": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/useAccountCollateral/useAccountCollateral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useSystemToken } from '@snx-v3/useSystemToken';
import { Wei, wei } from '@synthetixio/wei';
import { useQuery } from '@tanstack/react-query';
import { ethers } from 'ethers';
import { useAllCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useAllCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';

export type AccountCollateralType = {
tokenAddress: string;
Expand Down
2 changes: 2 additions & 0 deletions liquidity/lib/useClearDebt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"@snx-v3/txnReducer": "workspace:*",
"@snx-v3/useAllCollateralPriceIds": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/useGasOptions": "workspace:*",
"@snx-v3/useGasPrice": "workspace:*",
"@snx-v3/useGasSpeed": "workspace:*",
"@snx-v3/useSpotMarketProxy": "workspace:*",
"@snx-v3/withERC7412": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@tanstack/react-query": "^5.8.3",
Expand Down
4 changes: 2 additions & 2 deletions liquidity/lib/useClearDebt/useClearDebt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { useGasSpeed } from '@snx-v3/useGasSpeed';
import { notNil } from '@snx-v3/tsHelpers';
import { withERC7412 } from '@snx-v3/withERC7412';
import { useAllCollateralPriceIds } from '@snx-v3/useAllCollateralPriceIds';
import { useSpotMarketProxy } from '../useSpotMarketProxy';
import { useSpotMarketProxy } from '@snx-v3/useSpotMarketProxy';
import { USDC_BASE_MARKET, getRepayerContract } from '@snx-v3/isBaseAndromeda';
import { useCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';

export const DEBT_REPAYER_ABI = [
{
Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useCollateralPrices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@snx-v3/isBaseAndromeda": "workspace:*",
"@snx-v3/tsHelpers": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/useGetUSDTokens": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/useCollateralPrices/useCollateralPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ZodBigNumber } from '@snx-v3/zod';
import Wei, { wei } from '@synthetixio/wei';
import { useQuery } from '@tanstack/react-query';
import { ethers } from 'ethers';
import { useAllCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useAllCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';

const PriceSchema = ZodBigNumber.transform((x) => wei(x));

Expand Down
2 changes: 2 additions & 0 deletions liquidity/lib/useDepositBaseAndromeda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"@snx-v3/txnReducer": "workspace:*",
"@snx-v3/useApprove": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/useGasOptions": "workspace:*",
"@snx-v3/useGasPrice": "workspace:*",
"@snx-v3/useGasSpeed": "workspace:*",
"@snx-v3/useGetUSDTokens": "workspace:*",
"@snx-v3/useSpotMarketProxy": "workspace:*",
"@snx-v3/withERC7412": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@tanstack/react-query": "^5.8.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { getGasPrice } from '@snx-v3/useGasPrice';
import { useGasSpeed } from '@snx-v3/useGasSpeed';
import { withERC7412 } from '@snx-v3/withERC7412';
import { notNil } from '@snx-v3/tsHelpers';
import { useSpotMarketProxy } from '../useSpotMarketProxy';
import { useSpotMarketProxy } from '@snx-v3/useSpotMarketProxy';
import { parseUnits } from '@snx-v3/format';
import { getSpotMarketId } from '@snx-v3/isBaseAndromeda';
import { approveAbi } from '@snx-v3/useApprove';
import { useCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';
import { useGetUSDTokens } from '@snx-v3/useGetUSDTokens';
import { useCollateralType } from '@snx-v3/useCollateralTypes';

Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useLiquidityPosition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@snx-v3/tsHelpers": "workspace:*",
"@snx-v3/useAccountCollateral": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralPrices": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/useLiquidityPosition/useLiquidityPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Wei, { wei } from '@synthetixio/wei';
import { useQuery } from '@tanstack/react-query';
import { ethers } from 'ethers';
import { z } from 'zod';
import { useAllCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useAllCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';
import { useCollateralTypes } from '@snx-v3/useCollateralTypes';

const PositionCollateralSchema = z.object({
Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useLiquidityPositions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@snx-v3/calculations": "workspace:*",
"@snx-v3/tsHelpers": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralPrices": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { loadPrices } from '@snx-v3/useCollateralPrices';
import { calculateCRatio } from '@snx-v3/calculations';
import { erc7412Call } from '@snx-v3/withERC7412';
import { keyBy, stringToHash } from '@snx-v3/tsHelpers';
import { useAllCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useAllCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';

export type LiquidityPositionType = {
id: `${string}-${string}`;
Expand Down
2 changes: 2 additions & 0 deletions liquidity/lib/useMigrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"main": "index.ts",
"version": "0.0.1",
"dependencies": {
"@snx-v3/constants": "workspace:*",
"@snx-v3/parser": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useGasOptions": "workspace:*",
"@snx-v3/useGasPrice": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions liquidity/lib/useMigrate/useMigrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useDefaultProvider, useNetwork, useSigner } from '@snx-v3/useBlockchain
import { useCallback, useMemo, useState } from 'react';
import { getGasPrice } from '@snx-v3/useGasPrice';
import { formatGasPriceForTransaction } from '@snx-v3/useGasOptions';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import { wei } from '@synthetixio/wei';
import { useGasSpeed } from '@snx-v3/useGasSpeed';
import { parseTxError } from '../parser';
import { parseTxError } from '@snx-v3/parser';
import { useLegacyMarket } from '@snx-v3/useLegacyMarket';

export function useMigrate() {
Expand Down
2 changes: 2 additions & 0 deletions liquidity/lib/useMigrateUSD/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"main": "index.ts",
"version": "0.0.1",
"dependencies": {
"@snx-v3/constants": "workspace:*",
"@snx-v3/parser": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useGasOptions": "workspace:*",
"@snx-v3/useGasPrice": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions liquidity/lib/useMigrateUSD/useMigrateUSD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useLegacyMarket } from '@snx-v3/useLegacyMarket';
import { useCallback, useState } from 'react';
import { getGasPrice } from '@snx-v3/useGasPrice';
import { formatGasPriceForTransaction } from '@snx-v3/useGasOptions';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';
import Wei, { wei } from '@synthetixio/wei';
import { useGasSpeed } from '@snx-v3/useGasSpeed';
import { parseTxError } from '../parser';
import { parseTxError } from '@snx-v3/parser';
import { useQueryClient } from '@tanstack/react-query';

export function useMigrateUSD({ amount }: { amount: Wei }) {
Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/usePoolConfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@snx-v3/fetchPythPrices": "workspace:*",
"@snx-v3/useAllCollateralPriceIds": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/withERC7412": "workspace:*",
"@snx-v3/zod": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/usePoolConfiguration/usePoolConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ethers } from 'ethers';
import { erc7412Call } from '@snx-v3/withERC7412';
import { fetchPriceUpdates, priceUpdatesToPopulatedTx } from '@snx-v3/fetchPythPrices';
import { useAllCollateralPriceIds } from '@snx-v3/useAllCollateralPriceIds';
import { useAllCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useAllCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';

export const MarketConfigurationSchema = z.object({
id: SmallIntSchema,
Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useRepay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "index.ts",
"version": "0.0.1",
"dependencies": {
"@snx-v3/constants": "workspace:*",
"@snx-v3/fetchPythPrices": "workspace:*",
"@snx-v3/tsHelpers": "workspace:*",
"@snx-v3/txnReducer": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/useRepay/useRepay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { notNil } from '@snx-v3/tsHelpers';
import { withERC7412 } from '@snx-v3/withERC7412';
import { useAllCollateralPriceIds } from '@snx-v3/useAllCollateralPriceIds';
import { fetchPriceUpdates, priceUpdatesToPopulatedTx } from '@snx-v3/fetchPythPrices';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';

export const useRepay = ({
accountId,
Expand Down
2 changes: 2 additions & 0 deletions liquidity/lib/useRepayBaseAndromeda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"@snx-v3/txnReducer": "workspace:*",
"@snx-v3/useApprove": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCoreProxy": "workspace:*",
"@snx-v3/useGasOptions": "workspace:*",
"@snx-v3/useGasPrice": "workspace:*",
"@snx-v3/useGasSpeed": "workspace:*",
"@snx-v3/useGetUSDTokens": "workspace:*",
"@snx-v3/useSpotMarketProxy": "workspace:*",
"@snx-v3/useSystemToken": "workspace:*",
"@snx-v3/withERC7412": "workspace:*",
"@synthetixio/wei": "^2.74.4",
Expand Down
4 changes: 2 additions & 2 deletions liquidity/lib/useRepayBaseAndromeda/useRepayBaseAndromeda.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { useGasSpeed } from '@snx-v3/useGasSpeed';
import { useSystemToken } from '@snx-v3/useSystemToken';
import { notNil } from '@snx-v3/tsHelpers';
import { withERC7412 } from '@snx-v3/withERC7412';
import { useSpotMarketProxy } from '../useSpotMarketProxy';
import { useSpotMarketProxy } from '@snx-v3/useSpotMarketProxy';
import { getSpotMarketId } from '@snx-v3/isBaseAndromeda';
import { parseUnits } from '@snx-v3/format';
import { approveAbi } from '@snx-v3/useApprove';
import { useCollateralPriceUpdates } from '../useCollateralPriceUpdates';
import { useCollateralPriceUpdates } from '@snx-v3/useCollateralPriceUpdates';
import { useGetUSDTokens } from '@snx-v3/useGetUSDTokens';

export const useRepayBaseAndromeda = ({
Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useTokenBalance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "0.0.1",
"dependencies": {
"@snx-v3/assertAddressType": "workspace:*",
"@snx-v3/constants": "workspace:*",
"@snx-v3/useBlockchain": "workspace:*",
"@snx-v3/zod": "workspace:*",
"@synthetixio/wei": "^2.74.4",
Expand Down
2 changes: 1 addition & 1 deletion liquidity/lib/useTokenBalance/useTokenBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@snx-v3/useBlockchain';
import { ethers, providers } from 'ethers';
import { ZodBigNumber } from '@snx-v3/zod';
import { ZEROWEI } from '../../ui/src/utils/constants';
import { ZEROWEI } from '@snx-v3/constants';

export const BalanceSchema = ZodBigNumber.transform((x) => wei(x));

Expand Down
1 change: 1 addition & 0 deletions liquidity/lib/useTokenPrice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"main": "index.ts",
"version": "0.0.2",
"dependencies": {
"@snx-v3/constants": "workspace:*",
"@snx-v3/useCollateralPriceUpdates": "workspace:*",
"@snx-v3/useCollateralTypes": "workspace:*",
"@snx-v3/useOraclePrice": "workspace:*",
Expand Down
Loading

0 comments on commit ab95c9b

Please sign in to comment.