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
| Balance | Meaning |
|---|---|
available | yours to trade or withdraw now |
locked | margin 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 yourUserAccount. You pay its rent once.deposit(amount)moves USDC from your wallet into the vault and creditsavailable.withdraw(amount)sends USDC from the vault back to your wallet, up toavailable. 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.