DeSwarm: AI-driven DeFi vaults and perp DEX on Berachain
An AI DeFi terminal, automated yield vaults and a perpetual DEX on Berachain. The AI finds yield opportunities and the vaults act on them.
Get an estimate- Client
- DeSwarm
- Team size
- 3
- Year
- 2025

What we built for DeSwarm
ContextCrypto yields need constant attention, and most traders miss opportunities because of it. DeSwarm's founders saw this on Berachain. Its Proof of Liquidity ecosystem offers high returns, but earning them takes technical knowledge and regular upkeep that few investors can keep up with.
They asked us to build a platform where AI does the repetitive work of DeFi optimization. It has three parts.
DeFAI Terminal. Analyzes on-chain data, social signals and market indicators to find investment opportunities across the Berachain ecosystem.
Automated Vaults. Allocate assets, manage positions and compound rewards, turning what the terminal finds into yield.
Perpetual DEX. Leveraged trading with AI market insights. Its trading fees go toward boosting ecosystem rewards through Berachain's Proof of Liquidity.

Challenges and how we solved them
ChallengesMaking multi-step DeFi strategies usable
The best-paying DeFi strategies usually take several steps and need constant monitoring and adjustment.
We built an AI system that analyzes the Berachain ecosystem to find the best yield paths. It decides when to move assets between lending, staking and liquidity provision based on current and predicted yields.
The system accounts for how Berachain's Proof of Liquidity works, so users earn $BGT emissions on top of the base protocol yield.
A search engine for DeFi opportunities
A useful DeFi terminal has to combine very different data, from on-chain metrics to social media sentiment.
We built natural language processing models that follow token discussions across platforms and produce real-time sentiment scores.
Custom adapters connect the terminal to all major Berachain protocols, so it can compare yields across the ecosystem at once. It answers plain-language questions like "Where can I earn the highest yield on my BERA?" with current recommendations that match each user's risk preference.
Keeping AI-run vaults safe
Letting an AI system control user funds raised serious security problems.
Each vault runs on its own isolated agent instance with strict limits on what it can do. Every strategy execution needs the user's explicit approval through a wallet signature. Users keep full control while the routine work is automated.
A layered risk system keeps checking protocol security, liquidity depth and market conditions. It scores risk as conditions change, so vault operations weigh capital preservation as well as yield.
The contracts have timelock delays on parameter changes and an emergency withdrawal that users can trigger at any time.
Integrating with Berachain's Proof of Liquidity
Berachain's Proof of Liquidity system can raise yields, but integrating with it takes deep protocol knowledge.
We set up DeSwarm vaults as reward vaults within PoL, so they receive $BGT emissions from validators.
Trading fees from the perpetual DEX go toward incentivizing validators that direct rewards to DeSwarm vaults. More trading means more rewards for vault users, and the ecosystem gets stronger along the way.
Vault users get DeFi yield and PoL rewards at the same time, without managing validator relationships themselves.

Building something similar?
The team that built DeSwarm can scope your project. Send a few lines about what you are building. We reply within 24 hours, usually the same business day.
Ready when you are
Tell us what you are building and where you are stuck. You get a reply from an engineer and a scoped estimate for a PoC, MVP or full launch. We reply within 24 hours, usually the same business day.