Skip to main content
Use the SDK. It provides chain-aware deployed addresses, ABIs, and high-level view helpers. Recommended import style:
import * as views from "@varla/sdk/views";
import * as actions from "@varla/sdk/actions";
import { addresses } from "@varla/sdk/addresses";

What you typically build

Most integrations boil down to reads (pool rates, user collateral/debt, health factor) and writes (deposit, borrow, repay, withdraw).

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. Start here: Start with SDK quickstart, then Read helpers and Write helpers. For deployment details, see Contracts and Addresses & chains.