Skip to content
Perpetra

Perpetra

AI-powered perp DEX with dark pool execution.

Created on 6th June 2025

Perpetra

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

Chanlink CCIP code

Chanlink Data Feeds code

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

All trading logic, execution, validation, and funding are fully on-chain using smart contracts and zk-based finality. C...Read More

Cross-Chain Solutions

Cross-chain deposits and withdrawals are enabled via Chainlink CCIP, supporting Ethereum and Base. CCIP integration cod...Read More

DeFi & Web3 Agents

An AI agent autonomously opens and closes leveraged positions based on market data and predefined strategies. ElizeOS p...Read More

ElizaOS

Discussion

Builders also viewed

See more projects on Devfolio