Loopr
Public SDK for Odyssey Loopr leveraged strategies.
The Loopr SDK enables apps to integrate leveraged yield strategies directly into their frontend without rebuilding the underlying execution infrastructure. It provides a high level interface for discovering strategies, managing positions, preparing transactions, and executing complex DeFi flows through a simplified experience.
Loopr abstracts the complexity involved in leveraged strategy execution, including lending interactions, leverage loops, swaps, transaction sequencing, and smart contract account handling. Integrators can support advanced DeFi functionality while continuing to use a standard EOA wallet flow, without requiring users to manually deploy or manage smart contract accounts.
A typical Loopr integration consists of three primary components:
Strategy Discovery
Retrieve and display available leveraged strategies, including metadata such as:
Supported assets
Estimated APY and net APY
Leverage limits
Risk and health metrics
Available liquidity
Supported protocols and chains
This enables users to browse and evaluate yield opportunities directly from your application.
Position Management
Enable users to create and manage leveraged positions throughout their lifecycle. The SDK supports:
Opening leveraged positions
Monitoring active positions
Adding or removing collateral
Borrowing and repaying debt
Adjusting leverage exposure
Deleveraging and closing positions
Transaction Preparation and Execution
The SDK builds and executes the transaction flow required for Loopr operations. Rather than manually orchestrating approvals, account setup, leverage loops, and execution calls, developers interact with a unified interface that:
Generates unsigned transaction steps
Handles approvals when required
Deploys user smart contract accounts automatically when needed
Supports transaction simulation
Executes ordered transaction sequences through the user's wallet
For full documentation, please see https://www.npmjs.com/package/@odysseyfi/loopr-sdk
Last updated
