Process
Deposit in two onchain steps:- Call
approve(vaultAddress, amount)on the ERC-20 token contract. - Call
deposit(user, tokenAddress, amount)on the chain’s deposit contract.
GET /registry/vaults. The deposit() call pulls tokens from msg.sender, so the approval must be from the same wallet that sends the deposit transaction. The deposit contract checks canDeposit(msg.sender), rejects zero-amount deposits, and transfers with safeTransferFrom(tokenAddress, msg.sender, address(this), amount). Approving the exact deposit amount limits the ERC-20 allowance to that deposit. Unlimited approval lets later deposit() calls from the same wallet reuse allowance, but leaves a broader token allowance in place until the wallet reduces or revokes it.
The deposit contract also reads decimals() from the token and rejects amounts that would overflow normalization to Tplus 18-decimal internal units or round down to zero. On the first deposit for a user, the amount must meet the token’s configured minFirstDepositAmounts value.
First-time depositors can use the overloaded deposit variant that emits an initial account multisig configuration; the clearing engine applies it during deposit ingestion after verifying the master-config signature.
Blockchain clients ingest the deposit contract’s Deposited event, verified across multiple independent RPC providers with majority agreement, and credit the balance after the chain’s confirmation policy is met. Deposit nonces are tracked per user per chain; each deposit is credited exactly once. A check that the block is still part of the chain runs after confirmations; events on orphaned blocks are dropped and re-ingested from the chain’s surviving fork. Funds remain in the deposit contract while crediting is pending.
Chains and confirmation times
Production asset-config rows currently use this EVM chain set. Supported tokens vary by chain; useGET /registry/assets for per-asset availability.
Deposits and withdrawals are ingested only after a per-chain confirmation policy is met - a number of block confirmations, or chain finality - followed by the orphaned-block check above. Settlements are exempt: they ingest immediately, with re-org safety coming from the settlement lock and nonce instead (see Settlement).
These are source-defined default policies. The live deposit contract addresses are served by
GET /registry/vaults; the onchain Credential Manager stores each registered deposit contract’s ChainConfig, which can override the confirmation counts. Do not hardcode policies when operating from live registry state.
Decimals
Balances are normalized internally to 18 decimals (per-token decimals:POST /registry/decimals).
Rebalancing fees and rewards
A deposit itself earns no reward and pays no fee: it is credited to your Funding account as a token balance. Rebalancing applies when the token crosses into or out of a trading account. A Funding account transfer that moves the token into a trading account can earn a rebalancing reward, paid from the rebalancing fee account; a transfer back out to the token can pay a rebalancing fee. See Rebalancing.Admission caps
A deposit is credited to your Funding account as anAddress(token@chain) token balance. Each (asset, chain) pair has two admission caps, published in asset parameters: a total cap (admissionCap) and a rolling 1-hour cap (admissionCap1hr). They apply when a Funding account transfer moves the token into a trading account: a transfer that would exceed either is refused in full, and the tokens stay in the Funding account. See Native assets.