Every vault accepts deposits and withdrawals through a pair of REST endpoints backed by on-chain events. When you deposit, the backend records the transaction and tracks your position. When you withdraw, it records the outflow and adjusts your reported balance. The backend also listens for on-chainDocumentation Index
Fetch the complete documentation index at: https://docs.superbots.finance/llms.txt
Use this file to discover all available pages before exploring further.
Transfer events and automatically reconciles any transactions it might have missed, applying deposit and withdrawal fees from the vault entity.
Depositing
Connect your wallet
Open the vault detail page and connect your Web3 wallet. The UI initialises a Web3Modal session and reads your on-chain balance for the vault’s
currency1 token.Approve the token
Before the first deposit into any vault, you must approve the vault’s
contractAddress to spend your tokens. This is a standard ERC-20 approve transaction and requires a gas fee.Enter an amount and deposit
Enter the amount of
currency1 you want to deposit. Confirm the transaction in your wallet. Once the transaction is confirmed on-chain, call the deposit recording endpoint below.Record the deposit
POST the transaction details to the API so your position is tracked off-chain:Request body:
The on-chain transaction hash of the deposit.
The ID of the vault you deposited into.
Your wallet address.
The amount deposited, in
currency1 units.The platform automatically reconciles on-chain events periodically. If you skip the POST call, your deposit will still be detected — but there may be a short delay before your balance is reflected.
Withdrawing
Check for an unstake requirement
Some vaults require a signed unstake request before a withdrawal can be processed. Check whether you have a pending request:If the vault requires unstaking and you have no active request, submit one before proceeding.
Submit an unstake request (if required)
Your wallet address.
The amount to unstake.
A unique nonce for the request, used in signature verification.
The vault’s contract address.
An EIP-191 signature of the Solidity-encoded hash of
(account, amount, nonce, contractAddress), signed by your wallet private key. The server verifies this before creating the request.account.Execute the withdrawal on-chain
Call the vault contract’s withdrawal function from your wallet. Confirm the transaction and copy the transaction hash.
Querying your deposit history
Your net deposit for a single vault
{ amount } — the sum of all deposits minus the sum of all withdrawals for your account in the specified vault. Account matching is case-insensitive.
Your net deposit across all vaults
{ amount } — your net position across every vault.
Per-vault breakdown
vaultId, with each value being the net deposit amount for that vault.
Fee behaviour
Fees are deducted automatically from your deposit or withdrawal amount by the vault’s smart contract:- Deposit fee — deducted when you deposit; your recorded position reflects the amount after the fee.
- Withdrawal fee — deducted when you withdraw; the amount you receive is reduced by the fee percentage.
depositFee and withdrawalFee fields on the vault detail page before transacting.