Quantara

Quantara Smart Contract Audit Report

Share
Share
NeuraNeura
Perpetual DEX
NeuraNeura
Perpetual DEX

QuillAudits audited the Quantara smart contracts on Neura between Aug 22, 2025 and Sep 8, 2025. The audit found 3 issues: 2 high, 1 low, of which 3 resolved and 0 acknowledged.

Project Description

It uses a multi-asset liquidity pool, which earns fees for providers and acts as the counterparty to leveraged trades. Quantara features low fees, zero price impact on order execution. The exchange is fully non-custodial so users keep control of their funds and can earn rewards by staking Quantara or LP tokens. Its ecosystem includes the Quantara and LP tokens, which function in platform governance and reward distribution.

Timeline

S1
Aug 22, 2025
IA
Sep 10, 2025
S2
Sep 8, 2025

Scope of Audit

The scope of this Audit was to analyze the Quantara  Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
97.9%
AUDIT SCORE
icon

Critical

High

Medium

Low

Informational

open00000
acknowledged00000
partially resolved00000
resolved02010

High Severity Issues

Missing execution fee capping mechanism enables unlimited fee extraction attacks

Resolved
arrow-right
Description

In contracts/gas/GasUtils.sol:178-184, the validateExecutionFee function only validates that the provided execution fee meets the minimum threshold by calculating the gas limit and minimum fee, then reverting if the execution fee is insufficient. However, the original GMX V2 implementation includes a validateAndCapExecutionFee function that provides critical protection against execution fee abuse by enforcing a maximum execution fee cap based on gas limit, base fee, and a configurable multiplier factor. The absence of this maximum validation allows users to submit orders with arbitrarily high execution fees, which are later refunded through the callback mechanism or directly to the user, creating an opportunity for fund extraction. The missing MAX_EXECUTION_FEE_MULTIPLIER_FACTOR configuration parameter and associated validation logic remove this essential economic security control.
Consequently, malicious users can exploit the unlimited execution fee acceptance to extract funds from the protocol through the refund mechanism. An attacker can create orders with execution fees far exceeding the actual gas costs, such as 1000 ETH for a transaction that costs 0.01 ETH to execute, and receive the excess 999.99 ETH as a refund through callback contracts or direct transfers. This vulnerability is particularly severe for subaccount orders with callback contracts, where the excess execution fee refund is sent to the callback contract under the attacker's control. The cumulative effect of such attacks could systematically drain protocol funds and compromise the economic security of the entire system, as there are no upper bounds on the execution fees that users can specify or receive as refunds.

Contract

contracts/gas/GasUtils.sol

Recommendation

We recommend implementing the missing validateAndCapExecutionFee function with proper maximum execution fee validation logic that caps execution fees using a configurable multiplier factor applied to the gas limit and base fee, and adding the MAX_EXECUTION_FEE_MULTIPLIER_FACTOR configuration parameter with appropriate validation ranges to prevent execution fee abuse attacks.

Relaxed funding rate validation enables excessive market manipulation through funding parameters

Resolved
arrow-right
Description

In contracts/config/Config.sol:656-662, the _validateRange function groups FUNDING_INCREASE_FACTOR_PER_SECOND and
FUNDING_DECREASE_FACTOR_PER_SECOND with other parameters under a single validation check that limits values to 1% of FLOAT_PRECISION (1 × 10^28). However, GMX V2 implements specific granular validation for these parameters with MAX_ALLOWED_FUNDING_INCREASE_FACTOR_PER_SECOND (approximately 2.777 × 10^19) and MAX_ALLOWED_FUNDING_DECREASE_FACTOR_PER_SECOND (approximately 1.157 × 10^18), representing 360,000-fold and 8.64 million-fold stricter limits, respectively.
However, these funding rate adjustment parameters directly control market stability by determining how quickly funding rates change in response to position imbalances. GMX V2's conservative limits ensure that funding rates reach maximum levels over approximately 1 hour and return to zero within 24 hours, providing a predictable progression of funding costs for traders.
Consequently, the relaxed validation allows configuration of extreme funding rate adjustment speeds that could destabilise market operations. Malicious configuration could cause funding rates to spike to maximum levels within seconds rather than hours, creating unpredictable funding costs that exceed position values and force immediate liquidations regardless of market conditions.

Contract

contracts/config/Config.sol

Recommendation

We recommend implementing separate validation blocks for FUNDING_INCREASE_FACTOR_PER_SECOND and FUNDING_DECREASE_FACTOR_PER_SECOND, with conservative upper bounds similar to those in GMX V2. Specifically, this involves limiting the increase factor to prevent funding rates from reaching maximum levels in under one hour and limiting the decrease factor to ensure a gradual return to equilibrium.

Low Severity Issues

Appendix

Disclaimer

Quantara

Quantara

High Severity Issues
Low Severity Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC