Smart Contracts
On-Chain Mental Model
VarlaCore holds borrower collateral (ERC1155) and tracks scaled debt. VarlaPool is an ERC4626 vault holding lender funds and tracking the global borrow index. VarlaOracle provides prices and risk-tier metadata. Liquidations are executed by mode contracts authorized via AccessManager RBAC.
Key Contracts
| Contract | Purpose |
|---|---|
| VarlaCore | Borrower collateral custody, debt tracking, deposit/withdraw/borrow/repay |
| VarlaPool | ERC4626 lender vault, interest accrual, reserve management |
| VarlaOracle | Price feeds, risk tiers, staleness checks, early-closure config |
| VarlaLiquidator | Permissionless liquidation execution |
| VarlaAccessManager | RBAC role management for protocol operations |
| VarlaInterestRateStrategy | Kinked utilization-based rate model |
Reading Addresses from the SDK
Get contract addresses ts
import { addresses } from "@varla/sdk/addresses";
const polygon = addresses.polygon;
const bsc = addresses.bsc;
console.log(polygon.VarlaCore, bsc.VarlaCore); ℹ Verified on explorers
All deployed contracts are verified on PolygonScan and BscScan. See the Contracts page for full addresses with explorer links.