📑
DeFi Saver Knowledge Base
  • Welcome to DeFi Saver Knowledge Base
  • General
    • What is DeFi Saver?
      • Boost & Repay
      • Smart Contracts
      • DeFi Saver and security
      • Liquidity Sources of DeFi Saver
      • DeFi Saver Fees
    • Smart Wallets
      • Can I access DFS created positions using other apps?
      • Why did we switch to Safe?
      • Connecting your DSProxy to third-party dApps
      • Connecting your Safe wallet to third party apps
      • Difference between single ownership (1 / 1) Safes and Multisigs
      • I opened a position outside of DeFi Saver - Can I manage it on DFS?
    • Wallet Compatibility
      • What features do EOA wallets have access to?
      • Migrating your position from Summer.Fi to DeFi Saver
        • List of apps that users can migrate to DeFi Saver from
    • Troubleshooting common issues
      • Error: "An issue was detected with this transaction that would cause it to fail" - what to do
      • How can I withdraw tokens from my Smart Wallet?
      • My MetaMask account is failing to load - what should I do?
      • My transaction is pending / not going through - what should I do?
      • I cannot make any transactions using DeFi Saver after using Furucombo?
      • Avoiding MEV with your transactions
      • Issues caused by in-browser translators
      • Viewing your borrow position from any point in the past
      • I'm unsure of the Net APY numbers on DeFi Saver
      • I can't see the liquidation price for my position
  • Features
    • ETH Saver
      • How does ETH Saver work?
      • Profit tracking & how does it work
      • Positions in ETH Saver
      • Are there fees?
        • Are there any costs that are not immediately noticeable?
    • Automation
      • Automation strategies
      • Requirements for using Automation
      • Automation Fees
      • How does Automation work?
      • When are Automation transactions made?
      • Are there risks when using Automation?
    • Recipe Creator
      • What are Flash Loans?
      • Is Recipe Creator safe to use?
      • Pre-made recipes / Recipe Book
      • How can I reuse output of previous functions?
    • Loan Shifter
      • Collateral Swaps
      • Debt Swaps
    • Notify
      • Notification Monitors
      • How do I set up Notify?
    • Simulation Mode
    • Smart Savings
      • Overview of Yearn
      • Overview of Convex
      • Overview of mStable
      • Why is a smart wallet needed for using Smart Savings?
      • How to start lending funds and earning interest using Smart Savings?
      • Managing existing portfolios using Smart Savings
      • The difference between APR and APY
      • Are there any security risks?
    • Bridge
    • Exchange
      • What are Limit Orders?
      • What is DCA?
    • Discover
    • Quick Access Bar
    • Trending Zaps
      • Ethena Liquid Leverage
      • Long or Short ETH / BTC
      • Swap and Stake GHO / USDS
  • Protocols
    • Aave
      • Aave Dashboard
      • Aave versions comparison
      • How does Aave Automation work?
      • Can I manage my existing Aave lending/borrowing portfolio using the Aave dashboard?
      • What are Flash Loans?
      • How can I long or short assets using Aave?
      • Staking Aave tokens
      • How can I tell how much interest I will earn or have already earned using Aave?
      • How can I swap my collateral or debt in Aave?
      • Migrating your Aave position(s)
      • Pendle Principal Tokens (PTs) on Aave
        • Pendle PT Rollover
        • Unwinding Pendle positions with expired Principal Tokens
          • What's the best timing for unwinding my leveraged Pendle position?
        • How is the Net APY calculated for Pendle PT positions?
      • Ethena Liquid Leveraging on Aave in one transaction
        • Claiming Merkl rewards for Liquid Leverage
        • How to unwind a Liquid Leverage position
        • How do I add more collateral to my Liquid Leverage position while maintaining a 50/50 split?
      • Aave v4
    • CurveUSD
      • What is LLAMMA in CurveUSD?
      • How do you create a loan in CurveUSD protocol?
      • Does CurveUSD charge any fees?
      • Is there a standard (hard) liquidation in CurveUSD?
      • What are bands in CurveUSD?
      • Why do I need a Smart wallet for CurveUSD?
    • Compound
      • Compound Dashboard
      • Can I manage my existing Compound lending/borrowing portfolio using the Compound dashboard in DeFi S
      • How to earn and withdraw COMP tokens
      • How can I tell how much interest I will earn or have already earned using Compound?
    • Fluid
      • Intro to Fluid
      • Liquidity Layer
      • Lend Protocol
      • Vault Protocol
      • DEX Protocol
      • DeFi Saver-supported Features
    • Liquity
      • Liquity Dashboard walkthrough
      • What is a Trove?
      • Liquity Redemptions
      • How to stay protected from redemption risk in Liquity
      • How do Liquidations work in Liquity?
      • What are the key benefits of Liquity?
      • Does Liquity charge any fees?
      • What is a Stability Pool?
      • What is the "Debt-in-Front" value in Liquity?
      • How can I earn LQTY tokens?
      • Why do I need a Smart wallet for Liquity?
    • Liquity V2
      • Intro to BOLD
      • Borrowing Rates and Redemptions
      • Collateral Ratios
      • Troves as NFTs
      • Revenue Distribution and Forkanomics
      • LQTY Staking
      • DeFi Saver-supported Features
    • Chicken Bonds
    • MakerDAO
      • Managing the Dashboard
      • Automation options for MakerDAO
      • What is a CDP and why should I be interested in opening one?
      • How do Boost & Repay work?
      • How does CDP Automation work?
      • Can I transfer my MakerDAO Vault to a different address?
      • Can I manage MakerDAO Vaults created using other apps at DeFi Saver?
    • Morpho Blue
    • Reflexer
      • Reflexer Dashboard walkthrough
      • How can I start borrowing or leveraging using Reflexer?
      • What makes Reflexer unique?
    • Spark
      • Spark Dashboard walkthrough
      • What is sDAI?
      • Liquidations in Spark
      • Claiming SPK tokens on DeFi Saver
      • How do I claim and stake my SPK if I own a DSProxy?
  • Legal
    • Terms and Conditions
