Trilobyte
  • 📖Trilobyte Documentation
  • User Docs
    • Introduction
      • What problem is the protocol trying to address?
      • Use case examples
    • Vault Overview
    • For Borrowers
      • The Vault phases
        • The Funding Phase
        • The Approval phase
        • The Lending Phase
        • The Completed Phase
        • The Closed Phase
        • The Default Phase
      • Receiving a loan
    • For Investors
      • Loan financing
      • Withdrawals
    • Vault payments
    • Protocol Revenue and Fees
    • Default Procedure
    • Governance
  • TECHNICAL DOCS
    • Smart Contract Architecture
  • Stellar futurenet tests
    • Freighter wallet
    • Testing information
    • Testing deposits and withdrawals for a Vault in Funding status
    • Testing approval and withdrawal of a loan by the borrower
Powered by GitBook
On this page
  • Loan approval.
  • Loan withdrawal
  1. Stellar futurenet tests

Testing approval and withdrawal of a loan by the borrower

PreviousTesting deposits and withdrawals for a Vault in Funding status

Last updated 2 years ago

A vault reaches the approval phase automatically once the requested principal amount has been deposited by Investors. During this phase, the borrower needs to approve the loan. After approval, the borrower can withdraw the funds from the vault.

To test approval and withdrawal of a loan, you can follow the following steps:

Loan approval.

  1. Check in the Home Screens the vaults that are in the "APPROVAL" status.

  2. Add the to the Freighter wallet. You do this by clicking on the Freighter wallet Avatar at the top left and importing the Stellar secret key.

3. Go to the Borrow section of the application. If you have added the testing borrower account to your Freighter wallet, you will see the section that displays all the vaults that belong to the borrower.

  1. Click on the Vault you want to approve to click on the 'APPROVE' button

  1. Approve the transaction via Freighter and wait for the confirmation. Once the approval transaction has been confirmed by the Stellar Network, you will see a "WITHDRAWAL FROM LENDING POOL" that will allow you as borrower to withdraw from the Vault

Loan withdrawal

Now that you have approved the loan as Borrower, you can withdraw part of all the assets of the Vault. To that you will:

  1. Click on the "WITHDRAWAL FROM LENDING POOL" button. This will display a pop up screen that will allow you to enter the desired amount to withdraw.

  1. Enter the amount to withdraw and click the Withdraw button.

  2. Approve the withdraw transaction with the Freighter wallet and you are done!

Borrower testing account