Vault Overview
The Borrower's Vault is the smart contract that contains the core functionality of the Trilobyte protocol. It is composed of 3 main components that interact with the other entities of the protocol. These components are: The Lending Pool, The Cash Pool and The EMI (Equated Monthly Instalment) Pool.
The Lending Pool
It is the component that will accumulate the money (principal amount of the loan) provided by Investors during the funding phase of the Vault.
It interacts with Investors by accepting their deposits and providing them with the Vault Tokens representing their share of investment.
It interacts with the Borrower when the Borrower intents to withdraw the principal amount of the loan.
It interacts with The Treasury by paying protocol fees whenever Investors deposit or the Borrower withdraws the principal amount of the loan.
The Cash Pool
It is the component responsible for receiving all the payments that are owned to the Borrower by the Payment Actors.
It interacts with the Payment Actors by accepting their payments.
It interacts with the EMI Pool during the repayments schedule of the loan. This means that when a repayment is due, cash will move from the Cash Pool to the EMI Pool.
It interacts with the Borrower by allowing him to withdraw the excedent cash that is not owned to the EMI Pool.
It interacts with The Treasury by paying protocol fees. Protocol fees are paid by the Cash Pool to the Treasury when repayments are made to the EMI Pool and when the Borrower withdraws the excedent amount.
The EMI Pool
It is the component that will accumulate the money (principal + interest) that is owned by the Borrower to the Investors.
It interacts with Investors by accepting their withdrawal requests (amount of Vault Tokens investors want to exchange for their underlying asset) and allocating the underlying asset to the Investors wallets.
It interacts with The Treasury by paying protocol fees. Protocol fees are paid by the Cash Pool to The Treasury when investors withdraw their underlying asset.
Last updated