Powered by GitBook
On this page
Page cover
  1. Features

Loan Shifter

PreviousHow can I reuse output of previous functions?NextCollateral Swaps

Last updated 6 days ago

CtrlK

Loan Shifter is a tool for one-click migration of CDPs (collateralized-debt positions) from one DeFi lending protocol to another, and/or simply doing collateral swaps or debt swaps (within the same protocol), all in one transaction.

The dashboard provides an overview of the loan shift including before and after values for relevant loan parameters, alongside the additional information (FL & service fees, price impact, etc.).

Note: Shifting both collateral and debt assets at the same time is not possible.

Users with an Aave position are also able to switch their collateral or debt asset directly through the Aave interface:

Show me how:

The first step would be navigating to the Aave dashboard, where you'll access your borrow position.

Once there, clicking the "Tools" icon will show a dropdown menu where you'll find:

  • Collateral Switch

  • Debt Switch

Clicking on one of these options will open a pop-up window:

In the pop-up, you'll be able to:

  • Choose which collateral asset you want to switch (if you have multiple in your position)

  • Input how much of your collateral you want to switch

  • Choose which collateral asset you want to switch to

  • See your position's new metrics after the switch

  • Set your exchange route

  • Set your slippage limit

Once everything checks out, simply click "Switch", sign the transaction, and you're good to go.

Choosing the "Debt Switch" option opens a very similar pop-up, with the only difference being that you're choosing which debt asset to switch into, and how much:

Once the Loan Shift is successful, the confirmation pop-up might seem confusing as it will show that the new debt asset was sold for the original debt asset. For example, if you're switching from DAI to USDC, the confirmation pop-up will show the following:

While this might seem incorrect - since you're moving from DAI to USDC, it's actually correct, if we consider how the debt shift works:

  • The new debt asset is flash loaned (USDC)

  • It's sold off for the original debt asset in order to repay the original debt (DAI)

  • The freed up collateral is now moved into the new position

  • The new debt asset is borrowed (USDC) and used to pay back the flash loan (USDC)

As such, the only swap happening in the transaction is selling the new, flash loaned debt asset (USDC) for the original debt asset (DAI).