LogoLogo
  • Welcome
    • Introduction
  • Public Testnet Resources
    • Testnet Tutorial
  • General Resources
    • Links
    • Litepaper
    • Presale Details
Powered by GitBook
On this page
  • Setting up Testnet Wallet
  • Connecting to the Flow Testnet dApp
  • Supplying tADA
  • Withdrawing Supply
  • Borrowing tADA
  • Adding Collateral
  • Multiple Loans
  • Repaying a loan
  • That's it!
  1. Public Testnet Resources

Testnet Tutorial

Walkthrough of the key features of the Flow Testnet dApp

PreviousIntroductionNextLinks

Last updated 8 days ago

Welcome to the Flow Public Testnet! Our protocol enables isolated lending pools with no maturity date, allowing borrowers to unlock the liquidity of their Cardano Native Tokens (CNTs) and suppliers to earn higher yields than traditional ADA staking. For example, users can leverage SNEK as collateral to borrow ADA. In this testnet, we feature a single ADA/FLOW lending pool, where ADA is the borrowable asset and FLOW is the collateral token. This tutorial guides you through key functionalities to explore in the test environment, including Supplying, Withdrawing, Borrowing, Adding Collateral, and Repaying loans.

Setting up Testnet Wallet

Set up a new or load up an existing Pre-Production Testnet wallet. We recommend Eternl.

Then request some tFLOW tokens in our Discord.

Connecting to the Flow Testnet dApp

Click Grant Access so the dApp can read your wallet balances and allow you to interact with the dApp.

Note: Flow will refer to tADA and tFLOW as ADA and FLOW

Your Lending Summary and the Portfolio section will load up information pertaining to your wallet:

Supplied and Borrowed figures would initially be at 0. Let's change that.

Supplying tADA

Scroll down to see the Markets section.

Let's add some Supply to the ADA/FLOW pool. Click on Supply.

Type the amount you'd like to supply, or use the 50% or Max buttons to fill in the amount for you. Then go ahead and click Supply ADA.

Your wallet should pop up, requesting you sign the transaction.

After a quick review we sign the transaction and get a notification in the top right that our Supply was successful.

The new Deposit order should then appear in the Portfolio tab under Orders section. Ignore the Repay order, that is there for another test case. Orders can be cancelled by clicking on the Cancel button, if you change your mind before the application processes them. But we'll allow our Deposit order to go through.

This order should get processed within a couple of minutes and the supplied amount should then reflect in the Supplied positions table as well as the Lending Summary.

To add more to the supply, click Supply again, which would get processed the same way.

Withdrawing Supply

This time though, let's try to withdraw some ADA from our supplied position, by clicking on Withdraw.

We get a Withdraw ADA popup, where we can type in the Amount, but this time we will click on the 50% button to get half, 500 ADA, back from our supplied position. If "Available Liquidity" allows it, clicking on Withdraw ADA and approving the transaction in our wallet completes the request.

Next we can check Transactions in our wallet to see when the transaction is accepted on the chain, which could take 20 seconds or more.

In a short while, we will see that our ADA/FLOW supply position has been updated to 500 ADA.

Borrowing tADA

Now, let's try the borrow function. Go back to the Markets tab and click on the available Borrow button from the ADA/FLOW pool, which will bring up the Borrow ADA popup.

Entering the Amount of ADA you'd like to borrow, brings up the FLOW Collateral amount field with some suggested value buttons, as well as a slider underneath. Our desired amount of ADA to borrow was too high, so we got the "Collateral balance is insufficient" warning.

Lowering the borrow amount now allows us to enter in the FLOW field or use the buttons for amount of FLOW collateral we wish to lock up for our loan. Let's click on the minimum 500 FLOW button and then click on Borrow ADA, which will bring up the wallet popup again to sign the transaction.

After reviewing and signing the transaction, we get a Borrow successful notification in the top right. After another 20 or so seconds, when our transaction gets accepted on chain, we can go to the Portfolio tab and check our Orders, where our Borrow transaction should show up.

A minute or two later it will be processed and a new transaction with our borrowed funds should appear in our wallet.

The Borrow transaction in the Orders section will be replaced with a new Borrow position in the Borrow Positions section:

Adding Collateral

Looks good, but our Loan health is a bit risky. Let's increase it a bit by clicking on Add Collateral button.

Here, let's enter a number that brings our Health Factor up to a healthy 2.0. After clicking on Add Collateral and signing the transaction, we get a "Collateral added successfully" notification. The borrow position should be updated as soon as the transaction goes through.

Our loan looks quite healthy now!

Multiple Loans

Let's get one more loan, to see what happens. Going through the same steps, here's how our Borrow Positions look now:

The second loan is now reflected in the Borrowed total, which stands at 130 ADA. The second loan was taken out when ADA/FLOW Utilization %, and therefore the Borrow interest rate, was a bit higher than the first loan. The interest rate for individual loans is fixed at the time the loan is taken out.

Repaying a loan

Now, let's repay the second loan by clicking on its Repay button. This opens up the wallet popup with the repayment transaction.

After a quick review, we sign it and get a "Repayment successful" notification in the top right.

After the transaction gets processed, there is a new Repay Order in the Orders section.

A couple of minutes later, the order gets processed and a new transaction containing our locked collateral appears in our wallet.

Our Borrowed total gets updated in Your Lending Summary, only the active loan is shown in the Borrow Positions and the order is also processed from Orders section.

That's it!

Great job completing the Flow Public Testnet tutorial! You’ve explored the core functionalities of the ADA/FLOW lending pool, from supplying and borrowing ADA to managing collateral and repaying loans. Share your feedback on our Discord and stay tuned for more Flow updates!

Request some tADA from the faucet here:

Connect your wallet in the Flow dApp here:

https://docs.cardano.org/cardano-testnets/tools/faucet
https://flowcardano.org/app
Make sure the environment is pointed at Pre-Production testnet
Dummy values for ADA/USDM and ADA/SNEK supplies are displayed to illustrate multiple supplies and are not reflected in the totals of Your Lending Summary.
The Health Factor, LTV Ratio and Liquidation price dynamically change depending on the amount and collateral amount you enter