MCPcopy Create free account

hub / github.com/sushi-labs/sushiswap / functions

Functions3,426 in github.com/sushi-labs/sushiswap

↓ 271 callersMethodwrap
( inputCurrency: EvmCurrency, outputCurrency: EvmCurrency, amount: Amount<EvmNative> | 'max', )
apps/web/test/helpers/swap.ts:23
↓ 243 callersMethodtoLowerCase
(this: T)
apps/web/src/types/global.d.ts:53
↓ 115 callersFunctionperpsNumberFormatter
({ value, maxFraxDigits, minFraxDigits, }: { value: number | string maxFraxDigits?: number minFrax
apps/web/src/lib/perps/utils.ts:52
↓ 105 callersFunctionuseAccount
( filter?: EvmChainId | SvmChainId | StellarChainId | WalletNamespace, )
apps/web/src/lib/wallet/hooks/use-account.ts:21
↓ 81 callersFunctionuseConnection
()
apps/web/src/app/(networks)/(non-evm)/aptos/_common/lib/common/use-account.ts:4
↓ 76 callersFunctionuseAssetState
()
apps/web/src/app/(networks)/(evm)/perps/_ui/trade-widget/asset-state-provider.tsx:446
↓ 71 callersFunctionrequest
( params: RequestExtendedOptions<V, T>, options: RequestOptions = {}, )
packages/graph-client/src/lib/request.ts:30
↓ 56 callersFunctioncreateErrorToast
( message: string | undefined, code: boolean, variant?: NotificationVariant, )
packages/notifications/src/components/toast/toast.tsx:87
↓ 52 callersFunctionformat
(value: number)
apps/web/src/app/(networks)/(evm)/perps/leaderboard/_ui/season-countdown.tsx:36
↓ 50 callersFunctiongetTextColorClass
(value: number)
apps/web/src/lib/perps/utils.ts:13
↓ 49 callersFunctionsendAnalyticsEvent
( eventName: string, eventProperties?: Record<string, unknown>, )
packages/telemetry/src/sendAnalyticsEvent.ts:4
↓ 46 callersFunctionuseAssetListState
()
apps/web/src/app/(networks)/(evm)/perps/_ui/asset-selector/asset-list-provider.tsx:85
↓ 43 callersFunctionuseActiveAccountState
()
apps/web/src/app/(networks)/(evm)/perps/active-account-provider.tsx:99
↓ 41 callersFunctionformatPrice
( price: string | number, decimals: number, marketType?: 'perp' | 'spot', )
apps/web/src/lib/perps/utils.ts:70
↓ 40 callersFunctionuseLocalStorage
( key: string, initialValue: T, )
packages/hooks/src/useLocalStorage.ts:11
↓ 38 callersFunctionuseNetwork
()
apps/web/src/app/(networks)/(non-evm)/aptos/_common/lib/common/use-network.ts:7
↓ 37 callersFunctioncreateToast
(props: PromiseNotification)
packages/notifications/src/components/toast/toast.tsx:28
↓ 37 callersMethodstopPropagation
()
apps/web/src/lib/wallet/namespaces/svm/provider/use-register-privy-svm-wallet.ts:77
↓ 36 callersFunctioncreateSuccessToast
(props: ResolvedNotification)
packages/notifications/src/components/toast/toast.tsx:114
↓ 34 callersFunctionuseSlippageTolerance
( key: SlippageToleranceStorageKey = SlippageToleranceStorageKey.Swap, )
apps/web/src/lib/hooks/useSlippageTolerance.ts:8
↓ 33 callersFunctioncreateInfoToast
(props: ResolvedNotification)
packages/notifications/src/components/toast/toast.tsx:139
↓ 32 callersFunctionuseUserSettingsState
()
apps/web/src/app/(networks)/(evm)/perps/_ui/account-management/settings-provider.tsx:298
↓ 31 callersFunctionuseDerivedStateSimpleSwap
()
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/swap/_ui/derivedstate-simple-swap-provider.tsx:337
↓ 30 callersFunctionisUserRejectedError
(error: unknown)
apps/web/src/lib/wagmi/errors.ts:3
↓ 30 callersFunctionuseStyroClient
( required?: REQUIRED, )
apps/web/src/app/portal/_common/ui/auth-provider/auth-provider.tsx:87
↓ 29 callersFunctioncreateFailedToast
(props: ResolvedNotification)
packages/notifications/src/components/toast/toast.tsx:128
↓ 28 callersFunctionalignTick
(tick: number, spacing: number)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/utils/ticks.ts:31
↓ 28 callersMethodpreventDefault
()
apps/web/src/lib/wallet/namespaces/svm/provider/use-register-privy-svm-wallet.ts:73
↓ 28 callersFunctionusePrices
({ chainId, enabled = true, }: { chainId: TChainId | undefined enabled?: boolean })
apps/web/src/app/(networks)/(evm)/_common/ui/price-provider/price-provider/use-prices.ts:47
↓ 28 callersFunctionuseWallet
( filter?: EvmChainId | SvmChainId | StellarChainId | WalletNamespace, )
apps/web/src/lib/wallet/hooks/use-wallet.ts:18
↓ 26 callersFunctionuseRefetchBalances
()
apps/web/src/app/(networks)/(evm)/_common/ui/balance-provider/use-refetch-balances.ts:9
↓ 24 callersFunctionformatSize
(price: string | number, decimals: number)
apps/web/src/lib/perps/utils.ts:82
↓ 24 callersFunctionsetAmount
(value: string)
apps/web/src/app/(networks)/(non-evm)/aptos/swap/ui/simple/simple-swap-provider/simple-swap-provider.tsx:163
↓ 24 callersFunctionuseBreakpoint
( breakpointKey: K, )
packages/ui/src/lib/useBreakpoint.ts:5
↓ 22 callersFunctiongetUserStyroClient
()
apps/web/src/app/portal/_common/lib/styro/styro-client.ts:24
↓ 22 callersFunctionisBladeChainId
(value: number)
packages/graph-client/src/subgraphs/data-api/types/BladeChainId.ts:6
↓ 22 callersFunctionuseIsMounted
()
packages/hooks/src/useIsMounted.ts:5
↓ 20 callersFunctionformClassnames
( { isDirty = false, isError = false, }: { isDirty?: boolean; isError?: boolean }, ...rest: clas
packages/ui/src/components/form.tsx:220
↓ 20 callersFunctiononOpenChange
(shouldOpen: boolean)
apps/web/src/app/(networks)/_ui/sidebar/sidebar.tsx:26
↓ 20 callersFunctionuseCollapsibleMessage
({ successTimeout, }: useCollapsibleMessage = {})
apps/web/src/app/portal/_common/ui/collapsible-message.tsx:16
↓ 20 callersFunctionuseLifiXSwap
()
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/cross-chain-swap/_ui/lifi/xswap-provider.tsx:262
↓ 20 callersFunctionuseTokenAmountDollarValues
({ chainId, amounts }: Params<TChainId>)
apps/web/src/lib/hooks/useTokenAmountDollarValues.ts:14
↓ 19 callersFunctionformatNumberWithDecimals
(number: number, decimals: number)
apps/web/src/app/(networks)/(non-evm)/aptos/_common/lib/common/format-number-with-decimals.ts:1
↓ 19 callersFunctionisNearIntentsChainId
( chainId: number, )
apps/web/src/lib/swap/near-intents/chains.ts:37
↓ 18 callersFunctionisLifiXSwapSupportedChainId
( chainId: number, )
apps/web/src/config.ts:286
↓ 18 callersFunctionuseLegalCheck
({ address, }: { address: EvmAddress | undefined })
apps/web/src/lib/perps/info/use-legal-check.ts:9
↓ 17 callersFunctionnativeFromChainId
( chainId: TChainId, )
apps/web/src/lib/currency-from-chain-id.ts:4
↓ 16 callersFunctiongetUserServiceClient
()
apps/web/src/app/portal/_common/lib/zitadel-client.ts:22
↓ 16 callersFunctionparseFiniteNumber
(value: number | string | null | undefined)
apps/web/src/app/(networks)/(evm)/perps/_ui/trade-tables/_common/share-closed-pnl-dialog.tsx:72
↓ 16 callersFunctionuseAgent
()
apps/web/src/lib/perps/agent/use-agent.ts:26
↓ 16 callersFunctionuseDialog
(type: T)
packages/ui/src/components/dialog.tsx:387
↓ 16 callersFunctionuseUserState
()
apps/web/src/app/(networks)/(evm)/perps/user-provider.tsx:104
↓ 15 callersFunctioncreateDirective
* @param {string} name * @param {string[]} sources * @returns {string}
apps/web/content-security-policy.mjs:155
↓ 15 callersFunctionparseStyroError
(error: ResponseError)
apps/web/src/app/portal/_common/lib/styro/parse-error.ts:3
↓ 15 callersFunctionsetView
( view: SidebarState['view'], context?: SidebarState['context'], )
apps/web/src/app/(networks)/_ui/sidebar/sidebar-provider.tsx:33
↓ 15 callersFunctionusePrice
({ chainId, address, enabled: _enabled = true, }: { chainId: TChainId | undefined address: ContractA
apps/web/src/app/(networks)/(evm)/_common/ui/price-provider/price-provider/use-price.ts:7
↓ 15 callersFunctionuseStellarWallet
()
apps/web/src/app/(networks)/(non-evm)/stellar/providers.tsx:90
↓ 15 callersFunctionuseSymbolSplit
({ asset, }: { asset: PerpOrSpotAsset | undefined })
apps/web/src/lib/perps/info/use-symbol-split.tsx:4
↓ 15 callersFunctionuseTradeTables
()
apps/web/src/app/(networks)/(evm)/perps/_ui/trade-tables/trade-tables-provider.tsx:220
↓ 14 callersFunctiongetSessionData
()
apps/web/src/app/portal/_common/lib/client-config.ts:66
↓ 13 callersFunctionnetworkNameToNetwork
(network: NetworkName)
apps/web/src/app/(networks)/(non-evm)/aptos/_common/config/chains.ts:19
↓ 13 callersFunctionuseAssetSelectorState
()
apps/web/src/app/(networks)/(evm)/perps/_ui/asset-selector/asset-selector-provider.tsx:45
↓ 13 callersFunctionusePoolFilters
()
apps/web/src/app/(networks)/_ui/pools-filters-provider.tsx:60
↓ 13 callersFunctionuseStablePrice
({ currency, ledgerVersion }: UseStablePrice)
apps/web/src/app/(networks)/(non-evm)/aptos/_common/lib/common/use-stable-price.ts:13
↓ 13 callersFunctionwarningSeverity
( priceImpact: Percent | undefined, )
apps/web/src/lib/swap/warningSeverity.ts:31
↓ 12 callersFunctioncreateToast
({ summery, link = '', toastId }: Props)
apps/web/src/app/(networks)/(non-evm)/aptos/_common/ui/toast.tsx:15
↓ 12 callersFunctionextractErrorMessage
(error: unknown)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/utils/error-helpers.ts:101
↓ 12 callersFunctiongetTokenAsString
( chainId: TChainId, token: CurrencyFor<TChainId> | string, )
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/_ui/derivedstate-swap-helpers.ts:18
↓ 12 callersFunctiononSelect
(index: string)
apps/web/src/app/(cms)/academy/explore/components/sort-by-dropdown.tsx:21
↓ 12 callersFunctionuseApproved
(tag: string)
apps/web/src/lib/wagmi/systems/Checker/provider.tsx:129
↓ 12 callersFunctionuseTokenWithCache
({ chainId, address, enabled = true, keepPreviousData: isKeepPreviousData = true, }: UseTokenParams<TC
apps/web/src/lib/wagmi/hooks/tokens/useTokenWithCache.ts:166
↓ 12 callersFunctionuseTrace
(trace?: ITraceContext)
packages/telemetry/src/Trace.tsx:32
↓ 11 callersFunctioncalculatePriceFromTick
(tick: number)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/soroban/pool-helpers.ts:200
↓ 11 callersFunctiongetAddressSchema
( chainId: TChainId, { isSvmChainIdFn = isSvmChainId, }: { isSvmChainIdFn?: (chainId: number) =>
apps/web/src/app/(networks)/(evm)/api/cross-chain/schemas.ts:179
↓ 11 callersFunctiongetSignForValue
(value: number)
apps/web/src/lib/perps/utils.ts:26
↓ 11 callersFunctionheaders
()
apps/web/next.config.mjs:103
↓ 11 callersFunctionisSmartPoolChainId
(value: number)
packages/graph-client/src/subgraphs/data-api/types/SmartPoolChainId.ts:4
↓ 11 callersFunctionisSushiSwapChainId
(value: number)
packages/graph-client/src/subgraphs/data-api/types/SushiSwapChainId.ts:9
↓ 11 callersFunctionsignTransaction
(xdr: string)
apps/web/src/app/(networks)/(non-evm)/stellar/providers.tsx:36
↓ 11 callersFunctionuseMidPrice
({ assetString, refreshIntervalMs = 10_000, }: { assetString: string | undefined refreshIntervalMs?: n
apps/web/src/lib/perps/subscription/use-mid-price.ts:6
↓ 11 callersFunctionuseVaultDetails
({ vaultAddress, }: { vaultAddress: EvmAddress | undefined })
apps/web/src/lib/perps/info/use-vault-details.ts:7
↓ 10 callersFunctiongetAddress
(tokenA: Token, tokenB: Token, network: SupportedNetwork)
apps/web/src/app/(networks)/(non-evm)/aptos/pool/lib/use-pools-by-tokens.ts:123
↓ 10 callersFunctiongetPositionManagerContractClient
({ contractId, publicKey, }: ContractClientParams)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/soroban/client.ts:90
↓ 10 callersFunctiongetStellarTxnLink
(txnHash: string)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/utils/stellarchain-helpers.ts:18
↓ 10 callersFunctionisAddressLower
(addressA: string, addressB: string)
apps/web/src/app/(networks)/(non-evm)/stellar/_common/lib/soroban/constants.ts:63
↓ 10 callersFunctionisZapSupportedChainId
( chainId: number, )
apps/web/src/config.ts:241
↓ 10 callersFunctionnewToken
( args: | ConstructorParameters<typeof EvmToken>[0] | ConstructorParameters<typeof SvmToken>[0], )
apps/web/src/lib/currency-from-chain-id.ts:29
↓ 10 callersFunctionselect
(data)
apps/web/src/app/(networks)/(evm)/stake/_ui/sushi-bar-provider.tsx:65
↓ 10 callersFunctionuseAmountBalance
( currency: TCurrency | undefined, )
apps/web/src/app/(networks)/(evm)/_common/ui/balance-provider/use-balance.ts:62
↓ 10 callersFunctionuseSidebar
()
apps/web/src/app/(networks)/_ui/sidebar/sidebar-provider.tsx:77
↓ 10 callersFunctionuseVaultTables
()
apps/web/src/app/(networks)/(evm)/perps/vaults/[address]/_ui/vault-tables/vault-tables-provider.tsx:142
↓ 9 callersFunctionfillRoundedRect
( context: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius:
apps/web/src/app/(networks)/(evm)/perps/_ui/trade-tables/_common/share-closed-pnl-dialog.tsx:1846
↓ 9 callersFunctionformatPerpsPercent
( value: number | string, decimals?: number, )
apps/web/src/lib/perps/utils.ts:38
↓ 9 callersFunctionget
(pairAddress: string | undefined)
apps/web/src/app/(networks)/(non-evm)/aptos/pool/lib/use-pools-reserves.ts:28
↓ 9 callersFunctiongetCachedV2Pool
({ chainId, address, }: { chainId: SushiSwapV2ChainId; address: EvmAddress })
apps/web/src/app/(networks)/(evm)/[chainId]/pool/v2/[address]/_lib/get-cached-v2-pool.ts:5
↓ 9 callersFunctiongetCachedV3Pool
({ chainId, address, }: { chainId: SushiSwapV3ChainId; address: EvmAddress })
apps/web/src/app/(networks)/(evm)/[chainId]/pool/v3/[address]/_lib/get-cached-v3-pool.ts:5
↓ 9 callersFunctiongetCurrencyParam
( currency: CurrencyFor<NearIntentsSupportedChainId>, )
apps/web/src/lib/swap/near-intents/tokens.ts:297
↓ 9 callersFunctiongetDefaultTTL
(chainId: EvmChainId)
apps/web/src/lib/wagmi/hooks/utils/hooks/useTransactionDeadline.ts:9
↓ 9 callersFunctiongetWagmiConfig
()
apps/web/src/lib/wagmi/config/index.ts:23
↓ 9 callersFunctionisMediaVideo
(metadata: Metadata)
apps/web/src/app/(cms)/lib/media.ts:23
next →1–100 of 3,426, ranked by callers