| name | nexus-elements-deposit |
| description | DEPRECATED — The standalone Deposit element (NexusDeposit) has been removed. Use Nexus One (config.mode = "deposit") for all deposit flows. Refer to the nexus-one-deposit agent skill for current integration guidance. |
⚠️ Deprecated — Use Nexus One Deposit
The standalone Deposit element (NexusDeposit) has been removed from Nexus Elements.
All deposit flows (swap + execute into a protocol) are now handled by Nexus One with config.mode = "deposit" and a specific deposit config object.
Migration
Replace any NexusDeposit usage with NexusOne:
import { NexusOne } from "@/components/nexus-one/nexus-one";
import { encodeFunctionData } from "viem";
const AAVE_POOL = "0x794a61358D6845594F94dc1DB02A252b5b4814aD";
const USDT_ARBITRUM = "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
<NexusOne
config={{
mode: "deposit",
deposit: {
title: "Aave",
protocol: "Aave",
chainId: 42161,
tokenSymbol: "USDT",
tokenDecimals: 6,
tokenAddress: USDT_ARBITRUM,
executeDeposit: (_symbol, tokenAddress, amount, _chainId, user) => ({
to: AAVE_POOL,
data: encodeFunctionData({ /* ... */ }),
tokenApproval: {
token: USDT_ARBITRUM,
amount,
spender: AAVE_POOL,
},
}),
},
}}
connectedAddress={address}
/>
Install Nexus One
npx shadcn@latest add @nexus-elements/nexus-one
Recommended skill to use instead
For integration guidance, refer to the Nexus One Deposit agent skill:
nexus-one-deposit — Setup, prefill config, and contract transaction building for deposits with Nexus One.
Documentation