Docs / Account

Deposits and withdrawals(13)

Collateral is USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, 6 decimals, the classic SPL Token program). A deposit moves it from your wallet's token account into the program's vault, a token account whose authority is the Config PDA.

Balances

BalanceMeaning
availableyours to trade or withdraw now
lockedmargin in open positions and in pending open requests

Wins paid at once, returned margin, collected claims and claimed rewards all land in available.

Instructions

  • create_user() creates your UserAccount. You pay its rent once.
  • deposit(amount) moves USDC from your wallet into the vault and credits available.
  • withdraw(amount) sends USDC from the vault back to your wallet, up to available. Only your wallet can sign it, never a session key.

Nobody else can move your balance: not the admin, not the keeper. The program has no instruction for it.