How a Solaya Trading Agent Operates
Agent & Vault Creation
When you create a trading agent, Solaya automatically arranges a secure on-chain vault for your assets through the following process:
Vault Initialisation & Creation
A single on-chain transaction from your wallet creates the vault, transferring assets directly into it and deducting 0.02 SOL to cover on-chain vault operational costs such as initial setup and swap fees.
In the same transaction, the vault is assigned a unique ID derived from the agent’s public key, as generated by our backend.
Ownership of the vault remains solely with you; only you can withdraw funds, while the agent is authorised solely to initiate swaps.
Initial Deposit & Rebalancing
Upon vault creation, you deposit two tokens—for instance, SOLAYA and SOL—in any ratio.
If the ratio is not 1:1, Solaya automatically conducts rebalancing by trading one token for the other to achieve an even starting position for your strategy.
Vault Activation
Once the vault is funded and on-chain confirmation is complete, our infrastructure promptly detects the new vault and notifies our execution servers that the vault is active and ready for trading.
The agent immediately begins tracking real-time market data and is prepared to execute trades based on your chosen strategy.
Strategy Execution Flow
Every trading agent utilises up-to-date market information—covering token prices and account balances—to decide when to buy or sell. If the agent identifies a promising trading opportunity:
Trade Routing
The agent secures the most favourable trade route from Jupiter, a Solana-based liquidity aggregator that accesses multiple DEXes for liquidity.
Atomic On-Chain Swap
The trade occurs within one atomic transaction:
Funds temporarily leave your vault and are sent to a specially assigned, single-use wallet created exclusively for the swap. A new temporary wallet is generated for each swap, which provides an extra layer of security as the agent or any unauthorised party cannot simply withdraw funds.
The swap finalises on-chain.
Funds, including any newly acquired assets or remaining tokens, are returned directly to the vault.
Transaction Fee Handling
Solana gas fees are deducted directly from the swap to keep the agent operational for subsequent trades.
A small trading fee is taken from the swap’s proceeds to support the platform.
Ongoing Monitoring
Vault balances update after each trade to reflect gains, losses, and the current allocation of tokens.
The agent remains active, continuously scanning for the next opportunity.
Stop Loss (Currently In Development)
A stop loss feature is currently in development that will attempt to close positions once prices falls below a user-defined threshold. Although this won't guarantee protection, it should help to reduce the likelihood of unexpected losses. Further details will be provided once development has completed.