Security & Audits
Security Reviews
In March 2026 Varla's smart contracts went through four AI-assisted security reviews, each using a different analysis method. The team triaged every finding and recorded a response for each one. Fixes were merged together with regression tests.
| Review | Method | Scope | Date |
|---|---|---|---|
| Pashov AI | Multi-pass contract review, with a proof-of-concept test written for each finding | Core, oracle, signed price router, liquidators, staking; full protocol in the final pass | 4 and 21 March 2026 |
| Nemesis | State-coupling analysis: maps every pair of linked state variables and traces every path that updates them | Core, pool, oracle, liquidator, staking, interest rate model, math libraries | 8 March 2026 |
| Plamen | Full-protocol review on a compiled build, including cross-contract attack-chain analysis | All contracts, including upgradeable versions, governance and staking | 19 March 2026 |
What Was Verified
- Debt accounting: user debt, total debt and pool borrows stay consistent across borrow, repay, liquidation and bad-debt handling.
- Lender pool: share price, reserve and withdrawal limits. Withdrawal limits now account for pending reserve fees, and utilization uses the same formula as the interest rate model.
- Oracle: price staleness, finalized market prices, low-liquidity LTV decay and multi-outcome market mappings, with fixes merged for each issue identified.
- Liquidations: bonus, fee and collateral seizure sizing, including multi-position and bad-debt paths.
- Access control: every privileged function is mapped to a dedicated role.
Testing
As of 14 October 2026, the full test suite passes: 1,608 tests, 0 failures. It includes:
- unit tests for each contract;
- fuzz tests;
- 44 invariant tests, each run against 128,000 randomized calls. Among the properties checked: debt is always conserved, unauthorized calls never succeed, and liquidator contracts never retain funds.
⚠Audited — use at your own risk
Varla contracts have undergone multiple independent security reviews. Audits reduce but do not eliminate risk. Do not deposit more than you can afford to lose.
Security Practices
Smart contract design
Explicit reentrancy guards on all state-mutating entry points, conservative math (rounding against the protocol in favor of lenders/protocol reserve), and ReentrancyGuard on every external-facing function. Upgradeable variants use OpenZeppelin's Initializable pattern with storage gaps.
Oracle security
Conservative pricing (min of spot and TWAP), configurable staleness checks, liquidity thresholds with per-tier low-liquidity LTV decay, stale-recovery grace periods, and an EIP-712 OracleUpdaterRouter for parallel nonce lanes — removing the single-EOA bottleneck.
Access control
All privileged functions use OpenZeppelin AccessManager with role-based access control (RBAC). Roles include ADMIN, RISK_MANAGER, ORACLE_UPDATER, and LIQUIDATOR — each scoped to specific function selectors. Governance (Governor + Timelock) is planned as the long-term admin layer above RBAC.
Emergency procedures
The protocol includes VarlaProxyAdmin with a pause capability for proxy-deployed contracts. Pausing stops borrowing and liquidation but does not affect lender withdrawals. Manual position invalidation in VarlaOracle provides a per-position kill switch.
Bug Bounty
ℹComing soon
A formal bug bounty program with tiered rewards is being finalized. In the meantime, please report any security issues directly.
How to Report
Email: security@varla.xyz
1
Describe the issue
Include a clear description, steps to reproduce, and potential impact assessment.
2
Do not exploit on mainnet
Please do not exploit any vulnerabilities on mainnet or publicly disclose before we've had time to respond.
3
Give us time to respond
We aim for initial acknowledgment within 48 hours.
Scope (Preview)
| In Scope | Out of Scope |
|---|---|
| VarlaCore | Test/mock contracts |
| VarlaPool | Third-party dependencies |
| VarlaOracle | Frontend/UI issues |
| VarlaLiquidator | Already known issues |
| VarlaMergeLiquidator | Theoretical attacks without proof |
| VarlaConvertLiquidator | |
| VarlaInterestRateStrategy | |
| OracleUpdaterRouter | |
| VarlaAccessManager | |
| VarlaProxyAdmin | |
| Market adapters |
Severity Levels (Preview)
| Severity | Description | Reward |
|---|---|---|
| Critical | Direct loss of user funds | TBD |
| High | Significant risk to funds or protocol operation | TBD |
| Medium | Limited risk; requires specific conditions | TBD |
| Low | Minor issues; no direct fund risk | TBD |