Element Protocol Docs
GovernanceCommunityXForum
  • Element Protocol Documentation Portal
  • Getting Started
    • Buying Fixed Rate Assets
    • Earning Variable Rates
    • Providing Liquidity
    • FAQ
    • Glossary
  • Element Protocol
    • Concepts Overview
    • Principal Tokens
      • Use Cases
    • Yield Tokens
      • Use Cases
    • Market Forces
    • Providing Liquidity
    • Element Protocol Smart Contracts
      • Core Protocol Contracts
        • Wrapped Position
        • Tranche
        • Tranche Factory
        • Interest Token
        • User Proxy
      • Integration Contracts
        • Yearn Vault Asset Proxy
      • Custom Balancer Curve
        • Convergent Curve Pool
        • Convergent Curve Pool Factory
  • Developers
    • Public Release Changelog
    • Elf SDK
    • Deployment Guide
    • Security
      • Oracles
    • Github
  • Governance (Council)
    • Council Protocol Overview
      • Voting Vaults and Delegation
      • Governance Steering Council (GSC)
    • Council Protocol Interface
      • Overview
      • Proposals
        • Guide: Voting on a Proposal
      • Delegate
        • Guide: Delegating Voting Power
          • DAO (Social) Proposal Template
          • Protocol (Executable) Proposal Template
    • Element Governance Proposal Framework
      • Guidelines of the Element Governance Proposal Framework (EGPF)
      • Venues For Participating in Governance & Discussion
      • What Governance Controls Today
        • Current Protocol Parameters
        • Current Governance Parameters
      • Current Governance Roles
      • The Governance Process
        • Proposals & Proposal Types
        • The Proposal Process Overview
        • The Proposal Lifecycles
          • DAO (Social) Proposal Lifecycle Breakdown & Criteria
          • Protocol (Executable) Proposal Lifecycle Breakdown & Criteria
        • Off-chain Voting Information (Snapshot)
        • On-chain Voting Information
    • Council Protocol Smart Contracts
      • Core Voting
      • Voting Vaults
        • Locking Vault
        • Vesting Vault
        • Governance Steering Council (GSC) Vault
      • Timelock
      • Treasury
      • Spender
      • Optimistic Grants
      • Optimistic Rewards
      • Simple Proxy
    • Airdrop
      • Storage
      • Guide: Discord ZK Claim Flow
      • History
    • Glossary (Governance)
    • Audits
    • Deployed Contract Addresses
  • ELFIVERSE
    • Guide: Mint Your ELF NFT
  • Community
    • Discord
    • Blog
    • X
    • Telegram Announcements
    • Youtube (Community Calls and Video Guides)
Powered by GitBook
On this page
  • 1. Overview
  • Glossary
  • 2. Contract Details
  • Key Functionality:
  • 3. Gotchas (Potential source of user error)

Was this helpful?

  1. Element Protocol
  2. Element Protocol Smart Contracts
  3. Core Protocol Contracts

Tranche Factory

PreviousTrancheNextInterest Token

Last updated 2 years ago

Was this helpful?

  • Contract Name: TrancheFactory

  • Type/Category: Core

  • Associated System Diagram: n/a

  • Contract Source:

1. Overview

The Tranche Factory creates new Tranches on existing wrapped position addresses. Deployment of new factories is done using CREATE2. This allows for cheap on-chain verification that a factory was deployed by this contract. It also allows for cheap tranche address derivation.

Glossary

  • Tranche: The contract which locks wrapped Yearn shares and mints yield and principal tokens.

  • Wrapped position: Wrapped shares of a yearn vault.

2. Contract Details

Key Functionality:

deployTranche: Deploys a new tranche given an expiration time and the address of the wrapped position contract.

3. Gotchas (Potential source of user error)

This contract uses CREATE2 to deploy the tranche, therefore redeployment of a tranche with the same expiration and wrapped position address will fail.

https://github.com/delvtech/elf-contracts/blob/main/contracts/factories/TrancheFactory.sol