TrueFi Docs
  • What is TrueFi?
  • 🔎User Guide
    • Lend
      • How to lend
      • How to withdraw
      • Onboarding / KYC (for permissioned pools)
    • Borrow
      • Receiving a loan
      • Repaying a loan
    • Manage
      • Onboarding for managers
      • Creating a vault
      • Disbursing loans
      • Managing KYC/KYB requirements
  • âš¡TrueFi Protocol
    • Lines of Credit
      • Line of Credit tutorial
      • Lines of Credit technical details
    • Asset Vaults
      • Asset Vault tutorial
      • Asset Vault technical details
    • Credit Vaults
      • Credit Vault tutorial
      • Credit Vault technical details
        • Credit Vault contract overview
        • Waterfall details
    • Index Vaults
      • Index Vault tutorial
      • Index Vault technical details
    • TRU token
      • Staked TRU
      • How to Get TRU
    • Other concepts
      • Controllers
      • Instruments
        • FixedInterestOnlyLoan
        • BulletLoans
      • [Legacy] DAO pools
        • delt.ai loan: Jan 2023 airdrop claiming instructions
        • delt.ai loan: July 2023 airdrop claiming instructions
        • delt.ai loan: October 2023 airdrop claiming instructions
        • delt.ai loan: Jan 2024 airdrop claiming instructions
        • delt.ai loan: Apr 2024 airdrop claiming instructions
        • delt.ai loan: Nov 2024 airdrop claiming instructions
        • Loan approval process
        • Lender FAQs
          • Lending to DAO pools
          • Farming TRU rewards
          • Withdrawing funds
          • How lending pool (LP) tokens work
          • How loan tokens work
          • SAFU (Secure Asset Fund for Users)
          • Risk Mitigation
        • Developer docs
      • Other legacy contracts
        • Managed Portfolio [legacy]
        • Flexible Portfolios [legacy]
          • Flexible Portfolio contracts
    • Audits
Powered by GitBook

General

  • TrueFi app
  • Docs

Governance

  • Tally
  • Snapshot

Community

  • Forum
  • Twitter
On this page
  • Technical considerations
  • Capital Deployment
  • Valuation
  • Investment Flow
  • Closing Vaults

Was this helpful?

Export as PDF
  1. TrueFi Protocol
  2. Index Vaults

Index Vault technical details

PreviousIndex Vault tutorialNextTRU token

Last updated 1 year ago

Was this helpful?

Technical considerations

Index Vault behavior is very similar to , with exceptions in the following areas:

Capital Deployment

Instead of loans, IVs utilize an instrument called Investment to deploy funds.

Investments are LP positions at non-IV vaults on TrueFi.

Because TrueFi vaults implement the ERC-4626 interface, interactions with all types of TrueFi vaults work the same way.

Valuation

Instead of an array of loans, IVs hold an array of investments.

When calculating IV valuations, the IV iterates through that array and calls ERC-4626 totalAssets() on each of the underlying vaults to fetch the value of each investment.

Investment Flow

Allocating Capital

Capital allocation happens through proxying one of the following methods:

  • deposit(assets, receiver)

  • mint(shares, receiver)

Allocation is only possible if the target vault’s token is already registered on the vaultsRegistry.

Adding tokens to the vaultsRegistry

Adding a token as a potential investment adds the token to the list of tracked asset balances and values.

In order to register a token, the token must:

  • Not be registered already

Removing tokens from the vaultsRegistry

unregister removes a token from the tracked assets list.

Redeeming / withdrawing

Redeeming and withdrawing happens through proxying one of the following methods:

  • withdraw(assets, receiver, owner)

  • redeem(shares, receiver, owner)

Closing Vaults

Index Vaults cannot be closed while holding any active investment. Similar to how vaults cannot close before maturity unless all underlying loans are inactive, IVs cannot close unless all investments have closed first.

Be one of the allowlisted types of TrueFi products (i.e. , , or )

âš¡
Credit Vaults
Lines of Credit
Credit Vaults
Flexible Portfolios