Liquidity Layer
Risks
What to know about the risks associated with Fluid
Fluid is a cutting-edge lending protocol built with robust security measures to deliver a secure and efficient experience for users. Still, it's essential that every user understands the risks associated with lending protocols like Fluid. By using the platform, you accept all risks, including the potential loss of funds. Fluid shares many risks with established protocols like AAVE and Compound, but it includes several advancements that make it more secure than earlier protocols.
What Makes Fluid More Secure?
Automated Limits: Fluid uses Automated Limits that expand continuously with every block, capping the maximum withdrawal and borrowing within any 12-hour period. This mechanism, called Expand Percentage, can be seen on the Stats page. Automated Limits shield the protocol from sudden black swan events, making it highly unlikely that all liquidity could leave Fluid in a short time. For instance, it would take roughly four days for all liquidity to exit.
Simple Liquidity Layer: At the core of Fluid sits a simple liquidity contract, the Liquidity Layer. This layer keeps all Fluid liquidity in a straightforward contract, includes no end-user borrowing functions, and minimizes attack surfaces.
Efficient Liquidation Mechanism: Fluid's advanced liquidation mechanism delivers the cheapest and most gas efficient liquidations. Thousands of positions can be liquidated in a single transaction, letting the protocol clear debt quickly and effectively. This efficiency allows Fluid to offer higher Loan-to-Value (LTV) ratios on user assets.
Advanced Oracle System: Fluid combines Uniswap and Chainlink oracles for accurate and reliable pricing data, which lowers the risk of price manipulation. A recent update supports multi-use oracles for different operations, adding extra security measures.
Risk Considerations
Smart Contract Bugs
Fluid has been audited by Statemind and Mixbytes, yet unforeseen bugs or errors may still occur and could cause users to lose funds or run into issues when interacting with the protocol. Fluid encourages community involvement and offers a $500k bug bounty through Immunefi to help identify and mitigate these risks.
Instadapp Bug BountyimmunefiView our 500k Bug Bounty here!
Price Oracles
Fluid relies on multiple price oracles, including Chainlink and Uniswap TWAP (Time Weighted Average Price) checks, to verify prices during transactions. This dual-check system reduces the risk of price manipulation and makes operations more reliable and secure.
Chainlink Price Oracles with Uniswap TWAP Checks
Protocols such as the Vaults protocol are able to draw on several oracles, like Chainlink and Uniswap, and they do combine them to shield users and the protocol from bad debt.
- Fetches the on chain Uniswap TWAP price (on-chain price)
- Compares this price with the Chainlink price (difference check)
- If the TWAP is within parameters it uses the on-chain price; otherwise it falls back to the Chainlink price. (determines which oracle to use)
In essence, the uniV3 price (on-chain pricing) is used in most cases. If the market fluctuates significantly, however, we switch to the Chainlink price. Our goal is to make sure liquidations on the Vault protocol can happen whenever necessary, based on the most accurate information available. This approach protects the protocol from incurring bad debt.
Contract Pricing
Certain Vaults within the Vaults protocol, such as weETH/wstETH, apply enhanced security measures through contract pricing to prevent user liquidations during short-term price depegs. By querying the backing contract for the assets, we can confirm they are fully backed, which keeps asset pricing accurate even when on-chain liquidity is low. This approach effectively prevents baseless liquidations caused by temporary price fluctuations. Contract pricing in Fluid is similar in some ways to Fundamental Pricing on AAVE, offering a robust mechanism for maintaining stability.
Liquidity and Automated Limits
Fluid's innovative Automated Limits system creates a secure and stable environment for users by adjusting continuously every block to cap maximum withdrawals and borrowing within any 12-hour period. This dynamic mechanism, called Expand Percentage, is displayed prominently on the Stats page, giving users transparency and confidence. By blocking the sudden removal of large amounts of funds, Automated Limits guard against black swan events and ensure it would take roughly four days for all liquidity to exit the protocol. This design lets the protocol unwind safely within five days, keeping things stable while still meeting user needs effectively.
Undercollaterized fToken
As a liquidity layer, every protocol built on Fluid draws liquidity from the same pool. Excessive access to liquidity or significant asset devaluation can affect the liquidity layer and leave depositors under-collateralized. Governance manages this, along with how much each protocol can tap into the liquidity layer. If an asset becomes undercollateralized or is frozen, it may impact all asset holders until the specific vault or protocol's debt is neutralized and the fToken returns to parity.
Liquidation Risks
Liquidations on Fluid operate neutrally, so anyone can execute and call them. Vaults can be liquidated through an indirect swap, which buys the debt at a slight discount while liquidating the position in the process. Liquidations need accurate price oracles and sufficient on-chain liquidity, and the team actively monitors them. Delayed liquidations can make losses worse. Fluid uses a two-tier liquidation system:
- Liquidation Threshold: Once a position crosses this point, it becomes eligible for liquidation.
- Max Liquidation Threshold: A higher threshold, beyond which the entire 100% of the position can be liquidated to repay outstanding debt.
Oracle Usage Risks
Oracles are a crucial part of DeFi infrastructure. If an oracle reports incorrect data, it may trigger liquidations or incorrect protocol operations, leading to bad debt and loss of user funds. Fluid can use a variety of oracles and can specify oracles for different operations, so the protocol can mitigate risk while serving users.
Interface Web UI
Fluid is a collection of smart contracts deployed on the Ethereum network and reachable through multiple UIs. Users must keep their computers and browsers secure to avoid hacks. Malicious actors can spoof or scam users, which may lead to a loss of funds.
Governance and DAO Risks
Fluid's governance relies on DAO decisions that shape protocol operations and risk management, so proper alignment and management are crucial to keeping the protocol stable and users satisfied.
Phishing and Hacks
Fluid puts security measures in place against breaches, including hacks and cyber-attacks. Users must also take precautions to protect their assets and their interactions with the protocol.
Individual Asset Risk
Fluid onboards a range of assets, each carrying different risks. For example, weETH is available as collateral but not for borrowing. Users must understand the risks tied to each asset, including pricing methodologies and oracle use.
LRTs and Stablecoins
Liquid Restaking Tokens (LRTs) and stablecoins such as USDC and USDT carry specific risks. Users must depend on providers for restaking and stay aware of possible actions by centralized institutions that could affect Fluid.
By using Fluid, you acknowledge and accept these risks. It is crucial to stay informed and exercise caution when interacting with the protocol.