> ## Documentation Index
> Fetch the complete documentation index at: https://docs.positions.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Depositing Assets

> Deposit ERC-20 assets into the lending pool

Deposits an asset (e.g. USDC) into the lending pool.

The SDK automatically handles `approve` transactions if allowance is insufficient.

```typescript theme={null}
const usdcAddress = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
const amountToDeposit = 100;

try {
    const tx = await sdk.deposit(usdcAddress, amountToDeposit);
    console.log("Deposit successful:", tx);
} catch (err) {
    console.error("Deposit failed:", err);
}
```
