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

Open Positions

How to deposit prediction market positions as collateral into VarlaCore and create a borrowing account.

How It Works

When you deposit ERC-1155 prediction market positions into VarlaCore, an account is implicitly created for your wallet address. There's no separate "create account" step — your first deposit opens your account.

1

Approve VarlaCore (one-time)

Call setApprovalForAll(varlaCore, true) on the prediction market's ERC-1155 contract. This allows VarlaCore to transfer your positions.
2

Deposit positions

Call deposit(tokenId, amount) on VarlaCore. Your ERC-1155 positions are transferred to the contract's escrow. Multiple positions can be deposited into the same account.
3

Oracle prices your collateral

VarlaOracle evaluates each deposited position using min(spot, TWAP) pricing and assigns the appropriate risk tier LTV.
4

Borrow capacity available

Once deposited, you can borrow stablecoins up to your weighted LTV limit. Your health factor starts at infinity (no debt yet).
ℹ Cross-margin by default
All positions you deposit go into the same account. Your health factor reflects your entire portfolio, not individual positions.

What Gets Deposited

Varla accepts ERC-1155 tokens from supported prediction market platforms. Each position is identified by a unique tokenId that corresponds to a specific market outcome (e.g., "YES" on a specific event).

Supported position types
Polymarket (Polygon):
├── CTF (Conditional Token Framework) positions
└── NegRisk wrapped positions

Opinion (BSC):
└── CTF Execution Engine positions
⚠ Not all positions are eligible
The oracle must have an active price feed for the position's market. Markets that are too illiquid, too close to resolution, or not yet onboarded will be rejected.

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