Smart Contracts
ℹ License
All Varla contracts are licensed under BUSL-1.1 and target Solidity ^0.8.33.
Architecture
Contract architecture
VarlaPool (ERC-4626) ←→ VarlaInterestRateStrategy
↕
VarlaCore (ERC1155Holder) ←→ VarlaOracle ←→ OracleUpdaterRouter
↕
VarlaLiquidator ←→ Liquidator variants
↕ (VarlaMergeLiquidator, VarlaConvertLiquidator)
Market Adapters
├─ PolymarketCtfAdapter
├─ PolymarketNegRiskMergeAdapter
└─ OpinionCtfExecutionEngineAdapter
Access: VarlaAccessManager + VarlaRoles
Governance: VarlaGovernor + VarlaTimelock
Token: VRLA + VarlaStaking + VarlaVestingWallet Core Contracts
| Contract | Role |
|---|---|
| VarlaCore | Central borrowing engine — deposit/withdraw ERC1155 collateral, borrow/repay, health factor checks, position management |
| VarlaPool | ERC-4626 vault — lender deposits, share accounting, interest accrual, fee collection |
| VarlaOracle | Push-based oracle — packed price storage, staleness checks, grace windows |
| VarlaInterestRateStrategy | Kinked interest rate model — configurable optimal utilization, two-slope curve |
| VarlaLiquidator | Liquidation router — delegates to merge or convert liquidator variants |
All Contract Pages
VarlaCore
Borrowing engine, collateral escrow, health factor checks.
VarlaPool
ERC-4626 lending vault with interest accrual.
VarlaOracle
Push-based oracle with packed price storage.
Interest Rate Strategy
Kinked rate model with configurable slopes.
Liquidators
Liquidation router with merge and convert variants.
Market Adapters
Polymarket and Opinion prediction market integrations.
Access Control
RBAC via VarlaAccessManager and VarlaRoles.
Governance
VarlaGovernor and VarlaTimelock for on-chain governance.