Earn yield on-chain
One modal, real yield across every provider you enable.
Earn lets your users put idle balances to work: deposit into a DeFindex vault or a Blend pool and earn on-chain yield. Pollar lists every enabled provider with its live APY and renders the whole deposit → withdraw flow inside a single modal.
The providers on offer are decided in your dashboard (Treasury → Earn) and intersected with server capability — Blend needs a pool address, DeFindex needs an API key. The SDK reads that selection at runtime via getEarnProviders() (the SDK_EARN_PROVIDERS response), so turning a provider on or off is a dashboard toggle. An empty list hides the Earn UI entirely.
Under the hood the flow is getEarnOpportunities → getEarnPosition → earnDeposit / earnWithdraw, all through @pollar/core. See the Implementation tab for the live demo and the exact calls.
Providers & status
DeFindex — live
Automated yield vaults. Deposit an asset, receive shares; withdraw amounts are in shares. Built via the DeFindex API.
Blend — live
Lending pools. Deposit and withdraw in the underlying asset; the XDR is built contract-direct.
Configured in your dashboard
Enable providers under Treasury → Earn; the SDK reads getEarnProviders() at runtime, with no code change.
One modal, core or React
openEarnModal() renders the whole opportunity → deposit / withdraw flow; or drive it yourself with @pollar/core.
Resources
Provider availability depends on your dashboard configuration and platform capability. DeFindex and Blend are third parties — all credit to their teams.