Varla
OverviewWhat it is and why it matters.How It WorksLending against prediction markets, step by step.FeaturesLending, borrowing, leverage, and risk management.Supported MarketsPolymarket, Opinion, Kalshi, and more.
DocumentationProtocol docs, guides, and architecture.Smart ContractsPool, Collateral Manager, Oracle, Liquidation Engine.SDK ReferenceTypeScript SDK for protocol interactions.API ReferenceREST and GraphQL endpoints for market data.
BlogLatest news and announcements from Varla.FAQsFrequently asked questions about the protocol.Security & AuditsProtocol security, audits, and trust assumptions.Brand AssetsLogos, colors, and typography guidelines.
Sign up
Varla
Protocol
Overview What it is and why it matters.
How It Works Lending against prediction markets, step by step.
Features Lending, borrowing, leverage, and risk management.
Supported Markets Polymarket, Opinion, Kalshi, and more.
Developers
Documentation Protocol docs, guides, and architecture.
Smart Contracts Pool, Collateral Manager, Oracle, Liquidation Engine.
SDK Reference TypeScript SDK for protocol interactions.
API Reference REST and GraphQL endpoints for market data.
Resources
Blog Latest news and announcements from Varla.
FAQs Frequently asked questions about the protocol.
Security & Audits Protocol security, audits, and trust assumptions.
Brand Assets Logos, colors, and typography guidelines.
Sign up

Introduction

Overview
Varla 101

Protocol

Overview
Lending Model
Supply & Borrow Interest Rates Reserves
User Positions
Open Positions Supply Assets Borrow Assets Withdraw Assets Repay Loans
Risk Engine
Health Factor LTV & Thresholds Liquidations Market Resolution Oracle System

Markets

Overview
Polymarket
Opinion
Kalshi
Adapters

Token

Overview
Distribution
Utility & Governance
Varla Gems

Security

Overview
Trust Assumptions
Risk Disclosure
Risk Parameters

Resources

FAQ
Glossary
Links
Brand Assets

Getting Started

Overview
TypeScript SDK
GraphQL API
Smart Contracts

Smart Contracts

Overview
Core Protocol
VarlaPool VarlaOracle Interest Rate Liquidators Market Adapters
Governance & Access
Governance

References

SDK Reference
API Reference

Operations

Testing & Debugging
Contract Addresses

Security

Overview
Trust Assumptions
Risk Disclosure
Risk Parameters

Supply & Borrow

How the supply and borrow mechanics work under the hood — from ERC-4626 vault shares to scaled debt tracking.

Supply Flow (Lenders)

1

Approve stablecoin

One-time USDC (Polygon) or USDT (BSC) approval to the VarlaPool contract.
2

Call deposit()

Deposit stablecoins into the ERC-4626 vault. You receive vault shares proportional to your deposit relative to total pool assets.
3

Earn yield

As borrowers pay interest, the vault's total assets grow. Your shares represent a growing claim on the pool — no staking or claiming needed.
4

Withdraw anytime

Call withdraw() or redeem() to convert shares back to stablecoins. Subject to available liquidity.
ℹ ERC-4626 standard
VarlaPool implements the ERC-4626 tokenized vault standard. Shares are transferable ERC-20 tokens — you can hold, transfer, or integrate them into other protocols.

Borrow Flow (Borrowers)

1

Approve ERC-1155 positions

One-time setApprovalForAll to allow VarlaCore to transfer your prediction market positions.
2

Deposit collateral

Transfer ERC-1155 PM positions into VarlaCore. Multiple positions can be deposited into one account (cross-margin).
3

Call borrow()

Borrow stablecoins up to your weighted LTV limit. The oracle prices each position and applies the appropriate risk tier LTV.
4

Interest accrues

Debt grows per-second via a global borrow index. No manual compounding — the index tracks cumulative interest automatically.

Scaled Debt Tracking

Varla uses a global borrow index to track interest efficiently. Instead of updating every borrower's balance, the protocol stores a "scaled" debt amount and multiplies by the current index to get the actual debt.

Debt calculation
actualDebt = scaledDebt × borrowIndex

// When you borrow $1,000 at index 1.05:
scaledDebt = 1000 / 1.05 = 952.38

// Later when index reaches 1.10:
actualDebt = 952.38 × 1.10 = $1,047.62
// You owe $47.62 in interest

Collateral Valuation

Each deposited position is valued using the conservative oracle price — min(spot, TWAP) — then multiplied by the position's risk-tier LTV to determine borrowing capacity.

Borrow capacity
maxBorrow = Σ (positionValue × tierLTV)

Example:
├── Position A: $5,000 × 80% = $4,000
├── Position B: $3,000 × 65% = $1,950
└── Position C: $2,000 × 50% = $1,000
────────────────────────────────────────
Total max borrow:              $6,950

Key Parameters

ParameterValueNotes
Min depositNo minimumGas cost is the practical floor
Max borrowWeighted LTV limitPer-account, cross-margin
Interest modelKinked curveSee Interest Rates
Reserve factor10%Of borrower interest
Vault standardERC-4626Fully composable

Menu

  • Overview
  • How it works
  • Features
  • Documentations
  • FAQs

Ecosystem

  • Prediction markets
  • Builders
  • Integrations
  • Governance

Company

  • About
  • Terms
  • Privacy
  • Support

©2026 Varla Labs Inc. All rights reserved