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

Oracle Contract

VarlaOracle — the on-chain component that provides manipulation-resistant pricing for prediction market collateral.

Key Functions

FunctionDescriptionAccess
getPrice(tokenId)Returns min(spot, TWAP) for a positionView
isFresh(tokenId)Whether the price is within staleness windowView
getRiskTier(tokenId)Returns the position's risk tier (Conservative/Moderate/Risk)View
getLTV(tokenId)Returns effective LTV including early-closure decayView
updatePrice(tokenId, spot, twap)Update price from authorized feedOracle Keeper
setAdapter(platform, adapter)Register a new market adapterGovernance

Price Pipeline

Oracle pipeline
Off-chain Oracle Keeper
├── Fetches spot price from PM orderbook
├── Computes TWAP from trade history
├── Signs price update
└── Submits to VarlaOracle contract

On-chain VarlaOracle
├── Verifies keeper signature
├── Stores spot + TWAP + timestamp
├── getPrice() returns min(spot, TWAP)
└── isFresh() checks timestamp < maxStaleness
ℹ Keeper network
Oracle keepers are authorized off-chain agents that submit price updates. Multiple keepers provide redundancy — any authorized keeper can update prices. See Oracle System for full architecture details.

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