How-to guides > Deposit
Deposit into a market
Escrow devnet USDC into a Quovra market position.
Deposit into a market
Deposits move devnet USDC from the user wallet into the market vault.
Requirements
- Wallet connected on devnet.
- Test USDC balance.
- Market is unresolved.
- Current time is before
close_ts. - Amount is at least
0.10USDC.
TypeScript
ts
import { Connection } from "@solana/web3.js"
import { deposit } from "./src/lib/quovra-client"
const connection = new Connection("https://api.devnet.solana.com", "confirmed")
const signature = await deposit(connection, wallet, marketPubkey, 1, 10)
console.log(signature)Outcomes
| Value | Meaning |
|---|---|
0 | NO |
1 | YES |
The first deposit locks the wallet's side for that market. Later top-ups must use the same outcome.
Expected result
- User ATA sends USDC to the market vault.
Position.amountincreases.Market.total_yesorMarket.total_noincreases.
Common mistakes
- Depositing after the fixture starts.
- Depositing less than
0.10USDC. - Trying to top up on the opposite side.
- Using a wallet on mainnet while the app is configured for devnet.
Related pages
Search keywords
deposit, USDC escrow, position PDA, market vault
Last updated: [YYYY-MM-DD]