Velora API
Introduction
Velora (formerly ParaSwap) is a DEX aggregator that aggregates liquidity across multiple decentralised exchanges. It provides optimal swap routes and executes trades atomically.
Unlike CoW Swap which uses an offchain order book and presigning, Velora executes swaps atomically in a single transaction by calling the Augustus Swapper contract directly with calldata from the Velora API.
Key differences from CoW Swap:
Atomic execution: Swaps execute in a single transaction (no offchain order book)
Simpler integration: No presigning or order polling required
Market API: Uses the Market API (not Delta API) for Safe multisig compatibility
Technicals
eth_defi provides Velora integration for smart contracts and vaults through the Velora Market API.
See eth_defi.erc_4626.vault_protocol.lagoon.velora for details on how to perform
Lagoon vault automated trading with Velora.
For a complete working example, see the Lagoon and Velora integration tutorial.
Swap flow:
Fetch quote from Velora API (GET /prices)
Build swap transaction from Velora API (POST /transactions/:network)
Approve TokenTransferProxy via vault’s performCall()
Execute swap via swapAndValidateVelora() on TradingStrategyModuleV0
Links:
Warning
When approving tokens, approve the TokenTransferProxy contract, NOT the Augustus Swapper. Funds may be lost if approved to Augustus directly.
Velora API utilities. |
|
Velora (ParaSwap) contract addresses and constants. |
|
Fetching Velora (ParaSwap) price quotes. |
|
Velora (ParaSwap) swap transaction building. |