LogoLogo
Home Page
  • Get Started
    • What is Tren Finance?
      • LP Tokens
      • Money Market Deposits
      • Concentrated Liquidity Positions
      • PT Tokens
    • FAQ
  • TrenOS
    • What is TrenOS?
    • AI Agent Network
    • Learning & Data Processing
    • Agent Specialization
      • Interest Rate + Borrowing Fee Optimizer
      • XY
      • Asset Risk
      • Gauge
      • User Interaction
      • Market Sentiment
      • Yield Optimization
      • Proof of Liquidity
      • Collateral Manager
      • Liquidation Prediction
      • Ecosystem
    • Vector Databases & AI Knowledge Storage
    • TrenOS Architecture
    • Community-Driven AI Expansion
  • Protocol
    • Protocol Design & Risk Management
    • Isolated Modules
    • Liquidations
    • Asset Risk
      • Liquidity Risk
      • Oracle Risk
      • Security Risk
      • Centralisation Risk
    • Proof-of-Liquidity
    • Hooks
      • Looping Leverage
      • Rebase Token Wrapper
      • Auto-Rollover
      • Auto-Compounder
      • Router
    • FlashMint
    • Fees
    • Single Sided Liquidity (SSL)
    • Gauges
  • Tokens
    • XY
    • TREN & veTREN
  • Resources
    • Official Links
    • Security Audits
    • Contract Addresses
      • Withdrawing via Smart Contracts
    • Media Kit
Powered by GitBook
LogoLogo
On this page
  • What are Hooks?
  • What Can Hooks Do?

Was this helpful?

  1. Protocol

Hooks

Learn about Hooks and how they are used to open up different yield-enhancing and cost-saving strategies for users

PreviousProof-of-LiquidityNextLooping Leverage

Last updated 6 months ago

Was this helpful?

What are Hooks?

Hooks are customizable smart contracts to enhance interoperability and create advanced strategies with 3rd party protocols. They provide a powerful tool for developers to enhance the functionality of isolated modules in decentralized finance (DeFi) platforms by attaching customizable smart contracts. These hooks enable not only a high degree of customization but also significantly extend the operational capabilities of the modules. They are commonly used to implement strategies directly within an isolated module. This allows for the of yields and their reinjection back into the position, optimizing the yield farming results for users.

What Can Hooks Do?

Moreover, hooks can range from straightforward applications like staking tokens on another protocol when they are deposited as collateral, to more complex scenarios involving algorithms that automatically identify and aggregate the highest yields based on the chosen strategy. This flexibility explains why there may be multiple isolated modules for the same asset, each tailored to different yield-generating strategies.

The introduction of hooks represents a significant evolution in the programmability and efficiency of DeFi platforms, enabling money markets tailored to the strategic needs of the user.

By leveraging hooks, users can engage in staking and activities while simultaneously using their deposited tokens as collateral for obtaining loans or creating positions. This dual functionality addresses a major limitation faced by many money markets, where liquidity provider () tokens are not accepted as collateral because they need to be actively staked to generate rewards. Traditionally, this forced users to choose between unlocking capital by depositing LP tokens or staking them to accrue rewards. Hooks cleverly eliminate this trade-off, allowing both actions to coexist.

farming
leverage
LP
automated investment
auto-compounding
Page cover image