Mellow Protocol
  • 💡Overview
  • 🎛️MELLOW LRT (LST) PRIMITIVE
    • Overview
    • Simple-LRT
    • LRT 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
    • DVstETH vault overview
    • 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
  • 🤖MELLOW ALM
    • Mellow ALM Toolkit
      • Overview
      • 📘Domain objects
      • 🧩Components
      • 🍜Processes
      • 💎Core
      • 🔮Oracles
        • VeloOracle
      • 🎯Strategy
        • PulseStrategyModule
      • 🔌AMM Adapters
        • VeloAmmModule
      • 🚙Utility contracts
        • AmmDepositWithdrawModule
        • Counter
        • LpWrapper
        • VeloDeployFactory
    • 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 Backtesting SDK
  • 🗄️Resources
    • Media kit
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Overview
  • Key Features
  • Methods
  1. MELLOW LRT (LST) PRIMITIVE
  2. LRT Contracts
  3. Modules
  4. TvlModules

ManagedTvlModule

Overview

ManagedTvlModule contract provides a mechanism to artificially reduce or increase tvl using regular or debt tokens in the vault to reduce possible losses due to slashing events.

Key Features

  • Parameter Management: Enables setting of asset parameters used for calculating TVL.

  • TVL Calculation: Computes the TVL for the vault according to the predefined asset parameters.

  • Access Control: Ensures only authorized administrators can modify vault parameters.

Methods

  1. Parameter Management

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

      • vault: The address of the vault.

      • data: An array of Data structures containing asset details.

      • Event:

        • ManagedTvlModuleSetParams(address, Data[], uint256): Emitted after asset parameters are set for a vault.

          • vault: Address of the vault.

          • data: An array of Data structures.

          • timestamp: Timestamp of the parameter update.

  2. TVL Calculation

    • tvl(address): Computes the total value locked for the vault based on predefined asset parameters.

      • vault: The address of the vault.

      • Returns: An array of Data structures with details about each asset:

        • token: Address of the ERC20 token.

        • underlyingToken: Address of the base asset.

        • amount: The amount of the token held by the vault.

        • underlyingAmount: Amount translated to the base asset.

PreviousERC20TvlModuleNextUtils
🎛️
🧱