Technical FAQ

Technical Frequently Asked Questions

1. Introduction

1.1 What is the Liqwid protocol?

Liqwid is an algorithmic and non-custodial liquidity protocol for earning interest on supplied assets and borrowing Cardano native assets. Users of the protocol can interact with money markets implemented as a set of pooled liquidity smart contracts. Users supply assets (a lender) when they call the market contract's mint function and borrow against their supplied assets as collateral (a borrower) when they call the borrow contract. The Liqwid DAO Token LQ unlocks voting power for protocol users to participate in the protocol's decentralized governance and when staked is used as a reserve asset generating two layers of yield for LQ stakers (liquidation profit and percent of total revenue).

The lender deposits assets into a Liqwid market contract and receives interest-bearing qTokens. Deposited assets transferred to the market contract are instantly available to borrowers. Lenders can remove assets from the market contract at any point in time assuming sufficient liquidity exists.

The borrower can instantly borrow assets from the protocol provided they lock sufficient qToken collateral. The collateral factor is different for each supported asset, e.g., ADA has a collateral factor of 70 meaning for every $100 worth of ADA supplied users may borrow up to $70 in any asset from the protocol.

There is no maturity date for the loan and interest rates on the borrowed amounts are updated each batching cycle based on lender supply and borrow demand per asset. Borrow interest accrues to the borrow principal to update the balance and the total balance must be repaid exit the market and redeem the full collateral amount.

If the loan is not repaid before the borrower’s account liquidity goes into negative, the system liquidates the borrow and seizes the collateral to repay the suppliers. This protects the Liqwid protocol from credit risks.

Access to a global liquidity pool unlocks the following benefits:

1.2 How does the protocol work?

The Liqwid protocol is a set of interconnected smart contracts functioning as a decentralized money market on the Cardano network. Holders of supported assets can earn interest by depositing them in the Liquid protocol. In return the user will receive interest bearing qTokens which represents a user’s claim on the market’s assets. If a user deposits ADA, they will receive “qADA”.

1.2.1 qToken explanation

qTokens are Cardano native tokens which function as interest bearing assets much akin to a savings account. As borrower interest accrues in a market, the exchange rate of qToken to the underlying pool of assets increases. The redemption of an underlying asset can be performed at any point in time by burning qTokens assuming sufficient liquidity exists.

The difference in value between the qToken and the underlying token is the time value of money, which corresponds to accrued interests to be received on the supplied assets by qToken holders. The value of the asset XYZ deposited by the suppliers will increase over time due to the accrued interests.

*The exchange rate between the underlying asset to corresponding qToken is increasing over time to capture the continuously accruing borrow interest.

*Please note market and pool are used interchangeably and both refer to the same Liqwid market smart contract that users supply assets to and borrow from.

*If sufficient liquidity does not exist for qToken suppliers to fully exit the market (due to high market utilization), users may partially withdraw assets from the protocol up to the amount of remaining assets. The protocol has liquidity buffers (market reserves) to ensure sufficient liquidity always exists for suppliers to exit a market.

*The above is an example to visualize the qToken to underlying asset exchange rate change. For protocol math purposes the actual exchange rate will begin at .02, not 1:1.

1.3 Can I stake ADA while I supply them in the LQ protocol?

Yes, ADA suppliers can stake their coins and receive rewards in their staked wallet while they are supplying to the ADA market.

The value of the ADA deposited by the supplier will increase over time due to the accrued interest. The staking reward for ADA will accrue in a user’s staked wallet and not impact the value of supplied ADA.

1.4 What is the process for supplying assets on the platform?

When using Liqwid, suppliers do not lend assets directly to the borrower, rather they deposit their assets into a market smart contract, which next determines the value of deposited assets and mints the equivalent value worth of qTokens within the user's wallet. When borrowing against supplied assets as collateral, the smart contract will determine the LTV benchmark for borrowing based on the supplied asset.

Users supply assets to the protocol when they call the mint function in the market contract and confirm the asset transfer in their connected wallet. Upon successful transfer of assets into the market contract qTokens for that asset (e.g. qADA) are minted in the user's wallet. Interest is not distributed to qToken holders, rather interest is built directly into the qToken to underlying asset exchange rate. As a result any user holding qTokens is earning interest.

