Perpetra
AI-powered perp DEX with dark pool execution.
Created on 6th June 2025
•
Perpetra
AI-powered perp DEX with dark pool execution.
The problem Perpetra solves
Problem
On-chain perpetual DEXes expose order intent before execution, turning large trades into public signals.
This leads to frontrunning, MEV attacks, and unpredictable slippage.
Traders have no privacy or control over execution.
Solution
We built an AI-powered perpetual DEX with dark pool execution to keep orders hidden until filled.
Chainlink services handle pricing, automation, and cross-chain deposits, while zk checkpoints verify execution.
An autonomous agent manages trade timing and risk, enabling private, high-quality perp trading.
Links to code
Chainlink Functions smart contract: open and close positions
Chainlink Functions executable code: open and close positions
Chainlink Functions interact with ElizaOS code: open and close positions
Backend code for Chainlink Function to providing open orders
Challenges we ran into
Challenges I ran into
Coordinating multiple Chainlink services across chains was a key challenge.
Getting Functions, Automation, Data Feeds and CCIP to work reliably together — while interacting with our AI agents — required careful contract architecture and testing.
Another hurdle was ensuring private execution logic remained off-chain while still being verifiable.
We overcame this by using zkSync for post-trade checkpoints and minimizing on-chain data exposure.
Finally, synchronizing agent decisions (via ElizaOS) with on-chain triggers involved edge cases around timing and gas management — solved through simulation and modular agent design.
Tracks Applied (3)
Onchain Finance
Cross-Chain Solutions
DeFi & Web3 Agents
ElizaOS