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.10 USDC.

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

ValueMeaning
0NO
1YES

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.amount increases.
  • Market.total_yes or Market.total_no increases.

Common mistakes

  • Depositing after the fixture starts.
  • Depositing less than 0.10 USDC.
  • 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]