IPOR Protocol
  • The IPOR Protocol Documentation
  • IPOR Protocol V2
  • Research / Whitepapers
    • Conceptual Whitepaper
  • Audits
  • Community Links
  • IPOR Protocol Roadmap
  • IPOR FAQ
    • About the IPOR Protocol
    • Using the IPOR Protocol
    • Liquidity Mining
    • Swaps VS Perps
    • $FUSN Snapshot
  • About IPOR
    • Who Uses IPOR and for What?
    • Why IPOR?
    • IPOR Manifesto
  • IPOR Fusion ⚛️
    • Fusion Introduction
      • Defragmenting DeFi Yield
    • Why Fusion?
    • Users
    • Use Cases
    • Architecture Overview
      • Atomists
      • Alphas
    • Vaults
      • Access Management
    • Fuses
    • Security
      • For Liquidity Providers
      • For Vault Owners
      • Testing
    • Open-source Repository
    • Aragon Integration
  • IPOR Index
    • What is the IPOR Index
    • Working with the IPOR Index
    • IPOR stETH Index
  • Interest Rate Derivatives
    • Interest Rate Derivative
    • Index Calculation
    • IPOR Publication
    • IBT
    • Indicative Term Sheet
  • Automated Market Maker
    • The Automated Market Maker
    • Liquidity Provisioning
    • IPOR Swaps
      • Hedging example with Morpho protocol
    • Spread
      • Math behind the demand spread
    • Risk oracle
    • SOAP
    • Liquidations
    • Asset Management
  • Tokenomics
    • IPOR Token
    • Token distribution model
    • Power IPOR
    • Liquidity mining
      • Math behind the rewards contract
    • Power Token Liquidity Mining for Developers
  • IPOR DAO
    • IPOR DAO Governance
      • Discord - All Channels
      • Discord - Open Governance Forum
      • Discord - Formal Governance
      • Snapshot - Formal Governance
      • Governing Multisig wallets
    • Decentralizing IPOR
      • Configuration Parameters
  • Developers Docs
    • Fusion
      • Developing а Fuse
      • Configuring Pre-hooks
    • Deployed Contracts
      • Ethereum
      • Arbitrum
      • Base
    • Working with IPOR Router
    • ABI
    • V2 changes
    • IPOR Oracle
    • Vault Wrapper
Powered by GitBook
On this page
  • On Morpho
  • On IPOR

Was this helpful?

Edit on GitHub
  1. Automated Market Maker
  2. IPOR Swaps

Hedging example with Morpho protocol

Below is an illustrative example of how to create a simple fixed rate borrow using the Morpho and IPOR protocols

PreviousIPOR SwapsNextSpread

Last updated 2 years ago

Was this helpful?

is a lending protocol that allows borrowers and lenders to optimize their rates on AAVE and Compound. In other words, when matched, borrowers and lenders can meet halfway between the borrow and lend rates on the base protocol and match at a de-facto mid-market rate. Therefore IPOR Interest Rate Swaps, will tend to be a close hedge when using Morpho to deposit or borrow money from either AAVE or Compound. For this example we will use a borrow on Morpho, and a Pay Fixed swap on IPOR. The effective result will be a borrow rate which is fixed (or stable). In the case that the rate rises on Morpho, and therefore the cost, the derivative will be profitable and the winnings from the derivative would be able to pay the extra cost of credit. In the case the rate falls, the debt cost would be less but the derivative would be losing. In the end by using this strategy a user would be able to maintain an approximation of a fixed rate borrow with minimal basis risk.

In order to borrow stablecoins from AAVE or Compound via Morpho and hedge the interest rate with IPOR effectively fixing the rate, you would need to:

On Morpho

  1. Go to Morpho's app and select the platform from which you want to borrow

    1. Morpho-compound

    2. Morpho-aave

  2. Provide collateral (you will be able to borrow against it)

    1. select supported collateral

    2. make a transfer via Morpho

  3. Head to "Borrow market" and borrow one of the supported IPOR stablecoins: USDT, USDC, or DAI. The amount you have borrowed should match "notional" amount on IPOR.

On IPOR

  1. Head to IPOR swaps and select the same stable coin you have borrowed on Morpho

  2. Click on "Open swap" for currency you have borrowed

  3. Choose Pay Fixed - Receive Floating (this type of swap is used to hedge borrow positions)

  4. Set your preferred leverage

  5. Set notional to be the same as the amount you have borrowed

  6. Open swap. Remember that the Maturity of a swap is 28 days. Your hedge is good for this long. If you close your borrow position before the 28 days maturity of your swap, you can also close the swap on the IPOR Protocol.

Morpho
https://compound.morpho.xyz/?network=mainnet
https://aave.morpho.xyz/?network=mainnet