Skip to Content
Scalar

Deposits and withdrawals

Move USDC in and out, with or without Scalar.

Your money on Scalar is USDC in the Scalar contract on Base. The contract keeps a balance for your address. You deposit to fund it, trade from it, and withdraw from it to your wallet.

Your account

LineMeaning
BalanceAll of your USDC in the Scalar contract that is not inside a position.
Reserved marginThe part of your balance that your resting orders reserve.
Available marginBalance minus reserved margin. You can trade or withdraw this amount.
In positionsWhat you put into the positions that you hold now.
Wallet USDCUSDC in your wallet, outside Scalar. Deposit it to trade with it.
ETH for gasETH in your wallet. You need a little to deposit, to mint test USDC and to settle a position yourself.

Deposit

Open Deposit

On the trading screen or your Profile, select Deposit and enter an amount of USDC from your wallet.

Approve and deposit

The first time, your wallet asks you to approve the Scalar contract to take USDC. Then it asks you to confirm the deposit. Both are transactions on Base, so they cost a little gas.

Trade

When the deposit confirms, the USDC shows in your balance and in your available margin.

Deposits have no fee. On testnet, select Mint USDC on your Profile to get test USDC first.

Withdraw

Select Withdraw, enter an amount and confirm. Your wallet signs a withdrawal request. The Scalar executor posts it to the contract, and the USDC goes to your wallet. You pay no gas. You can withdraw any part of your available margin.

The withdrawal fee is taken from the amount. The request must be for more than the fee. On testnet the withdrawal fee is $0.

Withdraw without Scalar

The normal withdrawal needs the Scalar executor to post your signed request. If Scalar stops, or does not post it, you can still take your money out. The contract has a path that only you control:

Request

Call requestWithdrawal() on the Scalar contract from your wallet. This starts a 24-hour timer.

Wait 24 hours

The wait gives the exchange time to settle the trades that it already matched for you.

Fulfill

Call fulfillWithdrawal(). The contract sends your whole balance, less the withdrawal fee, to your wallet.

You can call both functions from a block explorer such as Basescan, with the wallet that owns the balance. Nobody else can call them for you, and nobody can stop them. This is what makes Scalar non-custodial: your funds never depend on Scalar staying online.

Email accounts

If you sign in with email, the app creates a wallet for you with Magic. Magic is a wallet service that you unlock with a code sent to your email. Only you can sign with it. Scalar never sees its private key. Your balance in the Scalar contract belongs to this wallet address.

On this page