Dev
Liquity v1 monorepo containing the contracts, SDK and Dev UI frontend.
Install / Use
/learn @liquity/DevREADME
Liquity: Decentralized Borrowing Protocol
<img alt="DeFiSafety Badge" width="96px" align="right" src="images/defisafety-badge.png" />
Liquity is a decentralized protocol that allows Ether holders to obtain maximum liquidity against their collateral without paying interest. After locking up ETH as collateral in a smart contract and creating an individual position called a "trove", the user can get instant liquidity by minting LUSD, a USD-pegged stablecoin. Each trove is required to be collateralized at a minimum of 110%. Any owner of LUSD can redeem their stablecoins for the underlying collateral at any time. The redemption mechanism along with algorithmically adjusted fees guarantee a minimum stablecoin value of USD 1.
An unprecedented liquidation mechanism based on incentivized stability deposits and a redistribution cycle from riskier to safer troves provides stability at a much lower collateral ratio than current systems. Stability is maintained via economically-driven user interactions and arbitrage, rather than by active governance or monetary interventions.
The protocol has built-in incentives that encourage both early adoption and the operation of multiple front ends, enhancing decentralization.
More information
Visit liquity.org to find out more and join the discussion.
Liquity System Summary
- Disclaimer
- Liquity Overview
- Liquidation and the Stability Pool
- Gains From Liquidations
- LUSD Token Redemption
- Recovery Mode
- Project Structure
- LQTY Token Architecture
- Core System Architecture
- Core Smart Contracts
- Data and Value Silo Contracts
- Contract Interfaces
- PriceFeed and Oracle
- PriceFeed Logic
- Testnet PriceFeed and PriceFeed tests
- PriceFeed limitations and known issues
- Keeping a sorted list of Troves ordered by ICR
- Flow of Ether in Liquity
- Flow of LUSD tokens in Liquity
- Flow of LQTY Tokens in Liquity
- Expected User Behaviors
- Contract Ownership and Function Permissions
- Deployment to a Development Blockchain
- Running Tests
- System Quantities - Units and Representation
- Public Data
- Public User-Facing Functions
- Borrower (Trove) Operations -
BorrowerOperations.sol - TroveManager Functions -
TroveManager.sol - Hint Helper Functions -
HintHelpers.sol - Stability Pool Functions -
StabilityPool.sol - LQTY Staking Functions
LQTYStaking.sol - Lockup Contract Factory
LockupContractFactory.sol - Lockup contract -
LockupContract.sol - LUSD token
LUSDToken.soland LQTY tokenLQTYToken.sol
- Borrower (Trove) Operations -
- Supplying Hints to Trove operations
- Gas compensation
- The Stability Pool
- LQTY Issuance to Stability Providers
- LQTY issuance to liquity providers
- Liquity System Fees
- Redistributions and Corrected Stakes
- Math Proofs
- Definitions
- Development
- Running a frontend with Docker
- Known Issues
- Disclaimer
Liquity Overview
Liquity is a collateralized debt platform. Users can lock up Ether, and issue stablecoin tokens (LUSD) to their own Ethereum address, and subsequently transfer those tokens to any other Ethereum address. The individual collateralized debt positions are called Troves.
The stablecoin tokens are economically geared towards maintaining value of 1 LUSD = $1 USD, due to the fo
