Kriya Docs
  • Overview
    • What is Kriya?
      • Kriya Suite : HLD
    • Why Sui?
    • FAQs
    • Legal Disclaimer
  • Get funds on SUI
    • Bridge
    • Withdraw from CEX (Cede Store)
    • Buy SUI with Fiat (Transak)
    • P2P escrow from Eth (Heroswap)
  • Kriya x Sui Wallet Campaign
  • Migrating liquidity to v3
  • Kriya Swap
    • Swap Tutorial
      • Trade
        • Market Order
        • Limit Order
        • Dollar Cost Averaging (Coming Soon)
      • Provide Liquidity
    • Swap Architecture
      • Router Mechanism
      • Supported Pool Types
    • Swap Fee Structure
  • Kriya Strategy Vaults
    • Leverage Lending Vaults
      • Concept - Leverage Lending
      • Vault Tutorial
    • CLMM LP Optimizer Vaults
      • Vault Strategy - Auto Rebalancing and Compounding
      • Vault Tutorial
    • Deepbook MM Vaults (Coming Soon)
    • KLP Vaults (Coming Soon)
    • 1-click Automation Strats (Deprecated)
      • Concept - Leverage Lending
      • Strat Tutorial
  • Kriya Degen Corner
    • Sui Sniffer
    • No Code Token Launch on Sui
      • Tutorial to launch a coin
    • Airdrop to Sui Communities
  • Kriya Perpetuals
    • Perpetual Tutorial
      • Place Trade
      • Understanding Open Orders
      • Understanding Open Positions
    • How to get Early Access
    • Protocol Configs and Fees
      • Trading Limits
      • Listed Markets
      • Maker / Taker Fee
    • Perpetual Architecture
      • Margining and Liquidation
        • Custom Mark Price Oracle
      • Matching and Settlement
        • Order Types
        • Orderbook Tech Design
      • Funding Rate
      • Insurance Fund
    • Market Maker Program
  • Kriya OTC (Coming Soon)
    • Introduction and Use Case
    • User Guide
      • Creating an RFQ
        • Option RFQ example
      • Escrow Assets for RFQ
      • Respond to RFQ
      • Settlement
    • Protocol Architecture
      • Privacy
      • On-chain negotiation
    • MMs Get Access
  • Reward Programs
    • Suinami LP Campaign
    • Chakra Season 1 🧘‍♂️
    • Chakra Season 2 🧘‍♀️
    • Chakra Season 3 (Coming Soon)
    • Partner Campaigns
    • Galxe and Zealy
    • DoubleUp
    • Referral Program (Coming Soon)
    • Sui Overflow Hackathon
  • For Developers
    • Smart Contracts
    • Kriya Swap SDK
    • Kriya Perps
      • Run your own MM Bot
      • Run your own Liquidator Bot
      • Public Functions for Liveness
  • About
    • Audit Reports
    • Socials and Community
      • Discord
      • Blog
      • Twitter
    • Brand Assets
    • Careers
Powered by GitBook
On this page
  1. Kriya Strategy Vaults
  2. 1-click Automation Strats (Deprecated)

Concept - Leverage Lending

Understanding Leveraged Yield Farming with Kriya

Previous1-click Automation Strats (Deprecated)NextStrat Tutorial

Last updated 1 year ago

Leveraged Yield Farming is a strategy that optimizes your asset utilization by increasing your leverage in lending protocols. Here's a simplified explanation of how it works:

  1. Leverage Basics: Suppose you have 100 SUI and deposit it in a lending protocol with a 75% Loan-to-Value (LTV) ratio. You can borrow 75 SUI, making your account leverage 1.75x (175 SUI supplied / (175 SUI - 75 SUI borrowed)).

  2. Iterative Borrowing: You can continue depositing borrowed SUI to increase your leverage. For example, if you borrow another 75 SUI and deposit it, your total supplied becomes 225 SUI, borrowed is 150 SUI, and leverage increases to 3x. This allows you to earn yield on a larger balance.

  3. Leverage Limitations: However, you cannot increase leverage indefinitely as the account approaches a liquidation threshold, typically around 5x leverage in the SUI pool.

At Kriya, instead of actually lending and borrowing multiple times, we utilise flashloans to build the leveraged position more efficiently. Here's a glimpse of the interface:

Here’s how it works:

  • Implementing Leveraged Yield Farming with Flash Loans: Instead of manually lending and borrowing, Kriya employs flash loans to build a leveraged position efficiently. Here's how it works:

Initial State
supplied_i = 0 SUI
borrowed_i = 0 SUI

Initial Deposit (principle_capital) = 100 SUI
target_leverage = 2.5x

We can calculate end state of the account basis these 2 equations:
supplied - borrowed = principle_capital
supplied / (supplied - borrowed) = target_leverage

End State
supplied_t = 250
borrowed_t = 150
  • Take a flash loan worth (supplied_t - principle_capital), i.e., 150 SUI from Scallop.

  • Supply 250 SUI on Navi and borrow 150 SUI.

  • Return the 150 SUI flash loan to Scallop at the end of the transaction.

By using this strategy, you can earn yield on a larger balance while maintaining a manageable level of risk. Kriya simplifies this process, making it accessible to users who want to optimize their asset utilization and maximize returns.