qTokens accrue interest via their exchange rate to the underlying asset; as total borrow interest repaid increases, qToken become convertible into an increasing amount of the market’s underlying asset, even while the number of qTokens in the user wallet remains constant.

*The interest rate (APY) earned by suppliers is unique to each Liqwid market.

1.5 How is the interest rate curve implemented?

Building on sound macroeconomic models, interest rates (the cost of money) should increase as a direct function of demand; when borrow demand for an asset is low, interest rates should be low, and vice versa when borrow demand is high relative to supply. The utilization ratio U for each Liqwid market a combines the supply and demand into a single variable:

Governance processes will determine future updates to the demand curve which is represented as a function of utilization Ua. Borrowing interest rates will vary by Liqwid market and will also be updated via governance mechanisms as required in the future.

*Lending interest is built directly into the qToken Exchange rates.

1.5.1 What is the risk-free rate of return?

The risk-free rate of return is the theoretical rate of return of an investment with zero risk. The risk-free rate represents the interest an investor would expect from a risk-free investment over a specified period of time. The real risk-free rate can be calculated by subtracting the current inflation rate from the yield of the Treasury bond matching your investment duration.

In the traditional finance world, the risk-free rate is around 2%, and corresponds to the US T-bills 10 years. Currently this rate is around 1.3%. (Source: https://www.wsj.com/market-data/quotes/bond/BX/TMUBMUSD10Y/ )

1.5.2 What are the risk-free rates in Liqwid?

Stablecoins have a risk-free rate of 0%, because they do not have a limited supply and can be “printed” at any time. Cryptocurrencies with a limited supply have a risk-free rate of 2%. This risk-free rate is also used by the DeFi lending leaders such as AAVE or Compound.

1.5.3 How are the interest rates fluctuating?

As mentioned earlier, the interest rate depends on the Utilisation rate (Ua), which reflects the ratio between the borrow demand and the amount supplied to the market by lenders. The interest rate of a market A depends on its Ua and fluctuates dynamically as followed:

▪ For every asset, an interest rate is calculated depending on the supply/demand for this asset.

▪ Arbitrages between assets/interest rates is performed by the users by supplying different assets.

▪ A user can supply any supported asset to the protocol.

1.6 Workflow description for a borrower

1.6.1 Initiate a loan

The borrower needs to supply a supported asset as collateral on the Liqwid platform to be able to open a loan. Each supplied asset will unlock some value the user may borrow against depending on the assets assigned collateral factor.

Once the asset type and amount are selected, the borrowed assets are transferred from the market directly to the borrower’s connected wallet. The maximum amount to borrow is determined by the collateral factor set by the system for the asset type the user supplied as collateral.

Example: In the situation where 1 ADA has an exchange rate of 2 USD, the borrower is depositing 1,000 ADA as collateral. The market value of his pledge is USD 2,000 and the collateral factor for ADA is 70% x USD 2,000 = USD 1,400. This is the maximum amount to be borrowed before the user reaches negative account liquidity and risks liquidation.

1.6.2 Are there any fees to open the loan?

There are zero fees to open a loan in the protocol. Borrow interest accrues at the market rate on the loan balance.

1.6.3 Liquidation events

During the lifecycle of a loan, the liquidity cushion could reach zero or the account liquidity approaches negative. This occurs when the value of the collateral is falling relative to the value of the borrowed asset plus accrued interest.

To actively remove the credit risk of the protocol, materialized by the exposure to defaulting loans, a liquidation incentive has been created. The mechanism is that any user (liquidator) can bring the borrowed asset and repay the default loan using a liquidation bot, at which point the liquidators assets will be exchanged against the seized collateral of a defaulting user to repay the original asset that was borrowed. The liquidator will also receive the collateral at a discount determined by the liquidation bonus parameter. Each market has a liquidation bonus parameter applied. This means successful liquidators receive a default borrower's collateral at a discount when they repay their underwater loan in part or full. E.g. the ADA market has a 10% liquidation bonus, when a liquidator repays a default ADA loan there is a 10% bonus applied on the total collateral they receive. *Note: the liquidation bonus is a governance configurable parameter used to incentivize liquidators/bot operators to repay underwater loans. The parameter is subject to changes based on market conditions. Liquidators should pay attention to discussions on the Liqwid governance forum for liquidation bonus parameter updates and liquidation bonus parameters set for new markets.

Example: In the situation where the ADA exchange rate drops from 1ADA for 2 USD to 1ADA for 1.5 USD. The market value of the collateral is USD 1,500 and the collateral value is USD 1,050. If the borrowed amount (nominal+interest) is greater than the adjusted collateral value (USD 1’050), the borrow will be liquidated.

1.7 How do liquidations work for default borrowers?

Liquidators can repay default loans using the open source liquidation bots. Once a wallet is liquidated, the seized collateral is exchanged against the assets from the corresponding liquidation bot operator's wallet. The discounted collateral price used for the liquidation allows the liquidator to directly seize collateral at a 10% discount (ADA market is currently set to 10%). The liquidation bonus is claimed entirely by the successful liquidator, the protocol does not take any fee or margin from liquidators during this process.

1.7.1 Barrier against overheated market

Liqwid interest rate models include a utilization ratio we define as the kink point, above which the slope of the rate curve steepens to disincentivize new loans and to incentivize borrowers to repay existing loans and suppliers to deposit assets and capture the increased APY.

Once the system reaches a max utilization rate threshold on a selected asset, no more new borrowing of the selected assets can be performed by the users. The system blocks any new loan if the specific asset supply does not increase. Borrows can still be repaid and suppliers are still able to deposit assets in this market.

Note: The max utilization rate threshold will default to 90-95% for most supported assets.

1.8 What is the oracle used by Liqwid?

Liqwid developers have built an oracle mechanism that combines a Plutus contract with an off-chain oracle reporter submitting Tx’s to update price feeds with data sourced from public key signed exchange APIs. The price feeds will use a time weighted average price (TWAP) method and average all the reported prices off-chain before updating on-chain. All the work done off-chain can is completely verifiable by users on-chain.

1.9 What is the value capture by the protocol?

The interest paid by the borrowers is distributed to the suppliers who provided the assets to Liqwid markets. Interest earned is directly accrued to the value of your qToken. The part of the value created which is not distributed to the suppliers is called the “Net margin”.

1.9.1 Function of the Market reserve:

The reserves act as a liquidity buffer and insurance mechanism to ensure suppliers have sufficient exit liquidity. The collateral factor plus these market reserves gives the protocol a significant cushion so that it can always make good on interest owed to lenders.

1.9.2 Function of the DAO reserve

The DAO is collecting reserves to further develop the protocol and fund developers building products that scale adoption across the Liqwid ecosystem.

1.9.3 Function of the Staking reward

The staking reward represents the percent of the value captured distributed back to LQ stakers, who deposited their LQ tokens on the protocol to be used as reserve assets in liquidation events.

2. The Liqwid DAO

2.1 What is a DAO and its utility?

A DAO is a Decentralized Autonomous Organisation. It functions like a general assembly, where all shareholders of a corporation can submit proposals and vote on changes. Every LQ token unlocks 1 voting power in the DAO, but only staked LQ tokens in the LiqwidDAO's Agora instance can use their voting power to cast a vote.

Proposal topics can range from the whitelisting of new assets to changes in a market’s interest rate model parameters (or any other protocol parameter), but also include protocol code updates. The DAO also determines the used of the DAO treasury to finance improvement of the protocol or community ecosystem.

2.1.1 How to submit a proposal for improving the ecosystem?

The use of the DAO is decided by Liqwid community members, which together form a “borderless corporate entity”. Community members are empowered to introduce Liqwid Improvement Proposals (LIPs) to improve the protocol or grant proposals to build products and integrations for Liqwid ecosystem users.

▪ “Liqwid Improvement Proposals” (LIPs) are a path to change the functioning code, decided on by the community of LQ voters.

2.1.2 Where are Liqwid governance discussions happening?

A dedicated governance forum has been setup for the LQ community to voice governance ideas and collectively decide the future of Liqwid.

2.2 What happens to the Core Team after the launch of Liqwid v1?

The Core Team will continue to build products on the protocol by leveraging the APIs, SDK and developing composable products with other Plutus DeFi protocols. Core Team will also remain active in the Liqwid DAO governance processes. The team has several ideas on secondary product offerings for scaling protocol usage and will continue to develop new tools to drive additional value for the Liqwid ecosystem and LQ holders.

2.2.1 How can I support the protocol after the launch of Liqwid v1?

As the DAO will be responsible to decide the future of Liqwid, every user can support the protocol by staking LQ, participating in governance processes and voting on proposals.

2.3 How does the Liqwid DAO work?

Once you are eligible to submit proposals and vote, you can participate in any active vote by delegating your voting rights to the address of your choice:

▪ Your personal wallet

▪ Another user

▪ An application

If you receive voting right through delegation, you can vote by using the delegated voting rights.

2.4 How to submit a Liqwid Improvement Proposal?

Anybody with 1% of circulating LQ supply delegated to their address can propose a governance action; these are simple or complex sets of actions, such as whitelisting a new asset, changing an asset’s collateral factor, a liquidation rate, changing a market’s interest rate model, or changing any other parameter or variable of the protocol. Users with less than 1% of circulating LQ supply delegated to their address can submit draft proposals, which will require a co-sign from an address holding more than 1% of circulating LQ supply.

All proposals are subject to 2 day voting period by default, and any address with LQ voting power can vote for or against the proposal. If quorum of 10% of circulating LQ is reached and a majority of at least 50.0001% votes submitted are for the proposal, it enters into the “Timelock” and can be implemented after 1 day.

2.5 When is a vote successful?

Decisions are made based on LQ stake-weighted voting. Updates are executed when:

1. Minimum total vote required for a proposal to succeed (quorum) defines the percent of LQ in circulating supply that must vote, defaulted to 10%.

2. 50.0001% of the votes submitted are “for” for the proposal.

Note: The total voting rights correspond to the total LQ token supply issued at the time of the vote snapshot, deducted from the DAO treasury LQ tokens.

3 Audit

3.1 External audit

The Liqwid protocol Plutus on-chain code (validator scripts) has been audited by Vacuumlabs. The final audit report was made publicly accessible following the completion of security testing. Liqwid v1 final audit report: https://drive.google.com/file/d/1G876DEDefbP0rf19otkGuOdY_Cwh79fT/view?usp=sharing

Is there a Telegram group?

There is no official Liqwid Telegram group, if you see one please report it as a fake account. We are currently building community on Discord.

4 Liqwid DAO Token

LQ is the Liqwid DAO Token and forms the foundation of the protocol's decentralized governance. As Liqwid’s native asset LQ is used in governance and economic processes. LQ total supply is fixed at 21 million and tokens have 1:1 voting power in the DAO. When LQ is staked, it allows its holders to participate in governance, earn a part of the staking reward and earn additional yield from a protocol fee switch (incomeDividend parameter). 75% of total LQ supply is set aside for the community.

Fair Vesting

Fair Vesting LQ tokens allocated to the Core Team will be distributed according to a linear vesting schedule that will periodically release LQ to the core team, advisors, and tech partners over the course of two years starting at genesis epoch. The tokens allocated for the founding team, advisors, technology partners and future hires (25%) are held by a multisig that releases the tokens linearly on a per epoch basis for two years. The vesting period begins following the v1 protocol launch.

● Total LQ token supply: 21,000,000

● Percent of LQ tokens allocated to Core Team (core developers, founding team and future hires), Advisors, Technology Partners: 25%

● Total amount of LQ tokens to vest to Core Team: 5,250,000

● Length of vesting: 2 years

● Release schedule: linear release each month

LQ Frequently Asked Questions

How to earn LQ through the Community distribution program?

LQ tokens are allocated every epoch between the suppliers and the borrowers. The allocation is then distributed per market, where a multiplier can be added to incentivize supplying and borrowing from a market. The total LQ per market are distributed between the suppliers and the borrowers based on the amount of interest generated in the market during the epoch and the multiplier.

The distribution per user in each market is done pro-rata to their total supply balance or borrowed amount. This mechanism rewards the users that generate the most value on the protocol, the early adopters and Liqwid community members.

What is the supply of $LQ tokens?

The total LQ token supply is 21,000,000.

What is the $LQ token policy ID/asset name?

Policy ID: da8c30857834c6ae7203935b89278c532b3995245295456f993e1d24

Asset name: 4c51 (asset13epqecv5e2zqgzaxju0x4wqku0tka60wwpc52z)

Transaction ID: https://explorer.cardano.org/en/transaction?id=344c26673b9256b10e215d86095d9eb3c63def4b5a31cf50f12d4a133024eabc

https://cardanoscan.io/token/8e420ce194ca84040ba6971e6ab816e3d76ee9ee

LQ was minted in the first multi-asset block using a timelock script.

Last updated