Skip to content

Commit

Permalink
Replace assert functions to ones from shared package
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarvu committed Jan 7, 2025
1 parent 4991766 commit 50e90b3
Show file tree
Hide file tree
Showing 99 changed files with 107 additions and 212 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/config/chain/utils/getNativeAssetInfo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'
import { getChainConfigEntry } from '..'
import { NativeAssetInfo } from '../types'

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/config/feature-flags/clientEnv.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert } from '@/utils/assert'
import { assert } from '@marsfoundation/common-universal'

export function clientEnv(key: string): string {
const value = import.meta.env[key]
Expand Down
6 changes: 2 additions & 4 deletions packages/app/src/config/wagmi/config.default.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { SandboxNetwork } from '@/domain/state/sandbox'
import { raise } from '@marsfoundation/common-universal'
import { getDefaultConfig } from '@rainbow-me/rainbowkit'
import { Chain } from 'viem'
import { gnosis, mainnet } from 'viem/chains'
import { Config } from 'wagmi'

import { SandboxNetwork } from '@/domain/state/sandbox'
import { raise } from '@/utils/assert'

import { getChains } from './getChains'
import { getTransports } from './getTransports'
import { getWallets } from './getWallets'
Expand Down
3 changes: 1 addition & 2 deletions packages/app/src/domain/farms/farmsInfo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { raise } from '@/utils/assert'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { CheckedAddress, raise } from '@marsfoundation/common-universal'
import { Farm } from './types'

export class FarmsInfo {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/domain/farms/useFarmsInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getChainConfigEntry } from '@/config/chain'
import { useTokensInfo } from '@/domain/wallet/useTokens/useTokensInfo'
import { assert } from '@/utils/assert'
import { assert } from '@marsfoundation/common-universal'
import { useQuery, useSuspenseQuery } from '@tanstack/react-query'
import { useCallback } from 'react'
import { useAccount, useConfig } from 'wagmi'
Expand Down
7 changes: 3 additions & 4 deletions packages/app/src/domain/hooks/sanityChecks.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { assert } from '@/utils/assert'
import { Address, zeroAddress } from 'viem'
import { gnosis } from 'viem/chains'

import { NATIVE_ASSET_MOCK_ADDRESS } from '@/config/consts'
import { wethGatewayAddress } from '@/config/contracts-generated'
import { assert } from '@marsfoundation/common-universal'
import { Address, zeroAddress } from 'viem'
import { gnosis } from 'viem/chains'

/**
* Do basic sanity checks when sending txs.
Expand Down
4 changes: 1 addition & 3 deletions packages/app/src/domain/hooks/useContractAddress.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { CheckedAddress, raise } from '@marsfoundation/common-universal'
import { Address } from 'viem'

import { raise } from '@/utils/assert'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { useStore } from '../state'
import { getOriginChainId, useOriginChainId } from './useOriginChainId'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert } from '@/utils/assert'
import { assert } from '@marsfoundation/common-universal'
import { skipToken, useQuery } from '@tanstack/react-query'
import { Address, Client, Hash, parseAbiItem } from 'viem'
import { getLogs, getTransactionReceipt, watchBlockNumber } from 'viem/actions'
Expand Down
4 changes: 1 addition & 3 deletions packages/app/src/domain/market-info/emode.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { assert } from '@/utils/assert'

import { Percentage } from '@marsfoundation/common-universal'
import { assert, Percentage } from '@marsfoundation/common-universal'
import { AaveFormattedReserve } from './aave-data-layer/query'
import { EModeCategories, EModeState } from './marketInfo'
import { parseRawPercentage } from './math'
Expand Down
7 changes: 2 additions & 5 deletions packages/app/src/domain/market-info/getLiquidationDetails.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import BigNumber from 'bignumber.js'

import { getChainConfigEntry } from '@/config/chain'
import { TokenWithValue } from '@/domain/common/types'
import { MarketInfo } from '@/domain/market-info/marketInfo'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'

import { raise } from '@/utils/assert'
import { NormalizedUnitNumber, Percentage, raise } from '@marsfoundation/common-universal'
import BigNumber from 'bignumber.js'
import { eModeCategoryIdToName } from '../e-mode/constants'

export interface LiquidationDetails {
Expand Down
3 changes: 1 addition & 2 deletions packages/app/src/domain/market-info/marketInfo.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getChainConfigEntry } from '@/config/chain'
import { NativeAssetInfo } from '@/config/chain/types'
import { NATIVE_ASSET_MOCK_ADDRESS } from '@/config/consts'
import { assert, raise } from '@/utils/assert'
import { fromRay } from '@/utils/math'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, raise } from '@marsfoundation/common-universal'
import { BaseUnitNumber, NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
import BigNumber from 'bignumber.js'
import { bigNumberify } from '../../utils/bigNumber'
Expand Down
4 changes: 1 addition & 3 deletions packages/app/src/domain/market-info/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { assert } from '@/utils/assert'
import { formatUserSummary } from '@aave/math-utils'

import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress } from '@marsfoundation/common-universal'
import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
import { bigNumberify } from '../../utils/bigNumber'
import { AaveBaseCurrency, AaveFormattedReserve, AaveUserSummary, RawAaveUserReserve } from './aave-data-layer/query'
Expand Down
5 changes: 1 addition & 4 deletions packages/app/src/domain/market-validators/validateBorrow.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { assert } from '@/utils/assert'

import { CheckedAddress } from '@marsfoundation/common-universal'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { calculateMaxBorrowBasedOnCollateral } from '../action-max-value-getters/calculateMaxBorrowBasedOnCollateral'
import { MarketInfo, Reserve, UserPositionSummary } from '../market-info/marketInfo'
import { ReserveStatus } from '../market-info/reserve-status'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { NormalizedUnitNumber, Percentage, raise } from '@marsfoundation/common-universal'
import BigNumber from 'bignumber.js'

import { raise } from '@/utils/assert'

import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
import { MarketInfo } from '../market-info/marketInfo'

export interface ValidateSetUserEModeParams {
Expand Down
3 changes: 1 addition & 2 deletions packages/app/src/domain/oracles/query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getChainConfigEntry } from '@/config/chain'
import { assertNever } from '@/utils/assertNever'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { NormalizedUnitNumber, assertNever } from '@marsfoundation/common-universal'
import { queryOptions } from '@tanstack/react-query'
import { Config } from 'wagmi'
import { MarketInfo, Reserve } from '../market-info/marketInfo'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TokenWithBalance } from '@/domain/common/types'
import { SavingsDisplayType } from '@/domain/savings-charts/useMyEarningsInfo/getSavingsDisplayType'
import { SavingsInfo } from '@/domain/savings-info/types'
import { assertNever } from '@/utils/assertNever'
import { assertNever } from '@marsfoundation/common-universal'

interface SelectSavingsDataByDisplayTypeParams {
displayType: SavingsDisplayType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { getChainConfigEntry } from '@/config/chain'
import { assert } from '@/utils/assert'
import { useTimestamp } from '@/utils/useTimestamp'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress } from '@marsfoundation/common-universal'
import { useAccount, useChainId } from 'wagmi'
import { TokenWithBalance } from '../common/types'
import { SavingsInfo } from '../savings-info/types'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/domain/savings-info/mainnetSavingsInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { susdsAbi } from '@/config/abis/susdsAbi'
import { getChainConfigEntry } from '@/config/chain'
import { potAbi, potAddress } from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { raise } from '@/utils/assert'
import { bigNumberify } from '@/utils/bigNumber'
import { raise } from '@marsfoundation/common-universal'
import { multicall } from 'wagmi/actions'
import { PotSavingsInfo } from './potSavingsInfo'
import { SavingsInfoQueryOptions, SavingsInfoQueryParams } from './types'
Expand Down
3 changes: 1 addition & 2 deletions packages/app/src/domain/savings/assertWithdraw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Mode } from '@/features/dialogs/savings/withdraw/types'
import { assert } from '@/utils/assert'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress } from '@marsfoundation/common-universal'
import { Address } from 'viem'
import { receiverValidationIssueToMessage, validateReceiver } from './validateReceiver'

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/domain/types/SupportedChainId.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SUPPORTED_CHAIN_IDS } from '@/config/chain/constants'
import { assert } from '@/utils/assert'
import { NumberLike, bigNumberify } from '@/utils/bigNumber'
import { assert } from '@marsfoundation/common-universal'
import { Opaque } from './types'

/**
Expand Down
4 changes: 1 addition & 3 deletions packages/app/src/domain/types/Token.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { assert } from '@/utils/assert'
import { assert, BaseUnitNumber, CheckedAddress, NormalizedUnitNumber } from '@marsfoundation/common-universal'
import BigNumber from 'bignumber.js'
import { zeroAddress } from 'viem'

import { BaseUnitNumber, CheckedAddress, NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { findSignificantPrecision } from '../common/format'
import { TokenSymbol } from './TokenSymbol'

Expand Down
3 changes: 1 addition & 2 deletions packages/app/src/domain/types/TokenSymbol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assert } from '@/utils/assert'

import { assert } from '@marsfoundation/common-universal'
import { Opaque } from './types'

/**
Expand Down
4 changes: 1 addition & 3 deletions packages/app/src/domain/wallet/useTokens/TokenInfo.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { TokenWithBalance } from '@/domain/common/types'
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { raise } from '@/utils/assert'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { CheckedAddress, NormalizedUnitNumber, raise } from '@marsfoundation/common-universal'

export interface FeaturedTokens {
DAI?: TokenSymbol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { ssrAuthOracleConfig } from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { assertNever } from '@/utils/assertNever'
import { bigNumberify } from '@/utils/bigNumber'
import { fromRay } from '@/utils/math'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { NormalizedUnitNumber, assertNever } from '@marsfoundation/common-universal'
import { erc4626Abi, etherUnits, formatUnits, parseUnits } from 'viem'
import { Config } from 'wagmi'
import { readContract } from 'wagmi/actions'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { IconStack } from '@/ui/molecules/icon-stack/IconStack'
import { cn } from '@/ui/utils/style'
import { testIds } from '@/ui/utils/testIds'
import { useIsTruncated } from '@/ui/utils/useIsTruncated'
import { assert } from '@/utils/assert'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { assert, NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { cva } from 'class-variance-authority'
import { ComponentType, ReactNode, createContext, useContext } from 'react'
import { ActionHandlerState } from '../../logic/types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertNever } from '@/utils/assertNever'
import { assertNever } from '@marsfoundation/common-universal'
import { ApproveDelegationActionRow } from '../../flavours/approve-delegation/ApproveDelegationActionRow'
import { ApproveActionRow } from '../../flavours/approve/ApproveActionRow'
import { BorrowActionRow } from '../../flavours/borrow/BorrowActionRow'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { wethGatewayConfig } from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { ensureConfigTypes } from '@/domain/hooks/useWrite'
import { ActionConfig, ActionContext } from '@/features/actions/logic/types'
import { raise } from '@/utils/assert'
import { toBigInt } from '@/utils/bigNumber'
import { raise } from '@marsfoundation/common-universal'
import { queryOptions } from '@tanstack/react-query'
import { ApproveDelegationAction } from '../types'
import { borrowAllowance, getBorrowAllowanceQueryKey } from './query'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
} from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { Action, ActionContext } from '@/features/actions/logic/types'
import { assert } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, assertNever } from '@marsfoundation/common-universal'
import { base } from 'viem/chains'
import { ApproveAction } from '../../approve/types'
import { ConvertStablesObjective } from '../types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
} from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { Action, ActionContext } from '@/features/actions/logic/types'
import { raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { CheckedAddress, assertNever, raise } from '@marsfoundation/common-universal'
import { ApproveAction } from '../../approve/types'
import { DepositToSavingsAction, DepositToSavingsObjective } from '../types'
import { getSavingsDepositActionPath } from './getSavingsDepositActionPath'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ import { getBalancesQueryKeyPrefix } from '@/domain/wallet/getBalancesQueryKeyPr
import { allowanceQueryKey } from '@/features/actions/flavours/approve/logic/query'
import { ActionConfig, ActionContext, GetWriteConfigResult } from '@/features/actions/logic/types'
import { calculateGemConversionFactor } from '@/features/actions/utils/savings'
import { assert, raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { toBigInt } from '@/utils/bigNumber'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, NormalizedUnitNumber, assertNever, raise } from '@marsfoundation/common-universal'
import { QueryKey } from '@tanstack/react-query'
import { Address, erc4626Abi } from 'viem'
import { base, gnosis } from 'viem/chains'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { TokensInfo } from '@/domain/wallet/useTokens/TokenInfo'
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'
import { base, gnosis } from 'viem/chains'

export type SavingsDepositActionPath =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { TokensInfo } from '@/domain/wallet/useTokens/TokenInfo'
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'
import { base } from 'viem/chains'

export type PsmConvertActionPath =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { ensureConfigTypes } from '@/domain/hooks/useWrite'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { getBalancesQueryKeyPrefix } from '@/domain/wallet/getBalancesQueryKeyPrefix'
import { ActionConfig, ActionContext } from '@/features/actions/logic/types'
import { assert } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { toBigInt } from '@/utils/bigNumber'
import { assert, assertNever } from '@marsfoundation/common-universal'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { QueryKey } from '@tanstack/react-query'
import { base } from 'viem/chains'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { migrationActionsConfig, usdsPsmWrapperConfig } from '@/config/contracts
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { Token } from '@/domain/types/Token'
import { Action, ActionContext } from '@/features/actions/logic/types'
import { assert, raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { BaseUnitNumber, NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { assert, BaseUnitNumber, NormalizedUnitNumber, assertNever, raise } from '@marsfoundation/common-universal'
import { TransactionReceipt, decodeEventLog, erc4626Abi } from 'viem'
import { ApproveAction } from '../../approve/types'
import { PsmConvertAction } from '../../psm-convert/types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { TokensInfo } from '@/domain/wallet/useTokens/TokenInfo'
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'

export type StakeActionPath =
| 'usds-to-farm'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { migrationActionsConfig, usdsPsmWrapperConfig } from '@/config/contracts-generated'
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { Action, ActionContext } from '@/features/actions/logic/types'
import { assert, raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { assert, assertNever, raise } from '@marsfoundation/common-universal'
import { ApproveAction } from '../../approve/types'
import { DowngradeAction } from '../../downgrade/types'
import { PsmConvertAction } from '../../psm-convert/types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { TokensInfo } from '@/domain/wallet/useTokens/TokenInfo'
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'

export type UnstakeActionPath = 'farm-to-usds' | 'farm-to-usds-to-usdc' | 'farm-to-usds-to-dai'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ensureConfigTypes } from '@/domain/hooks/useWrite'
import { getBalancesQueryKeyPrefix } from '@/domain/wallet/getBalancesQueryKeyPrefix'
import { allowanceQueryKey } from '@/features/actions/flavours/approve/logic/query'
import { ActionConfig, ActionContext } from '@/features/actions/logic/types'
import { raise } from '@/utils/assert'
import { toBigInt } from '@/utils/bigNumber'
import { raise } from '@marsfoundation/common-universal'
import { UpgradeAction } from '../types'

export function createUpgradeActionConfig(action: UpgradeAction, context: ActionContext): ActionConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
import { getContractAddress } from '@/domain/hooks/useContractAddress'
import { SavingsInfo } from '@/domain/savings-info/types'
import { Action, ActionContext } from '@/features/actions/logic/types'
import { assert, raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, NormalizedUnitNumber, assertNever, raise } from '@marsfoundation/common-universal'
import BigNumber from 'bignumber.js'
import { gnosis } from 'viem/chains'
import { ApproveAction } from '../../approve/types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Token } from '@/domain/types/Token'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { TokensInfo } from '@/domain/wallet/useTokens/TokenInfo'
import { raise } from '@/utils/assert'
import { raise } from '@marsfoundation/common-universal'
import { base, gnosis } from 'viem/chains'

export interface GetSavingsWithdrawActionPathParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ import { getBalancesQueryKeyPrefix } from '@/domain/wallet/getBalancesQueryKeyPr
import { allowanceQueryKey } from '@/features/actions/flavours/approve/logic/query'
import { ActionConfig, ActionContext, GetWriteConfigResult } from '@/features/actions/logic/types'
import { calculateGemConversionFactor } from '@/features/actions/utils/savings'
import { assert, raise } from '@/utils/assert'
import { assertNever } from '@/utils/assertNever'
import { toBigInt } from '@/utils/bigNumber'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { CheckedAddress } from '@marsfoundation/common-universal'
import { assert, CheckedAddress, NormalizedUnitNumber, assertNever, raise } from '@marsfoundation/common-universal'
import { QueryKey } from '@tanstack/react-query'
import { Address, erc4626Abi } from 'viem'
import { gnosis } from 'viem/chains'
Expand Down
Loading

0 comments on commit 50e90b3

Please sign in to comment.