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

github.com/sushi-labs/sushiswap @main sqlite

repository ↗ · DeepWiki ↗
4,288 symbols 14,965 edges 2,508 files 31 documented · 1%
README

Sushi Monorepo

Sushi 2.0 🍣

This repository contains code for the main Sushi interface hosted on sushi.com.

Getting Started

https://pnpm.io/installation

Install

pnpm install

Configure the environment

Copy apps/web/.env.sample to apps/web/.env and fill in non-optional variables. You can skip the Portal variables if you aren't working on those parts of the app.

Dev

pnpm exec turbo run dev --filter=web

Build

pnpm exec turbo run build --filter=web

Clean (for getting the repo into a clean state)

pnpm run clean

Disclaimer

This code is being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts and code. There can be no assurance it will work as intended, and users may experience delays, failures, errors, omissions or loss of transmitted information. In addition, using this code should be conducted in accordance with applicable law. Nothing in this repo should be construed as investment advice or legal advice for any particular facts or circumstances and is not meant to replace competent counsel. It is strongly advised for you to contact a reputable attorney in your jurisdiction for any questions or concerns with respect thereto. SushiSwap is not liable for any use of the foregoing and users should proceed with caution and use at their own risk.

Any stated APY (the 'Rate') is purely informational based on publicly available blockchain data, and is a forward-looking projection based on our good faith belief of how to reasonably project results over the relevant period, but such belief is subject to numerous assumptions, risks and uncertainties (including smart contract security risks and third-party actions) which could result in a materially different (lower or higher) token-denominated Rates. The Rate is not a promise, guarantee or undertaking on the part of any person or group of persons, but depends entirely on the results of operation of smart contracts and other autonomous systems (including third-party systems) and how third parties interact with those systems after the time of your deposit or other interactions. Even if the Rate is achieved as projected, you may still suffer a financial loss in fiat-denominated terms if the fiat-denominated value of the relevant tokens (your deposit and any tokens allocated or distributed to you pursuant to the Rate) declines during the deposit period.

Extension points exported contracts — how you extend this code

BaseNotification (Interface)
(no doc)
packages/notifications/src/types.ts
ITraceContext (Interface)
(no doc)
packages/telemetry/src/Trace.tsx
RequestOptions (Interface)
(no doc)
packages/graph-client/src/lib/request.ts
Client (Interface)
(no doc)
packages/stellar/contract-bindings/factory/src/index.ts
BaseProvidersProps (Interface)
(no doc)
packages/ui/src/base-providers.tsx
WindowEventMap (Interface)
(no doc)
packages/hooks/src/useSessionStorage.ts
CreateV3PoolArgs (Interface)
(no doc)
apps/web/test/helpers/pool.ts
PromiseNotification (Interface)
(no doc)
packages/notifications/src/types.ts

Core symbols most depended-on inside this repo

wrap
called by 271
apps/web/test/helpers/swap.ts
toLowerCase
called by 243
apps/web/src/types/global.d.ts
perpsNumberFormatter
called by 115
apps/web/src/lib/perps/utils.ts
useAccount
called by 105
apps/web/src/lib/wallet/hooks/use-account.ts
useConnection
called by 81
apps/web/src/app/(networks)/(non-evm)/aptos/_common/lib/common/use-account.ts
useAssetState
called by 76
apps/web/src/app/(networks)/(evm)/perps/_ui/trade-widget/asset-state-provider.tsx
request
called by 71
packages/graph-client/src/lib/request.ts
createErrorToast
called by 56
packages/notifications/src/components/toast/toast.tsx

Shape

Function 3,267
Interface 764
Method 159
Enum 58
Class 40

Languages

TypeScript100%

Modules by API surface

apps/web/src/app/(networks)/(evm)/perps/_ui/trade-tables/_common/share-closed-pnl-dialog.tsx52 symbols
packages/stellar/contract-bindings/position-manager/src/index.ts38 symbols
packages/stellar/contract-bindings/pool/src/index.ts29 symbols
packages/stellar/contract-bindings/zap-router/src/index.ts23 symbols
packages/stellar/contract-bindings/pool-lens/src/index.ts23 symbols
apps/web/src/lib/swap/near-intents/tokens.ts21 symbols
apps/web/src/app/(networks)/(non-evm)/aptos/pool/ui/pool/add/pool-add-provider/pool-add-provider.tsx20 symbols
apps/web/src/lib/perps/math.ts19 symbols
packages/ui/src/components/dialog.tsx17 symbols
apps/web/src/app/(networks)/(evm)/[chainId]/_ui/concentrated-liquidity-provider.tsx17 symbols
packages/stellar/contract-bindings/router/src/index.ts16 symbols
apps/web/test/helpers/pool.ts16 symbols

Dependencies from manifests, versioned

@0no-co/graphqlsp1.12.3 · 1×
@aptos-labs/ts-sdk1.27.0 · 1×
@aptos-labs/wallet-adapter-core3.10.0 · 1×
@aptos-labs/wallet-adapter-react2.3.1 · 1×
@base-org/account2.4.2 · 1×
@biomejs/biome1.9.5-nightly.81fded · 1×
@cloudinary/url-gen1.11.2 · 1×
@coinbase/wallet-sdk4.3.7 · 1×
@creit.tech/stellar-wallets-kit2.2.0 · 1×
@defuse-protocol/one-click-sdk-typescript0.1.17 · 1×
@fontsource-variable/orbitron5.2.6 · 1×

For agents

$ claude mcp add sushiswap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact