Mellow Protocol
  • 💡Overview
  • 🎛️MELLOW LRT PRIMITIVE
    • Overview
    • MultiVault
    • Simple-LRT
    • Interoperable vaults
    • Contract deployments
    • Security
    • Loyalty Points
      • Points in Symbiotic pre-deposit contracts
      • DeFi points integration instructions
    • User Tutorials
      • Deposit guide
      • Withdrawal guide
      • Emergency withdrawal guide (advanced)
    • API
  • 💧DVstETH vault
    • Overview
    • Contracts
      • 🏦Vault
      • 🔧VaultConfigurator
      • ⚖️Validators
        • ManagedValidator
        • ERC20SwapValidator
        • DefaultBondValidator
        • AllowAllValidator
      • 🧬Strategies
        • DefaultBondStrategy
        • SimpleDVTStakingStrategy
      • 🔎Oracles
        • ChainlinkOracle
        • ManagedRatiosOracle
      • 🧱Modules
        • DelegateModules
          • ERC20SwapModule
          • DefaultBondModule
          • StakingModule
        • ExternalModules
        • TvlModules
          • DefaultBondTvlModule
          • ERC20TvlModule
          • ManagedTvlModule
      • 🪛Utils
        • DepositWrapper
        • DefaultAccessControl
      • 🔐Security
        • AdminProxy
  • 🤖MELLOW ALM
    • Mellow permissionless vaults
      • Overview
      • Core
      • Contracts API
      • Strategies
        • Fearless Gearbox strategy
        • LStrategy
        • Uni V3 Boosted strategy
        • Pulse strategy
        • Pulse strategy V2
        • Tamper strategy
      • Governance parameters
      • Contracts specs
      • Tutorials
        • Contracts deployments
        • Deploy your own strategy
        • wstETH strategies deposit guide
      • Mellow contracts addresses
        • Mellow Protocol Addresses (Polygon)
        • Mellow Protocol Addresses (Mainnet)
        • Gearbox Fearless Strategy
        • Tamper Strategy
        • UniV3 Pulse wstETH-USDC
        • UniV3 Pulse V2 wstETH-USDC
        • Velodrome CL strategies
        • Aerodrome CL strategies
      • Glossary
      • FAQ
    • Mellow ALM Toolkit
      • Overview
      • 📘Domain objects
      • 🧩Components
      • 🍜Processes
      • 💎Core
      • 🔮Oracles
        • VeloOracle
      • 🎯Strategy
        • PulseStrategyModule
      • 🔌AMM Adapters
        • VeloAmmModule
      • 🚙Utility contracts
        • AmmDepositWithdrawModule
        • Counter
        • LpWrapper
        • VeloDeployFactory
    • Mellow Backtesting SDK
  • 🗄️Resources
    • Media kit
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Overview
  • Key Features
  • Methods
  1. DVstETH vault
  2. Contracts
  3. Modules
  4. TvlModules

DefaultBondTvlModule

Overview

DefaultBondTvlModule contract computes the total value locked (TVL) for bond-based assets in a vault.

Key Features

  • Parameter Management: Allows the configuration of bonds associated with a vault.

  • TVL Calculation: Computes the TVL for each bond in the vault, returning detailed data structures.

  • Access Control: Ensures only authorized admins can modify bond parameters.

Methods

  1. Parameter Management

    • setParams(address, address[]): Sets bond parameters for a given vault.

      • vault: Address of the vault.

      • bonds: An array of bond addresses to associate with the vault.

      • Event:

        • DefaultBondTvlModuleSetParams(address, address[]): Emitted after bond parameters are set for a vault.

          • vault: Address of the vault.

          • bonds: Array of bond addresses.

  2. TVL Calculation

    • tvl(address): Computes the total value locked for all bonds in the vault.

      • vault: Address of the vault.

      • Returns: An array of Data structures with the following details:

        • token: Address of the bond.

        • underlyingToken: Address of the asset used by the bond.

        • amount: Balance of the bond in the vault.

        • underlyingAmount: Identical to amount.

PreviousTvlModulesNextERC20TvlModule
💧
🧱