# Table of Contents - [About Secured Finance | Secured Finance Docs](#about-secured-finance-secured-finance-docs) - [Vision & Mission | Secured Finance Docs](#vision-mission-secured-finance-docs) - [Ecosystem Overview | Secured Finance Docs](#ecosystem-overview-secured-finance-docs) - [Roadmap | Secured Finance Docs](#roadmap-secured-finance-docs) - [Roadmap 2023 | Secured Finance Docs](#roadmap-2023-secured-finance-docs) - [Roadmap 2024 | Secured Finance Docs](#roadmap-2024-secured-finance-docs) - [DeFi vs CeFi | Secured Finance Docs](#defi-vs-cefi-secured-finance-docs) - [Roadmap 2025 | Secured Finance Docs](#roadmap-2025-secured-finance-docs) - [Wallet Setup | Secured Finance Docs](#wallet-setup-secured-finance-docs) - [DeFi Starter Guide | Secured Finance Docs](#defi-starter-guide-secured-finance-docs) - [Smart Contracts | Secured Finance Docs](#smart-contracts-secured-finance-docs) - [DEX | Secured Finance Docs](#dex-secured-finance-docs) - [Governance Tokens | Secured Finance Docs](#governance-tokens-secured-finance-docs) - [Gas Fees | Secured Finance Docs](#gas-fees-secured-finance-docs) - [Overview | Secured Finance Docs](#overview-secured-finance-docs) - [Contracts and Security | Secured Finance Docs](#contracts-and-security-secured-finance-docs) - [DApps | Secured Finance Docs](#dapps-secured-finance-docs) - [Core Mechanics | Secured Finance Docs](#core-mechanics-secured-finance-docs) - [White Paper | Secured Finance Docs](#white-paper-secured-finance-docs) - [Concept Paper | Secured Finance Docs](#concept-paper-secured-finance-docs) - [Liquidation | Secured Finance Docs](#liquidation-secured-finance-docs) - [Overview | Secured Finance Docs](#overview-secured-finance-docs) - [Creating Your First Trove | Secured Finance Docs](#creating-your-first-trove-secured-finance-docs) - [Advanced Topics | Secured Finance Docs](#advanced-topics-secured-finance-docs) - [Core Mechanics | Secured Finance Docs](#core-mechanics-secured-finance-docs) - [Lending Assets | Secured Finance Docs](#lending-assets-secured-finance-docs) - [Redemption | Secured Finance Docs](#redemption-secured-finance-docs) - [FAQs | Secured Finance Docs](#faqs-secured-finance-docs) - [System Overview | Secured Finance Docs](#system-overview-secured-finance-docs) - [Getting Test USDFC on Testnet | Secured Finance Docs](#getting-test-usdfc-on-testnet-secured-finance-docs) - [Getting Started | Secured Finance Docs](#getting-started-secured-finance-docs) - [Using the Stability Pool | Secured Finance Docs](#using-the-stability-pool-secured-finance-docs) - [Borrowing Assets | Secured Finance Docs](#borrowing-assets-secured-finance-docs) - [Standardization | Secured Finance Docs](#standardization-secured-finance-docs) - [Platform Guide | Secured Finance Docs](#platform-guide-secured-finance-docs) - [Managing Positions | Secured Finance Docs](#managing-positions-secured-finance-docs) - [Monitoring Your Position | Secured Finance Docs](#monitoring-your-position-secured-finance-docs) - [Order Life Cycle | Secured Finance Docs](#order-life-cycle-secured-finance-docs) - [Overview | Secured Finance Docs](#overview-secured-finance-docs) - [Recovery Mode | Secured Finance Docs](#recovery-mode-secured-finance-docs) - [Campaign | Secured Finance Docs](#campaign-secured-finance-docs) - [Portfolio | Secured Finance Docs](#portfolio-secured-finance-docs) - [Collateralization | Secured Finance Docs](#collateralization-secured-finance-docs) - [Protocol Fees | Secured Finance Docs](#protocol-fees-secured-finance-docs) - [Privacy Policy | Secured Finance Docs](#privacy-policy-secured-finance-docs) - [Order Type | Secured Finance Docs](#order-type-secured-finance-docs) - [Contracts and Security | Secured Finance Docs](#contracts-and-security-secured-finance-docs) - [Markets | Secured Finance Docs](#markets-secured-finance-docs) - [Mint & Borrow | Secured Finance Docs](#mint-borrow-secured-finance-docs) - [Tokenomics | Secured Finance Docs](#tokenomics-secured-finance-docs) - [Media Kit | Secured Finance Docs](#media-kit-secured-finance-docs) - [DAOs | Secured Finance Docs](#daos-secured-finance-docs) - [Trading | Secured Finance Docs](#trading-secured-finance-docs) - [Minting USDFC Step-by-Step | Secured Finance Docs](#minting-usdfc-step-by-step-secured-finance-docs) - [How Liquidation Works | Secured Finance Docs](#how-liquidation-works-secured-finance-docs) - [Mark to Market | Secured Finance Docs](#mark-to-market-secured-finance-docs) - [Secured Finance Coin (SFC) | Secured Finance Docs](#secured-finance-coin-sfc-secured-finance-docs) - [Governance | Secured Finance Docs](#governance-secured-finance-docs) - [The Trove System | Secured Finance Docs](#the-trove-system-secured-finance-docs) - [Safety Measures | Secured Finance Docs](#safety-measures-secured-finance-docs) - [ZC Bond Price to APR | Secured Finance Docs](#zc-bond-price-to-apr-secured-finance-docs) - [Legal | Secured Finance Docs](#legal-secured-finance-docs) - [Liquidators | Secured Finance Docs](#liquidators-secured-finance-docs) - [Liquidation | Secured Finance Docs](#liquidation-secured-finance-docs) - [Support & Contacts | Secured Finance Docs](#support-contacts-secured-finance-docs) - [Order Book System | Secured Finance Docs](#order-book-system-secured-finance-docs) - [Introduction | Secured Finance Docs](#introduction-secured-finance-docs) - [Managing Collateral Effectively | Secured Finance Docs](#managing-collateral-effectively-secured-finance-docs) - [Terms of Use | Secured Finance Docs](#terms-of-use-secured-finance-docs) - [Bug Bounty | Secured Finance Docs](#bug-bounty-secured-finance-docs) - [Bridge | Secured Finance Docs](#bridge-secured-finance-docs) - [ZC Bond Collateral | Secured Finance Docs](#zc-bond-collateral-secured-finance-docs) - [Advanced Topics | Secured Finance Docs](#advanced-topics-secured-finance-docs) - [Getting Started | Secured Finance Docs](#getting-started-secured-finance-docs) - [SDK Reference | Secured Finance Docs](#sdk-reference-secured-finance-docs) - [Secured Finance Points (SFP) v2 | Secured Finance Docs](#secured-finance-points-sfp-v2-secured-finance-docs) - [Redeeming USDFC | Secured Finance Docs](#redeeming-usdfc-secured-finance-docs) - [Fixed Maturity | Secured Finance Docs](#fixed-maturity-secured-finance-docs) - [Auto-Rolling | Secured Finance Docs](#auto-rolling-secured-finance-docs) - [Fixed-Rate Lending SDK | Secured Finance Docs](#fixed-rate-lending-sdk-secured-finance-docs) - [Market Dynamics | Secured Finance Docs](#market-dynamics-secured-finance-docs) - [Orderbook Deep Dive | Secured Finance Docs](#orderbook-deep-dive-secured-finance-docs) - [USDFC Logo | Secured Finance Docs](#usdfc-logo-secured-finance-docs) - [Fixed-Rate Lending Subgraph | Secured Finance Docs](#fixed-rate-lending-subgraph-secured-finance-docs) - [Price Discovery for Auto-Rolling | Secured Finance Docs](#price-discovery-for-auto-rolling-secured-finance-docs) - [Secured Finance Logo | Secured Finance Docs](#secured-finance-logo-secured-finance-docs) - [Tokenization | Secured Finance Docs](#tokenization-secured-finance-docs) - [APR vs APY | Secured Finance Docs](#apr-vs-apy-secured-finance-docs) - [Discount Factor | Secured Finance Docs](#discount-factor-secured-finance-docs) - [Case Study: Order Status & Transition | Secured Finance Docs](#case-study-order-status-transition-secured-finance-docs) - [New Market Listing and Delisting | Secured Finance Docs](#new-market-listing-and-delisting-secured-finance-docs) - [Points | Secured Finance Docs](#points-secured-finance-docs) - [Zero-Coupon Bonds | Secured Finance Docs](#zero-coupon-bonds-secured-finance-docs) - [Query Examples | Secured Finance Docs](#query-examples-secured-finance-docs) - [API Reference | Secured Finance Docs](#api-reference-secured-finance-docs) - [Emergency Global Settlement | Secured Finance Docs](#emergency-global-settlement-secured-finance-docs) - [Secured Finance Points (SFP) v1 | Secured Finance Docs](#secured-finance-points-sfp-v1-secured-finance-docs) - [Risk Disclaimer | Secured Finance Docs](#risk-disclaimer-secured-finance-docs) - [Supported Currencies | Secured Finance Docs](#supported-currencies-secured-finance-docs) - [Protocol Fees | Secured Finance Docs](#protocol-fees-secured-finance-docs) - [Genesis Value | Secured Finance Docs](#genesis-value-secured-finance-docs) - [Liquidation Case Study | Secured Finance Docs](#liquidation-case-study-secured-finance-docs) - [ZC Collateral Case Study | Secured Finance Docs](#zc-collateral-case-study-secured-finance-docs) - [Circuit Breaker | Secured Finance Docs](#circuit-breaker-secured-finance-docs) - [Orderbook Rotation | Secured Finance Docs](#orderbook-rotation-secured-finance-docs) - [Red Black Tree | Secured Finance Docs](#red-black-tree-secured-finance-docs) - [USDFC SDK | Secured Finance Docs](#usdfc-sdk-secured-finance-docs) - [Compound Factor | Secured Finance Docs](#compound-factor-secured-finance-docs) - [Base Price Adjustment | Secured Finance Docs](#base-price-adjustment-secured-finance-docs) --- # About Secured Finance | Secured Finance Docs ![Page cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-bcac6b4b955edd3e596de0e2cf0d1dd1ffcb77be%252Fsecuredfinance_background2%28dark%29_twitter.png%3Falt%3Dmedia&width=1248&dpr=3&quality=100&sign=3f222cdf&sv=2) Last edited: 28/10/2025 Secured Finance is a Decentralized Finance (DeFi) protocol that empowers you to engage directly with next-generation financial infrastructure. By connecting your wallet, you can access our services without intermediaries like banks or brokers—no third-party custodians required. With Secured Finance, you hold the keys to permissionless financial freedom. Our vision emerged in the aftermath of the LIBOR scandal, guided by the belief that blockchain technology can reshape financial systems with transparency and reliability. We're building a bridge between traditional finance and the boundless possibilities of DeFi. [hashtag](https://docs.secured.finance/#our-core-protocols) Our Core Protocols ----------------------------------------------------------------------------------- Our platform is built on two innovative protocols: * **USDFC Stablecoin:** A dollar-pegged token on the Filecoin blockchain that provides liquidity for Filecoin stakeholders, miners, and DeFi users alike. As the first decentralized stablecoin fully collateralized by Filecoin, USDFC strengthens liquidity across the Filecoin network and establishes a solid foundation for expanded DeFi development. * **Fixed-Rate Lending:** A fully on-chain, fixed-rate, fixed-term lending and borrowing platform operating across Ethereum, Arbitrum, and Filecoin chains. At its core is our unique Zero-Coupon Bond instrument, which powers secure and efficient crypto asset lending and borrowing with predictable returns. [hashtag](https://docs.secured.finance/#getting-started) Getting Started ----------------------------------------------------------------------------- Ready to experience the future of decentralized finance? Choose your path: * **USDFC Stablecoin:** Mint, borrow, and manage your USDFC by opening a Trove - [Beginners Guide](https://docs.secured.finance/usdfc-stablecoin/getting-started) * **Fixed-Rate Lending:** Lend and borrow at fixed rates with tokenized debt - [Beginners Guide](https://docs.secured.finance/fixed-rate-lending/getting-started) Visit our [apparrow-up-right](https://app.secured.finance/) to start your journey with Secured Finance today! [NextVision & Missionchevron-right](https://docs.secured.finance/introduction/mission-and-vision) Last updated 4 months ago --- # Vision & Mission | Secured Finance Docs Dear Fellow Navigators of the Financial Future, In the aftermath of the [LIBOR scandalarrow-up-right](https://en.wikipedia.org/wiki/Libor_scandal) , a hopeful vision emerged amidst the challenges of centralized power in financial intermediaries. Secured Finance wasn’t merely born; it arose, guided by an unwavering belief that through the blockchain, we can reshape our financial destiny, constructing a future where every transaction is not just a procedure but a testament to transparency and reliability. Here, our smart contracts diligently manage the entire financial trade lifecycle, orchestrating every step from bond issuance to redemption. But at Secured Finance, we see beyond transactions; we envision a bridge that seamlessly connects the reliability of traditional finance with the boundless possibilities of decentralized finance. ### [hashtag](https://docs.secured.finance/introduction/mission-and-vision#vision-and-mission) **Vision and Mission** We dream of a world where financial systems are not just robust but are pillars of democratization and equality, where every individual, regardless of their background or location, can unreservedly access financial services. Our mission is not merely to create a platform but to sculpt a universe where a suite of financial services, from the simplest transactions to the most complex financial products, are underpinned by transparency, security, and inclusivity. At Secured Finance, we’re not just building; we’re nurturing a [genuine yield curvearrow-up-right](https://app.secured.finance/) for decentralized finance, crafting an ecosystem that is not just efficient but radiates fairness and equal opportunity. ### [hashtag](https://docs.secured.finance/introduction/mission-and-vision#our-team) **Our Team** Steering this venture is our team, a dynamic coalition of seasoned financial experts, software engineers, and visionary digital strategists, each contributing profound expertise in both traditional finance and blockchain technology. We are more than a team; we are pioneers of a revolutionary spirit, passionately and unrelentingly navigating toward innovative financial solutions that resonate with the vibrant rhythms of our global economy. Our steadfast commitment to transparency and continuous learning is reflected luminously in our [regular updatesarrow-up-right](https://x.com/secured_fi) and the [insightful articlesarrow-up-right](https://medium.com/secured-finance) we thoughtfully share with our community. Join us as we sail towards a future where finance is not merely a system but a steadfast ally, ensuring every transaction is not only secure and inclusive but also radiates unbridled innovative potential. In the Spirit of the Hopeful Forward Movement, Secured Finance Team Special Thanks to Protocol Labs and GSR [PreviousAbout Secured Financechevron-left](https://docs.secured.finance/) [NextEcosystem Overviewchevron-right](https://docs.secured.finance/introduction/ecosystem-overview) Last updated 10 months ago * [Vision and Mission](https://docs.secured.finance/introduction/mission-and-vision#vision-and-mission) * [Our Team](https://docs.secured.finance/introduction/mission-and-vision#our-team) sun-brightdesktopmoon sun-brightdesktopmoon --- # Ecosystem Overview | Secured Finance Docs _(Placeholder for Ecosystem Overview content)_ This section will provide a high-level overview of the Secured Finance ecosystem, including its core components, partners, and integrations. [PreviousVision & Missionchevron-left](https://docs.secured.finance/introduction/mission-and-vision) [NextRoadmapchevron-right](https://docs.secured.finance/introduction/roadmap) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Roadmap | Secured Finance Docs circle-info Token Launch timing will be TBD Product Release Notes on [GitHubarrow-up-right](https://github.com/Secured-Finance/secured-finance-app/releases) ### [hashtag](https://docs.secured.finance/introduction/roadmap#id-2026-q1q2) 2026 Q1+Q2 * Yearn V3 Strategy Vault Launch for JPYC * USDFC App UI V2 * RWA Token Collateralization & Partnership * Fixed-Rate Lending Market Expansion to Another Chain * Vault Integration for Delta Neutral Strategy * SFC Launch & DAO Governance * SFC Token Sale (TBD: Private & Public) * SFC Tokenomics Announcement * Quarterly Markets Launch via Itayose & Auto-roll [PreviousEcosystem Overviewchevron-left](https://docs.secured.finance/introduction/ecosystem-overview) [NextRoadmap 2025chevron-right](https://docs.secured.finance/introduction/roadmap/roadmap-2025) Last updated 1 month ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Roadmap 2023 | Secured Finance Docs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-5f4da305b34d60fe1e110be48275a860b8915cc3%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=dbf67185&sv=2) Q4 Roadmap ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2023#september-2023) September 2023 * **Week 1-3**: * check Development & Launch Version 0.6.0 on Testnet &#xNAN;_Major UI & smart contract upgrades_ * **Week 4**: * check SEP25 Itayose & Auto-roll Simulation * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2023#october-2023) October 2023 * **Week 1**: * check Orderbook Test * **Week 2**: * check Delisting & Liquidation Simulation on Dev * **Week 3**: * check Launch V0.6.5 * check Global Emergency Settlement Test * **Week 4**: * check Launch V0.7.0 * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2023#november-2023) November 2023 * **Week 1**: * check Global Itayose Simulation * **Week 2**: * check Open Sourcing & Trading Strategy AMA * **Week 3**: * check Security & Attack Simulation * **Week 4**: * check Market Vulnerability Testing * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2023#december-2023) December 2023 * **Week 1-2**: * check Market Readiness & Onboarding Campaign * **Week 3-4**: * check Mainnet Launch V1.0.0 🚀 * check Official Global Pre-Open Market & Itayose 🚀🚀 * check Trading Live! 🚀🚀🚀 [PreviousRoadmap 2024chevron-left](https://docs.secured.finance/introduction/roadmap/roadmap-2024) [NextDeFi Starter Guidechevron-right](https://docs.secured.finance/introduction/defi-starter-guide) Last updated 1 year ago * [September 2023](https://docs.secured.finance/introduction/roadmap/roadmap-2023#september-2023) * [October 2023](https://docs.secured.finance/introduction/roadmap/roadmap-2023#october-2023) * [November 2023](https://docs.secured.finance/introduction/roadmap/roadmap-2023#november-2023) * [December 2023](https://docs.secured.finance/introduction/roadmap/roadmap-2023#december-2023) sun-brightdesktopmoon sun-brightdesktopmoon --- # Roadmap 2024 | Secured Finance Docs ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q4) 2024 Q4 * check Stablecoin Testnet Launch * check Trade Campaign ([Earn Yield Quest #1arrow-up-right](https://app.galxe.com/quest/securedfi/GCytGtVP2U) ) * check Stablecoin Smart Contract Internal Audit * check DEC2024 [Markets Itayose & Auto-rollarrow-up-right](https://medium.com/secured-finance/itayose-and-auto-rolling-report-q4-2024-88fd9925d655) (Pre-Order 12/20-12/27) circle-check Achieved 1.5 Million TVL, 5.7k users * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q3) 2024 Q3 * check Stablecoin Development (like DAI on Filecoin Chain) * check Zero-Coupon Bond Tokenization * check UI/UX Major Upgrade * check Cross-Chain Bridge Integration * check Partnership announcement with GLIF * check SEP2024 Markets Itayose & Auto-roll (Pre-Order 9/20-9/27) circle-check Achieved 750k TVL, 5k users, and 1.5k Itayose participants * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q2) 2024 Q2 **June**: * check FVM Launch (Filecoin mainnet deployment) * check SFP Launch (Filecoin, Ethereum, Arbitrum, Avalanche, Polygon zkEVM) * check Filecoin Infinity Quest Stage 1 - Deposit FIL/iFIL * check Filecoin Infinity Quest Stage 2 - Limit Orders and Active Positions * check JUN2024 Markets Itayose & Auto-roll (Pre-Order 6/21-6/28) **May**: * check FVM launch is ready * check UI/UX major upgrade done & ready for development * check Secured Finance Point (SFP) incentive design & system development **April**: * check UI/UX audit for the advanced trading terminal (24 improvements) * check FVM support and testnet deployment * * * ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q1) 2024 Q1 **March**: * check Historical chart deployment * check Zero-Coupon Bond Tokenization Deployment * check MAR2024 Markets Itayose & Auto-roll **February**: * check Subgraph revamp for improving order state and historical charts * check Incorporate ERC-2612 to combine approval & transfer to enhance UX **January**: * check Multi-chain Strategy & Launch (Arbitrum, Avalanche, Polygon zkEVM) [PreviousRoadmap 2025chevron-left](https://docs.secured.finance/introduction/roadmap/roadmap-2025) [NextRoadmap 2023chevron-right](https://docs.secured.finance/introduction/roadmap/roadmap-2023) Last updated 1 month ago * [2024 Q4](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q4) * [2024 Q3](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q3) * [2024 Q2](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q2) * [2024 Q1](https://docs.secured.finance/introduction/roadmap/roadmap-2024#id-2024-q1) sun-brightdesktopmoon sun-brightdesktopmoon --- # DeFi vs CeFi | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#overview) Overview ----------------------------------------------------------------------------------------------------------- Centralized Finance (CeFi) and Decentralized Finance (DeFi) represent two fundamentally different approaches to financial services. Understanding the differences between these paradigms is essential for anyone entering the blockchain ecosystem, as it helps clarify the unique value propositions and trade-offs of decentralized systems. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#centralized-finance-cefi) Centralized Finance (CeFi) Centralized Finance refers to traditional financial services that operate through central authorities like banks, brokerages, and exchanges. These institutions: * Act as trusted intermediaries for all transactions * Maintain centralized control over user funds and data * Implement Know Your Customer (KYC) and Anti-Money Laundering (AML) procedures * Operate under regulatory frameworks established by governments * Provide customer support and dispute resolution services ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#decentralized-finance-defi) Decentralized Finance (DeFi) Decentralized Finance refers to financial services built on blockchain networks that operate without central authorities. These systems: * Use smart contracts (self-executing code) to automate financial operations * Operate on permissionless networks accessible to anyone with an internet connection * Maintain transparency with all transactions recorded on public blockchains * Function without requiring identity verification in most cases * Allow direct peer-to-peer transactions without intermediaries [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#key-parameters) Key Parameters ----------------------------------------------------------------------------------------------------------------------- Parameter CeFi DeFi Control Centralized entities Smart contracts & protocols Access Requires approval & KYC Open to anyone with a wallet Custody Institution holds assets User retains full custody Transparency Limited visibility Full on-chain transparency Regulation Comprehensive oversight Limited or evolving regulation Speed Fast for approved users Variable based on network congestion Cost Fixed fees Variable gas fees [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#examples) Examples ----------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#cefi-applications) CeFi Applications * Traditional banks and credit unions * Centralized cryptocurrency exchanges (Coinbase, Binance) * Payment processors (PayPal, Visa) * Investment platforms with managed funds ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#defi-applications) DeFi Applications * Decentralized exchanges (DEXs) * Lending and borrowing protocols * Stablecoin systems * Automated market makers * Yield farming platforms [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------- **Is one system better than the other?** Neither system is inherently superior—each has advantages for different use cases. CeFi offers familiarity, customer support, and regulatory protection, while DeFi provides greater financial autonomy, innovation, and accessibility. **Can I use both CeFi and DeFi?** Yes, many users employ a hybrid approach, using CeFi services for fiat on/off ramps and DeFi for specific financial activities that benefit from decentralization. **What are the main risks of each system?** CeFi risks include counterparty risk, censorship, and potential data breaches. DeFi risks include smart contract vulnerabilities, user error, and market liquidity. **Do I need technical knowledge to use DeFi?** While basic blockchain knowledge is helpful, user interfaces have improved significantly. However, understanding the underlying concepts helps users make informed decisions and avoid common pitfalls. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------- * [Understanding Gas](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) * [Wallet Setup & Management](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) [PreviousDeFi Starter Guidechevron-left](https://docs.secured.finance/introduction/defi-starter-guide) [NextWallet Setupchevron-right](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#how-it-works) * [Centralized Finance (CeFi)](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#centralized-finance-cefi) * [Decentralized Finance (DeFi)](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#decentralized-finance-defi) * [Key Parameters](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#key-parameters) * [Examples](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#examples) * [CeFi Applications](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#cefi-applications) * [DeFi Applications](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#defi-applications) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Roadmap 2025 | Secured Finance Docs ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q4) 2025 Q4 * check JPYC Integration on Lending Apps * check Quarterly Markets Launch via Itayose & Auto-roll ([Reportarrow-up-right](https://medium.com/secured-finance/itayose-auto-rolling-report-q4-2025-02dece8e1abb) ) * check Cumulative Volume surpassed 20 million dollar on Lending Apps ([DeFi Llamaarrow-up-right](https://defillama.com/protocol/dexs/secured-finance) ) ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q3) 2025 Q3 * check USDFC Payment Gateway (HTTP 402 & EIP-3009) * check PL Genesis Hackathon ([recaparrow-up-right](https://medium.com/secured-finance/hack-the-decentralized-economy-with-usdfc-on-filecoin-f52c095928b1) ) * check Cumulative Volume surpassed 3.0 million dollar on Lending Apps ([DeFi Llamaarrow-up-right](https://defillama.com/protocol/dexs/secured-finance) ) * check Quarterly Markets Launch via Itayose & Auto-roll ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q2) 2025 Q2 * check USDFC Stablecoin Beta Launch on Filecoin Mainnet * check USDFC Stablecoin Official Launch on Filecoin Mainnet ([Reportarrow-up-right](https://medium.com/secured-finance/usdfc-is-about-to-go-public-b3f4f82f64a3) ) * check Secured Finance Product Roadmap Update * check JUN2025 Markets Itayose & Auto-roll (Pre-Order 6/20-6/26: [Reportarrow-up-right](https://medium.com/secured-finance/itayose-auto-rolling-report-q2-2025-026c959056b4) ) * check Cumulative Volume surpassed 1.5 million dollar on Lending Apps ([DeFi Llamaarrow-up-right](https://defillama.com/protocol/dexs/secured-finance) ) ### [hashtag](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q1) 2025 Q1 * check USDFC Stablecoin Alpha Launch on Filecoin Mainnet * check USDFC Fixed-Rate Lending Market Launch * check USDFC Stablecoin Smart Contract 2nd Audit ([Reportarrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts/blob/develop/audits/2025-03-Decurity.pdf) ) * check USDFC Stablecoin Smart Contract 1st Audit ([Reportarrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts/blob/develop/audits/2025-01-Hexens.pdf) ) * check [Collaboration Announcementarrow-up-right](https://medium.com/secured-finance/secured-finances-fixed-income-lending-stablecoin-protocol-collaborate-with-parasail-for-liquid-7626766bfd5b) with Parasail * check [Partnership Announcementarrow-up-right](https://medium.com/secured-finance/secured-finance-defi-2-0-1538041ec31a) with Lighthouse * check Parasail's wpFIL integration * check MAR2025 Markets Itayose & Auto-roll (Pre-Order 3/21-3/27: [Reportarrow-up-right](https://medium.com/secured-finance/itayose-and-auto-rolling-report-q1-2025-1c718c2004f4) ) [PreviousRoadmapchevron-left](https://docs.secured.finance/introduction/roadmap) [NextRoadmap 2024chevron-right](https://docs.secured.finance/introduction/roadmap/roadmap-2024) Last updated 1 month ago * [2025 Q4](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q4) * [2025 Q3](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q3) * [2025 Q2](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q2) * [2025 Q1](https://docs.secured.finance/introduction/roadmap/roadmap-2025#id-2025-q1) sun-brightdesktopmoon sun-brightdesktopmoon --- # Wallet Setup | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#overview) Overview ----------------------------------------------------------------------------------------------------------- A cryptocurrency wallet is your gateway to the decentralized finance ecosystem. Unlike traditional wallets, crypto wallets don't actually store your assets—instead, they store the private keys that give you access to your assets on the blockchain. This guide will help you understand different wallet types, set up your first wallet, and implement best practices for security. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------- Cryptocurrency wallets function through a pair of cryptographic keys: 1. **Public Key**: Acts as your address that others can use to send you assets (similar to an email address) 2. **Private Key**: The secret code that gives you control over the assets (similar to a password, but cannot be reset if lost) When you "create a wallet," you're generating these keys and establishing an interface to interact with them. Your assets always remain on the blockchain, with your wallet providing the authorization to move or manage them. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#types-of-wallets) Types of Wallets There are several types of wallets, each with different security and convenience tradeoffs: * **Hardware Wallets**: Physical devices that store private keys offline (highest security) * **Software Wallets**: Applications installed on computers or smartphones * **Web Wallets**: Browser-based interfaces that can be accessed from any device * **Paper Wallets**: Physical documents containing printed keys (rarely used now) * **Custodial Wallets**: Services where a third party holds your keys (like exchange accounts) [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#step-by-step-wallet-setup) Step-by-Step Wallet Setup --------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-1.-choose-your-wallet-type) 1\. Choose Your Wallet Type \[THIS IS WHERE AN IMAGE WOULD SHOW DIFFERENT WALLET OPTIONS\] For beginners interacting with Secured Finance, we recommend starting with a non-custodial software wallet like MetaMask, which supports both Ethereum and Filecoin networks. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-2.-install-the-wallet) 2\. Install the Wallet \[THIS IS WHERE AN IMAGE WOULD SHOW THE INSTALLATION PROCESS\] Visit the official website or app store to download the wallet application. Always verify you're downloading from the authentic source to avoid scams. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-3.-create-a-new-wallet) 3\. Create a New Wallet \[THIS IS WHERE AN IMAGE WOULD SHOW THE WALLET CREATION SCREEN\] Follow the wallet's setup process, which typically involves: * Creating a password for the application * Generating a new wallet * Backing up your recovery phrase ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-4.-secure-your-recovery-phrase) 4\. Secure Your Recovery Phrase \[THIS IS WHERE AN IMAGE WOULD SHOW A RECOVERY PHRASE BEING WRITTEN DOWN\] Your recovery phrase (also called seed phrase or mnemonic) is a series of 12-24 words that can restore access to your wallet. This is extremely important: * Write it down on paper (multiple copies) * Store in secure, private locations * Never store digitally or take photos of it * Never share it with anyone ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-5.-configure-network-settings) 5\. Configure Network Settings \[THIS IS WHERE AN IMAGE WOULD SHOW NETWORK CONFIGURATION\] To interact with Secured Finance on Ethereum or Filecoin: * Open your wallet settings * Add the Ethereum or Filecoin network * Verify the network details (RPC URL, Chain ID, etc.) ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-6.-fund-your-wallet) 6\. Fund Your Wallet \[THIS IS WHERE AN IMAGE WOULD SHOW SENDING FUNDS TO THE WALLET\] You'll need some ETH or FIL (Ethereum or Filecoin's native token) to pay for transaction fees. You can acquire these from cryptocurrency exchanges. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#security-best-practices) Security Best Practices ----------------------------------------------------------------------------------------------------------------------------------------- * **Use Hardware Wallets** for storing significant amounts * **Enable Two-Factor Authentication** when available * **Regularly Update** your wallet software * **Verify All Transactions** before confirming * **Use Different Wallets** for different purposes (daily use vs. long-term storage) * **Be Cautious of Phishing** attempts requesting your private keys or seed phrase * **Test with Small Amounts** before making large transfers [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------- **What happens if I lose my recovery phrase?** If you lose both your device and recovery phrase, your funds will be permanently inaccessible. There is no "forgot password" option in decentralized systems. **Can I have multiple wallets?** Yes, you can create and use multiple wallets for different purposes or networks. **Do I need different wallets for different cryptocurrencies?** Many modern wallets support multiple cryptocurrencies, but some assets may require specific wallet types. **Are mobile wallets safe?** Mobile wallets can be secure if your device is free from malware and you follow security best practices. **What's the difference between custodial and non-custodial wallets?** In custodial wallets, a third party (like an exchange) controls your private keys. In non-custodial wallets, only you control your keys—giving you full ownership but also full responsibility. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------- * [Understanding Gas](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) * [USDFC Stablecoin Overview](https://docs.secured.finance/usdfc-stablecoin/overview) [PreviousDeFi vs CeFichevron-left](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) [NextGas Feeschevron-right](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#how-it-works) * [Types of Wallets](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#types-of-wallets) * [Step-by-Step Wallet Setup](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#step-by-step-wallet-setup) * [1\. Choose Your Wallet Type](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-1.-choose-your-wallet-type) * [2\. Install the Wallet](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-2.-install-the-wallet) * [3\. Create a New Wallet](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-3.-create-a-new-wallet) * [4\. Secure Your Recovery Phrase](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-4.-secure-your-recovery-phrase) * [5\. Configure Network Settings](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-5.-configure-network-settings) * [6\. Fund Your Wallet](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#id-6.-fund-your-wallet) * [Security Best Practices](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#security-best-practices) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # DeFi Starter Guide | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide#overview) Overview ---------------------------------------------------------------------------------------------- This DeFi Starter Guide provides essential knowledge for newcomers to decentralized finance. Whether you're completely new to blockchain technology or transitioning from traditional finance, this guide will help you understand the fundamental concepts, tools, and practices needed to navigate the DeFi ecosystem safely and effectively. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide#what-youll-learn) What You'll Learn --------------------------------------------------------------------------------------------------------------- * The key differences between traditional finance (CeFi) and decentralized finance (DeFi) * How to set up and manage cryptocurrency wallets securely * Understanding blockchain transaction fees and gas costs * How to interact with decentralized applications (DApps) * The role of Decentralized Autonomous Organizations (DAOs) in the ecosystem [hashtag](https://docs.secured.finance/introduction/defi-starter-guide#key-components) Key Components ---------------------------------------------------------------------------------------------------------- The DeFi ecosystem consists of several interconnected components that work together to provide self-controlled financial solutions without intermediaries: * **Wallets**: Digital tools for storing and managing your crypto assets * **Smart Contracts**: Self-executing code that powers DeFi applications * **Decentralized Exchanges (DEXs)**: Platforms for trading assets without intermediaries * **Lending Protocols**: Systems that enable borrowing and lending without banks * **Stablecoins**: Cryptocurrencies designed to maintain stable value [hashtag](https://docs.secured.finance/introduction/defi-starter-guide#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------- * [About Secured Finance](https://docs.secured.finance/) * [USDFC Stablecoin Overview](https://docs.secured.finance/usdfc-stablecoin/overview) * [Fixed-Rate Lending Overview](https://docs.secured.finance/fixed-rate-lending/overview) [PreviousRoadmap 2023chevron-left](https://docs.secured.finance/introduction/roadmap/roadmap-2023) [NextDeFi vs CeFichevron-right](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide#overview) * [What You'll Learn](https://docs.secured.finance/introduction/defi-starter-guide#what-youll-learn) * [Key Components](https://docs.secured.finance/introduction/defi-starter-guide#key-components) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Smart Contracts | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#overview) Overview -------------------------------------------------------------------------------------------------------------- Smart contracts are self-executing programs that run on blockchain networks and automatically enforce agreements between parties without requiring intermediaries. They serve as the foundation for decentralized applications (DApps) and are essential building blocks of the DeFi ecosystem. Smart contracts enable complex financial operations to be executed transparently, securely, and without relying on traditional financial institutions. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------- Smart contracts function based on predefined conditions coded into their logic. When these conditions are met, the contract automatically executes the specified actions. The process typically works as follows: 1. **Creation**: Developers write code that defines the rules and conditions of the contract 2. **Deployment**: The code is deployed to a blockchain network where it receives a unique address 3. **Interaction**: Users interact with the contract by sending transactions to its address 4. **Execution**: When triggered by a transaction, the contract executes its code across all nodes in the network 5. **State Change**: The blockchain's state is updated to reflect the outcome of the execution Smart contracts are: * **Immutable**: Once deployed, their code cannot be changed (though upgradeable patterns exist) * **Deterministic**: Given the same input, they always produce the same output * **Transparent**: Their code and all interactions are visible on the blockchain * **Trustless**: They execute exactly as programmed without relying on trusted third parties ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#common-smart-contract-languages) Common Smart Contract Languages Different blockchain platforms support different programming languages for smart contract development: * **Solidity**: The primary language for Ethereum and EVM-compatible chains * **Rust**: Used for Solana and Near Protocol * **Move**: Developed for the Diem blockchain and adopted by Aptos and Sui * **Vyper**: An alternative language for Ethereum focused on security * **Ink**: Used for Polkadot's parachain smart contracts [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#key-parameters) Key Parameters -------------------------------------------------------------------------------------------------------------------------- Parameter Description Importance Gas Limit Maximum computational resources allowed Prevents infinite loops and DoS attacks State Variables Data stored in the contract Determines contract's memory footprint and gas costs Access Controls Permissions for different functions Critical for security and privilege management External Dependencies Calls to other contracts Potential security vulnerabilities if not handled properly Upgradeability Ability to modify contract logic Trade-off between flexibility and security [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#examples) Examples -------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#token-contracts) Token Contracts The most common smart contracts in DeFi are token contracts that implement standards like ERC-20 (fungible tokens) or ERC-721 (non-fungible tokens). These contracts define: * Token supply and distribution * Transfer mechanisms * Approval systems for third-party spending * Optional features like minting, burning, or pausing ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#defi-protocol-contracts) DeFi Protocol Contracts More complex smart contracts power DeFi protocols: * **Lending Protocols**: Manage deposits, loans, interest rates, and liquidations * **Automated Market Makers**: Facilitate token swaps using mathematical formulas * **Staking Contracts**: Handle token delegation and reward distribution * **Governance Systems**: Enable decentralized decision-making through voting [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------ **What happens if there's a bug in a smart contract?** Unlike traditional software, smart contracts cannot be directly patched once deployed. If a bug is discovered, developers typically must deploy a new contract and migrate users to it. Serious vulnerabilities can lead to loss of funds, as seen in several high-profile DeFi hacks. **Are smart contracts legally binding?** The legal status of smart contracts varies by jurisdiction. Some regions have begun recognizing them as legally binding agreements, while others consider them technological tools rather than legal contracts. **How are smart contracts verified?** Smart contract verification involves publishing the source code alongside the deployed bytecode so users can confirm they match. Projects often undergo security audits by specialized firms and may use formal verification techniques to mathematically prove correctness. **Can smart contracts access real-world data?** Smart contracts cannot directly access external data. They rely on oracles—trusted data feeds that bring off-chain information onto the blockchain—for real-world data like price information or weather conditions. **What are the limitations of smart contracts?** Smart contracts face several limitations including: * High execution costs for complex operations * Limited storage capacity * Inability to maintain secrets (all data is public) * Challenges with upgradeability and bug fixes * Dependency on external oracles for off-chain data [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------- * [Understanding DeFi vs CeFi](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) * [Decentralized Exchanges (DEX)](https://docs.secured.finance/introduction/defi-starter-guide/dex) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) * [Understanding Gas Fees](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) * [Understanding DAOs](https://docs.secured.finance/introduction/defi-starter-guide/dao) [PreviousDEXchevron-left](https://docs.secured.finance/introduction/defi-starter-guide/dex) [NextGovernance Tokenschevron-right](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#how-it-works) * [Common Smart Contract Languages](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#common-smart-contract-languages) * [Key Parameters](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#key-parameters) * [Examples](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#examples) * [Token Contracts](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#token-contracts) * [DeFi Protocol Contracts](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#defi-protocol-contracts) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts#related-resources) sun-brightdesktopmoon Copy // Simplified ERC-20 token example contract SimpleToken { mapping(address => uint256) balances; function transfer(address to, uint256 amount) external { require(balances[msg.sender] >= amount, "Insufficient balance"); balances[msg.sender] -= amount; balances[to] += amount; } } sun-brightdesktopmoon --- # DEX | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#overview) Overview -------------------------------------------------------------------------------------------------- Decentralized Exchanges (DEXs) are blockchain-based platforms that enable peer-to-peer trading of cryptocurrencies and digital assets without intermediaries. Unlike centralized exchanges (CEXs), DEXs operate using smart contracts and automated protocols, allowing users to maintain custody of their assets throughout the trading process. DEXs represent a fundamental component of the DeFi ecosystem, embodying the core principles of decentralization, transparency, and user autonomy. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------- DEXs facilitate trading through various mechanisms, with the most common being: ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#automated-market-makers-amms) Automated Market Makers (AMMs) The most popular DEX model uses liquidity pools and mathematical formulas to determine asset prices: 1. **Liquidity Pools**: Users deposit pairs of assets into smart contract-controlled pools 2. **Price Determination**: Asset prices are calculated using formulas like x\*y=k (constant product) 3. **Trading**: Users trade against these pools rather than with other users directly 4. **Liquidity Provision**: Contributors earn fees proportional to their share of the pool ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#order-book-dexs) Order Book DEXs Some DEXs maintain on-chain or hybrid order books similar to traditional exchanges: 1. **Order Matching**: Buy and sell orders are matched based on price and time priority 2. **On-Chain Settlement**: All trades are settled directly on the blockchain 3. **Price Discovery**: Market prices are determined by the highest bid and lowest ask ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#secured-finances-approach) Secured Finance's Approach Secured Finance combines elements of order book systems with innovative fixed-rate lending mechanisms: 1. **Zero-Coupon Bond Trading**: Assets are tokenized as zero-coupon bonds with fixed maturities 2. **Order Book System**: Orders are matched based on price-time priority 3. **On-Chain Settlement**: All transactions are settled on the blockchain (Ethereum, Arbitrum, or Filecoin) 4. **Standardized Contracts**: Fixed maturities and standardized terms enable efficient markets [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#key-differences-dex-vs-cex) Key Differences: DEX vs CEX --------------------------------------------------------------------------------------------------------------------------------------- Parameter Centralized Exchange (CEX) Decentralized Exchange (DEX) Custody Exchange holds user funds Users maintain custody of assets Privacy Enhanced KYC/AML with no transparency Minimal exposure with full transparency Control Central authority makes decisions Governed by smart contracts and often DAOs Security Vulnerable to exchange hacks Vulnerable to smart contract exploits Speed High throughput, instant trades Variable speed based on blockchain congestion Cost Fixed trading fees Variable gas fees plus trading fees Asset Range Typically more trading pairs Limited to blockchain-compatible assets User Experience Generally more intuitive Often requires technical knowledge [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#benefits-of-dexs) Benefits of DEXs ------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#sovereignty-and-control) Sovereignty and Control DEXs allow users to maintain custody of their assets throughout the trading process, eliminating counterparty risk associated with centralized exchanges. This aligns with the core DeFi principle that users should have full control over their financial assets. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#censorship-resistance) Censorship Resistance By operating on decentralized networks, DEXs are resistant to censorship and regulatory shutdowns. This ensures global accessibility regardless of local financial regulations or restrictions. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#transparency) Transparency All transactions on DEXs are recorded on public blockchains, creating an immutable audit trail. This transparency helps build trust in the system as all operations can be independently verified. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#permissionless-innovation) Permissionless Innovation The open-source nature of most DEXs encourages innovation and allows developers to build new features and applications on top of existing protocols, creating a composable financial ecosystem. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#reduced-counterparty-risk) Reduced Counterparty Risk By eliminating the need to trust a central entity with funds, DEXs significantly reduce counterparty risk—the possibility that the exchange might become insolvent, be hacked, or freeze withdrawals. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#secured-finance-as-a-dex-platform) Secured Finance as a DEX Platform ---------------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance operates as a specialized DEX focused on fixed-rate lending and stablecoin issuance: ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#usdfc-stablecoin) USDFC Stablecoin The USDFC stablecoin system functions as a decentralized exchange where: * Users can mint and borrow USDFC by depositing FIL (Filecoin) as collateral * The system maintains price stability through algorithmic mechanisms * Anyone can participate without permission * All operations are transparent and verifiable on-chain ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#fixed-rate-lending-protocol) Fixed-Rate Lending Protocol Secured Finance's lending protocol operates as a specialized DEX for time-value assets: * Lenders and borrowers are matched through an order book system * Zero-coupon bonds are traded representing future value * Fixed rates are discovered through market mechanisms * The protocol is accessible to anyone with a compatible wallet [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------ **How do DEXs make money if they're decentralized?** Most DEXs charge trading fees that are distributed to liquidity providers and/or token holders. Some protocols also direct a portion of fees to a treasury controlled by governance. **Are DEXs completely safe from hacks?** While DEXs eliminate the risk of exchange hacks, they can still be vulnerable to smart contract exploits. Reputable DEXs undergo multiple security audits, but risks remain. Secured Finance prioritizes security through comprehensive audits and formal verification. **Do I need technical knowledge to use a DEX?** Modern DEXs have significantly improved their user interfaces, making them more accessible to non-technical users. However, understanding basic blockchain concepts is still helpful for making informed decisions. **How does Secured Finance differ from other DEXs?** While most DEXs focus on spot trading of cryptocurrencies, Secured Finance specializes in fixed-rate lending and stablecoin issuance, bringing institutional-grade financial instruments to DeFi in a decentralized manner. **Can traditional financial institutions use Secured Finance?** Yes, Secured Finance's protocols are designed to be accessible to both individual users and institutions. The standardized nature of the products makes them compatible with traditional financial frameworks while maintaining decentralization. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dex#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------- * [DeFi vs CeFi](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) * [USDFC Stablecoin Overview](https://docs.secured.finance/usdfc-stablecoin/overview) * [Fixed-Rate Lending Overview](https://docs.secured.finance/fixed-rate-lending/overview) [PreviousDAppschevron-left](https://docs.secured.finance/introduction/defi-starter-guide/dapps) [NextSmart Contractschevron-right](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/dex#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/dex#how-it-works) * [Automated Market Makers (AMMs)](https://docs.secured.finance/introduction/defi-starter-guide/dex#automated-market-makers-amms) * [Order Book DEXs](https://docs.secured.finance/introduction/defi-starter-guide/dex#order-book-dexs) * [Secured Finance's Approach](https://docs.secured.finance/introduction/defi-starter-guide/dex#secured-finances-approach) * [Key Differences: DEX vs CEX](https://docs.secured.finance/introduction/defi-starter-guide/dex#key-differences-dex-vs-cex) * [Benefits of DEXs](https://docs.secured.finance/introduction/defi-starter-guide/dex#benefits-of-dexs) * [Sovereignty and Control](https://docs.secured.finance/introduction/defi-starter-guide/dex#sovereignty-and-control) * [Censorship Resistance](https://docs.secured.finance/introduction/defi-starter-guide/dex#censorship-resistance) * [Transparency](https://docs.secured.finance/introduction/defi-starter-guide/dex#transparency) * [Permissionless Innovation](https://docs.secured.finance/introduction/defi-starter-guide/dex#permissionless-innovation) * [Reduced Counterparty Risk](https://docs.secured.finance/introduction/defi-starter-guide/dex#reduced-counterparty-risk) * [Secured Finance as a DEX Platform](https://docs.secured.finance/introduction/defi-starter-guide/dex#secured-finance-as-a-dex-platform) * [USDFC Stablecoin](https://docs.secured.finance/introduction/defi-starter-guide/dex#usdfc-stablecoin) * [Fixed-Rate Lending Protocol](https://docs.secured.finance/introduction/defi-starter-guide/dex#fixed-rate-lending-protocol) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/dex#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/dex#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Governance Tokens | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#overview) Overview ---------------------------------------------------------------------------------------------------------------- Governance tokens are cryptographic assets that grant holders voting rights and influence over the development and operation of decentralized protocols. Unlike utility tokens that primarily serve functional purposes within applications, governance tokens specifically empower community members to participate in decision-making processes. These tokens form the backbone of decentralized governance systems, enabling protocols to evolve based on stakeholder consensus rather than centralized authority. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------ Governance tokens operate through a combination of token distribution, proposal mechanisms, and voting systems: ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#token-distribution) Token Distribution Protocols distribute governance tokens through various mechanisms: 1. **Airdrops**: Tokens sent directly to user wallets based on past participation 2. **Liquidity Mining**: Rewards for providing liquidity to protocol pools 3. **Initial Offerings**: Token sales to early investors and community members 4. **Protocol Usage**: Rewards for active users of the protocol 5. **Contributor Rewards**: Allocations to developers and contributors ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#proposal-and-voting-process) Proposal and Voting Process The typical governance process follows these steps: 1. **Proposal Creation**: Token holders with a minimum threshold of tokens can submit formal proposals 2. **Discussion Period**: Community members debate the proposal's merits in forums and social channels 3. **Voting Period**: Token holders cast votes, with voting power typically proportional to token holdings 4. **Execution**: If approved, the proposal is implemented through smart contract execution or manual changes ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#voting-mechanisms) Voting Mechanisms Different protocols implement various voting mechanisms: * **Token-Weighted Voting**: One token equals one vote * **Quadratic Voting**: Voting power scales as the square root of tokens held * **Time-Locked Voting**: Tokens must be locked for a period to vote * **Delegation**: Token holders can delegate voting power to trusted representatives [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------------- Parameter Description Common Implementation Proposal Threshold Minimum tokens needed to submit proposals 0.1-1% of total supply Quorum Minimum participation required for valid votes 4-20% of total supply Voting Period Time allowed for voting on proposals 3-14 days Time Lock Delay between approval and execution 1-7 days Delegation Ability to delegate voting power Supported in most systems [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#examples) Examples ---------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#protocol-governance-tokens) Protocol Governance Tokens * **Uniswap (UNI)**: Governance token for the leading decentralized exchange * **Aave (AAVE)**: Governance token for the decentralized lending protocol * **Compound (COMP)**: One of the first governance tokens in DeFi * **MakerDAO (MKR)**: Governance token that also absorbs risk in the DAI system ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#governance-token-use-cases) Governance Token Use Cases * **Parameter Adjustments**: Modifying interest rates, fees, or collateral requirements * **Protocol Upgrades**: Implementing new features or security improvements * **Treasury Management**: Allocating protocol revenues and reserves * **Incentive Programs**: Creating new reward mechanisms for users * **Partnerships**: Approving integrations with other protocols [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------------- **Do governance tokens have monetary value?** Yes, governance tokens typically trade on exchanges and have market value. Their price often reflects the perceived value of having influence over the protocol, expected future cash flows from protocol fees, and speculative interest. **How do I participate in governance if I only hold a small amount of tokens?** Most governance systems allow token holders to delegate their voting power to other addresses. This enables smaller holders to amplify their voice by delegating to community members whose views align with theirs. **Can governance tokens be staked for rewards?** Many protocols offer staking rewards for governance tokens, either as an incentive for long-term holding or as part of the governance process itself. Staking often increases voting power or provides additional benefits. **What prevents wealthy entities from controlling governance?** This is a challenge known as "plutocracy" in token governance. Some protocols implement safeguards like quadratic voting, time-locked voting, or reputation-based systems to reduce the influence of large token holders. **How do governance tokens differ from security tokens?** Governance tokens primarily confer voting rights rather than ownership rights. While security tokens represent investment contracts with expectations of profit from others' efforts, governance tokens represent participation rights in a protocol. However, the regulatory classification can be complex and varies by jurisdiction. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------- * [Smart Contracts](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts) * [DAOs](https://docs.secured.finance/introduction/defi-starter-guide/dao) * [DeFi vs CeFi](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) * [USDFC Stablecoin Overview](https://docs.secured.finance/usdfc-stablecoin/overview) [PreviousSmart Contractschevron-left](https://docs.secured.finance/introduction/defi-starter-guide/smart-contracts) [NextDAOschevron-right](https://docs.secured.finance/introduction/defi-starter-guide/dao) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#how-it-works) * [Token Distribution](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#token-distribution) * [Proposal and Voting Process](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#proposal-and-voting-process) * [Voting Mechanisms](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#voting-mechanisms) * [Key Parameters](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#key-parameters) * [Examples](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#examples) * [Protocol Governance Tokens](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#protocol-governance-tokens) * [Governance Token Use Cases](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#governance-token-use-cases) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Gas Fees | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#overview) Overview ------------------------------------------------------------------------------------------------------- Gas fees are the transaction costs paid to execute operations on blockchain networks like Ethereum and Filecoin. These fees compensate validators (miners or stakers) for the computational resources required to process and verify transactions. Understanding gas is essential for anyone interacting with decentralized applications, as it directly affects transaction costs and determines how quickly your transactions are processed. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------- When you perform any action on a blockchain network—whether sending tokens, interacting with a smart contract, or deploying a new application—you're requesting network validators to process your transaction and include it in a block. Since blockchain networks have limited capacity, gas fees serve as a market mechanism to: 1. **Measure Computational Effort**: Each operation has a fixed gas cost based on its complexity 2. **Allocate Network Resources**: During high demand, higher gas prices prioritize urgent transactions 3. **Prevent Network Abuse**: The gas system prevents infinite loops and denial-of-service attacks On the Filecoin network, which Secured Finance uses, gas works similarly to Ethereum but with some differences in terminology and pricing mechanisms. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#gas-components) Gas Components The gas fee system consists of several components: * **Gas Units**: Each operation in a transaction requires a specific amount of computational work measured in gas units * **Gas Limit**: The maximum amount of computational work you're willing to pay for * **Gas Price**: How much you're willing to pay per unit of gas (typically in gwei, where 1 gwei = 0.000000001 ETH or attoFIL for Filecoin) Your total transaction fee is calculated as: Transaction Fee\=Gas Used×Gas Price\\text{Transaction Fee} = \\text{Gas Used} \\times \\text{Gas Price}Transaction Fee\=Gas Used×Gas Price Where Gas Used is the actual amount of gas consumed by your transaction (which cannot exceed your specified Gas Limit). ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#fee-market-mechanisms) Fee Market Mechanisms Different blockchain networks implement various fee mechanisms: * **Ethereum's EIP-1559**: Includes a base fee that gets burned and a priority fee (tip) that goes to validators * **Filecoin's Gas Model**: Uses a similar approach with base fees adjusted based on network congestion [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------- Parameter Description Recommendation Gas Limit Maximum computational units allowed Set 10-20% higher than estimated requirement Gas Price Cost per unit of gas Check current network conditions Priority Fee Optional tip to validators Higher during network congestion Base Fee Network-determined minimum fee Automatically set by the network based on demand Max Fee Maximum total fee willing to pay Set based on urgency of transaction [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#examples) Examples ------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#simple-token-transfer) Simple Token Transfer A basic token transfer typically requires around 21,000 gas units. If the current gas price is 20 gwei: Fee\=21,000×20 gwei\=420,000 gwei\=0.00042 ETH\\text{Fee} = 21,000 \\times 20 \\text{ gwei} = 420,000 \\text{ gwei} = 0.00042 \\text{ ETH}Fee\=21,000×20 gwei\=420,000 gwei\=0.00042 ETH ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#complex-defi-transaction) Complex DeFi Transaction Interacting with DeFi protocols like Secured Finance can require significantly more gas: * Approving a token: ~45,000 gas units * Swapping tokens: ~100,000-200,000 gas units * Providing liquidity: ~150,000-300,000 gas units [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------- **Why do gas prices fluctuate?** Gas prices vary based on network demand. During periods of high activity (NFT drops, market volatility), users compete for limited block space by offering higher gas prices. **What happens if I set my gas limit too low?** If your gas limit is too low, your transaction will fail when it runs out of gas, but you'll still be charged for the computational resources used up to that point. **Where can I check the current gas price?** You can check current gas prices on various websites like Etherscan.io, Ethgas.watch, or GasNow for Ethereum, and Filfox.info for Filecoin. Many wallets also display current gas prices directly in their interfaces. **How do I convert gas costs to USD value?** To calculate the USD value of gas fees: 1. Calculate the fee in the native token: Gas Units × Gas Price = Fee in ETH/FIL 2. Multiply by the current token price: Fee in ETH/FIL × Current Price in USD = Fee in USD For example, if gas costs 0.002 ETH and ETH is $3,000, the fee would be $6. **How can I reduce gas costs?** * Execute transactions during periods of lower network activity * Use gas price estimator tools to avoid overpaying * Batch multiple operations into a single transaction when possible * Consider layer-2 solutions or sidechains for frequent transactions **Is gas refundable?** You're only charged for the actual gas used, even if you set a higher gas limit. However, failed transactions still consume gas and incur fees without completing the intended action. **Do all blockchains use gas?** Not all blockchains use the exact gas model, but most have some form of transaction fee mechanism to prevent spam and allocate resources. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------- * [Wallet Setup & Management](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) * [DeFi vs CeFi](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) [PreviousWallet Setupchevron-left](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) [NextDAppschevron-right](https://docs.secured.finance/introduction/defi-starter-guide/dapps) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#how-it-works) * [Gas Components](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#gas-components) * [Fee Market Mechanisms](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#fee-market-mechanisms) * [Key Parameters](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#key-parameters) * [Examples](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#examples) * [Simple Token Transfer](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#simple-token-transfer) * [Complex DeFi Transaction](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#complex-defi-transaction) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Overview | Secured Finance Docs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-51a83d08d36df119582231de964f61754e31eb08%252FColor%2520Light%2520Background.svg%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=52a5f12a&sv=2) [hashtag](https://docs.secured.finance/usdfc-stablecoin/overview#why-secured-finance-launch-stablecoin-protocol) Why **Secured Finance launch Stablecoin protocol?** ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance is a decentralized financial platform that aims to provide institutional-grade capabilities and greater financial flexibility for everyone, offering more liquidity and new ways to grow your digital assets. We have two core protocols: [**Fixed Income Lending**arrow-up-right](https://app.secured.finance/) and the [**USDFC** **Stablecoin**arrow-up-right](https://usdfc.secured.finance/) . Each protocol addresses the distinct needs of DeFi users by delivering both fixed-income investment opportunities and flexible borrowing solutions for digital assets. Through **Fixed Income Lending**, users can borrow and lend at fixed rates, structured as zero-coupon bonds and tokenized debt. This setup ensures predictable and stable returns for specific time periods, appealing to those seeking secure, fixed-rate yields. We introduce the **USDFC Stablecoin** to provide immediate access to a USD-pegged stablecoin without requiring a traditional counterparty or relying on external liquidity for exchange. The system enables you to open a **Trove** where you can manage your collateral and debt, offering a decentralized and efficient way to mint, borrow, and repay **USDFC**. By integrating a stablecoin into the Secured Finance ecosystem, USDFC can seamlessly connect with Fixed Income Lending market, serving as a ready source of order book liquidity. In turn, this gives USDFC added utility, allowing it to earn stable returns within the protocol. [hashtag](https://docs.secured.finance/usdfc-stablecoin/overview#the-role-of-usdfc-in-the-filecoin-ecosystem) **The Role of USDFC in the Filecoin Ecosystem** ------------------------------------------------------------------------------------------------------------------------------------------------------------------ USDFC is exclusively backed by **Filecoin**, with all operations occurring on the **Filecoin Virtual Machine** (FVM). By choosing Filecoin as collateral, we leverage its robust ecosystem, which is poised for growth amid rising data storage needs in the AI-driven era. Through direct integration of **USDFC** stablecoin on the FVM, Secured Finance aims to boost Filecoin’s DeFi landscape as MakerDAO's DAI did for Ethereum DeFi ecosystem. As the first decentralized stablecoin fully collateralized by Filecoin, USDFC provides liquidity for Filecoin stakeholders, miners, and DeFi users alike. This, in turn, strengthens liquidity across the Filecoin network and establishes a solid basis for expanded DeFi development. Secured Finance envisions delivering financial flexibility to everyone and spurring DeFi sector growth via stablecoin and fixed-income markets—supported by Filecoin and the wider blockchain community. By leveraging the FVM, our protocol promotes stability and composability for Filecoin assets, adding another layer of utility to the network and advancing the sustainable, long-term development of the Filecoin economy. [PreviousDAOschevron-left](https://docs.secured.finance/introduction/defi-starter-guide/dao) [NextGetting Startedchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started) Last updated 11 months ago * [Why Secured Finance launch Stablecoin protocol?](https://docs.secured.finance/usdfc-stablecoin/overview#why-secured-finance-launch-stablecoin-protocol) * [The Role of USDFC in the Filecoin Ecosystem](https://docs.secured.finance/usdfc-stablecoin/overview#the-role-of-usdfc-in-the-filecoin-ecosystem) sun-brightdesktopmoon sun-brightdesktopmoon --- # Contracts and Security | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#contract-addresses) Contract Addresses ---------------------------------------------------------------------------------------------------------------------- The latest version of [`@secured-finance/stablecoin-contracts`arrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts) is deployed at the addresses listed below. Contract Filecoin Mainnet Filecoin Calibration Testnet USDFC [`0x80B98d3aa09ffff255c3ba4A241111Ff1262F045`arrow-up-right](https://filfox.info/en/address/0x80B98d3aa09ffff255c3ba4A241111Ff1262F045) [`0xb3042734b608a1B16e9e86B374A3f3e389B4cDf0`arrow-up-right](https://calibration.filfox.info/en/address/0xb3042734b608a1B16e9e86B374A3f3e389B4cDf0?t=3) [hashtag](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#audit-reports) Audit Reports ------------------------------------------------------------------------------------------------------------ Auditor Date Report Hexens 2024/12/30 - 2025/1/20 [2025-1-Hexens.pdfarrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts/blob/develop/audits/2025-01-Hexens.pdf) Decurity 2025/2/19 - 2025/3/5 [2025-3-Decurity.pdfarrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts/blob/develop/audits/2025-03-Decurity.pdf) Hexens 2025/8/20 - 2025/8/28 [2025-8-Hexens.pdfarrow-up-right](https://github.com/Secured-Finance/stablecoin-contracts/blob/develop/audits/2025-08-Hexens.pdf) [hashtag](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#stress-test-report) Stress Test Report ---------------------------------------------------------------------------------------------------------------------- [Stress-Testing Simulation and Risk Assessmentarrow-up-right](https://medium.com/cryptoeconlab/stress-testing-usdfc-8b068d13a1cf) by CryptoEconLab Team file-pdf 13MB [Secure\_Finance\_Report.pdf](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-06dc75d228348bca56b07ef1ae330e9e6c1a8977%2FSecure_Finance_Report.pdf?alt=media) PDF downloadDownload[arrow-up-right-from-squareOpen](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-06dc75d228348bca56b07ef1ae330e9e6c1a8977%2FSecure_Finance_Report.pdf?alt=media) [PreviousRecovery Modechevron-left](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [NextFAQschevron-right](https://docs.secured.finance/usdfc-stablecoin/faqs) Last updated 5 months ago * [Contract Addresses](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#contract-addresses) * [Audit Reports](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#audit-reports) * [Stress Test Report](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#stress-test-report) sun-brightdesktopmoon sun-brightdesktopmoon --- # DApps | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#overview) Overview ---------------------------------------------------------------------------------------------------- Decentralized Applications (DApps) are digital applications that run on blockchain networks rather than centralized servers. Unlike traditional web applications, DApps operate on peer-to-peer networks and don't require intermediaries to function. This guide will help you understand how to safely and effectively interact with DApps in the DeFi ecosystem. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------ DApps consist of two main components: 1. **Smart Contracts**: Self-executing code deployed on the blockchain that contains the application's logic 2. **Frontend Interface**: The user interface that allows you to interact with the underlying smart contracts When you use a DApp, you're essentially sending transactions to these smart contracts through your wallet. The process typically works as follows: 1. You connect your wallet to the DApp's interface 2. You initiate an action through the interface 3. Your wallet presents a transaction for you to review and sign 4. Once signed, the transaction is broadcast to the blockchain 5. Miners/validators process the transaction and update the blockchain state 6. The DApp interface updates to reflect the new state [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#step-by-step-guide-to-using-dapps) Step-by-Step Guide to Using DApps ------------------------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-1.-connect-your-wallet) 1\. Connect Your Wallet \[THIS IS WHERE AN IMAGE WOULD SHOW THE WALLET CONNECTION INTERFACE\] Most DApps feature a "Connect Wallet" button in the top corner of their interface. Clicking this will prompt you to select your wallet provider and approve the connection. **Security Note**: When connecting your wallet, verify you're on the correct website to avoid phishing attacks. Always check the URL carefully. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-2.-review-permissions) 2\. Review Permissions \[THIS IS WHERE AN IMAGE WOULD SHOW THE PERMISSION REQUEST SCREEN\] When connecting for the first time, your wallet will ask you to approve certain permissions. Read these carefully—they determine what the DApp can do with your wallet. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-3.-navigate-the-interface) 3\. Navigate the Interface \[THIS IS WHERE AN IMAGE WOULD SHOW A TYPICAL DAPP INTERFACE\] DApp interfaces typically include: * Dashboard showing your assets or positions * Action buttons for key functions (swap, deposit, borrow, etc.) * Information panels displaying rates, fees, and other important data ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-4.-initiate-transactions) 4\. Initiate Transactions \[THIS IS WHERE AN IMAGE WOULD SHOW A TRANSACTION BEING INITIATED\] When you click an action button, you'll typically see a form to fill out with transaction details (amount, recipient, etc.). ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-5.-review-and-confirm) 5\. Review and Confirm \[THIS IS WHERE AN IMAGE WOULD SHOW A TRANSACTION CONFIRMATION SCREEN\] Before executing any transaction: * Double-check all details * Review the estimated gas fee * Understand the potential impact on your portfolio ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-6.-sign-the-transaction) 6\. Sign the Transaction \[THIS IS WHERE AN IMAGE WOULD SHOW A WALLET SIGNING PROMPT\] Your wallet will prompt you to sign the transaction. This is your final chance to review before committing. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-7.-wait-for-confirmation) 7\. Wait for Confirmation \[THIS IS WHERE AN IMAGE WOULD SHOW A PENDING TRANSACTION\] After signing, your transaction will be submitted to the blockchain. Confirmation times vary based on network congestion and the gas price you set. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#common-dapp-interactions) Common DApp Interactions ------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#token-approvals) Token Approvals Before interacting with a DApp that will handle your tokens, you'll need to approve it to spend those tokens on your behalf. This is a security feature of the token standard. circle-exclamation **Important**: Approvals give DApps permission to move specified tokens from your wallet. Only approve trusted DApps, and consider limiting approval amounts when possible. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#transaction-batching) Transaction Batching Some DApps offer transaction batching, which combines multiple actions into a single transaction to save on gas fees. This is particularly useful for complex operations. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#canceling-transactions) Canceling Transactions If you submit a transaction with a low gas price during network congestion, it might remain pending for a long time. Most wallets allow you to: * Cancel the transaction (by sending a 0-value transaction with the same nonce) * Speed up the transaction (by resubmitting with a higher gas price) [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#security-considerations) Security Considerations ---------------------------------------------------------------------------------------------------------------------------------- * **Verify Smart Contract Addresses**: Check that you're interacting with legitimate contracts * **Start with Small Amounts**: Test new DApps with minimal funds first * **Check for Audits**: Prioritize DApps with security audits from reputable firms * **Be Wary of High APYs**: Unusually high returns often indicate higher risk * **Understand the Risks**: DeFi involves various risks including smart contract vulnerabilities, market volatility, and liquidation [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------- **What if a transaction fails?** Failed transactions still consume gas for the computational resources used, but don't change the blockchain state. Check error messages for troubleshooting. **Do I need to connect my wallet every time?** Most DApps will remember your connection between sessions, but you may need to reconnect after clearing browser data or using a different device. **Can DApps access all my funds once connected?** Connecting only gives DApps the ability to request transactions—you still need to approve each transaction individually. However, token approvals can grant spending permissions, so be careful with these. **What's the difference between DApps and websites?** Traditional websites run on centralized servers and typically rely on a company to maintain them. DApps run on decentralized blockchain networks and can continue to function even if the original developers disappear. **How can I tell if a DApp is legitimate?** Research the project's team, check for security audits, look for community feedback, and verify smart contract addresses against official sources. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dapps#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------- * [Wallet Setup & Management](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) * [Understanding Gas](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) * [USDFC Stablecoin Overview](https://docs.secured.finance/usdfc-stablecoin/overview) * [Fixed-Rate Lending Overview](https://docs.secured.finance/fixed-rate-lending/overview) [PreviousGas Feeschevron-left](https://docs.secured.finance/introduction/defi-starter-guide/gas-fees) [NextDEXchevron-right](https://docs.secured.finance/introduction/defi-starter-guide/dex) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/dapps#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/dapps#how-it-works) * [Step-by-Step Guide to Using DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps#step-by-step-guide-to-using-dapps) * [1\. Connect Your Wallet](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-1.-connect-your-wallet) * [2\. Review Permissions](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-2.-review-permissions) * [3\. Navigate the Interface](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-3.-navigate-the-interface) * [4\. Initiate Transactions](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-4.-initiate-transactions) * [5\. Review and Confirm](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-5.-review-and-confirm) * [6\. Sign the Transaction](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-6.-sign-the-transaction) * [7\. Wait for Confirmation](https://docs.secured.finance/introduction/defi-starter-guide/dapps#id-7.-wait-for-confirmation) * [Common DApp Interactions](https://docs.secured.finance/introduction/defi-starter-guide/dapps#common-dapp-interactions) * [Token Approvals](https://docs.secured.finance/introduction/defi-starter-guide/dapps#token-approvals) * [Transaction Batching](https://docs.secured.finance/introduction/defi-starter-guide/dapps#transaction-batching) * [Canceling Transactions](https://docs.secured.finance/introduction/defi-starter-guide/dapps#canceling-transactions) * [Security Considerations](https://docs.secured.finance/introduction/defi-starter-guide/dapps#security-considerations) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/dapps#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/dapps#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Core Mechanics | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#overview) Overview ---------------------------------------------------------------------------------------------- The USDFC Stablecoin Protocol introduces a variety of innovative features that enable users to efficiently mint, manage, and utilize **USDFC**, our decentralized, Filecoin-backed stablecoin. These core mechanics work together to ensure the stability, security, and usability of the protocol. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#what-youll-learn) What You'll Learn --------------------------------------------------------------------------------------------------------------- * How to mint USDFC using Filecoin (FIL) as collateral * How the Trove system manages individual collateralized debt positions * How liquidations protect the protocol from undercollateralization * How the redemption mechanism maintains USDFC's peg to the US Dollar * How protocol fees contribute to the system's sustainability [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#key-components) Key Components ---------------------------------------------------------------------------------------------------------- * [**The Trove System**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) : Individual vaults where users deposit FIL collateral and mint USDFC * [**Mint & Borrow**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) : The process of creating new USDFC backed by FIL collateral * [**Liquidation**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) : The mechanism for handling undercollateralized positions * [**Redemption**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) : The process allowing USDFC holders to exchange for FIL at face value * [**Protocol Fees**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) : The fee structure supporting the protocol's long-term sustainability [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------- * [System Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview) * [Advanced Topics](https://docs.secured.finance/usdfc-stablecoin/advanced-topics) * [FAQs](https://docs.secured.finance/usdfc-stablecoin/faqs) [PreviousRedeeming USDFCchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc) [NextSystem Overviewchevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#overview) * [What You'll Learn](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#what-youll-learn) * [Key Components](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#key-components) * [Related Resources](https://docs.secured.finance/usdfc-stablecoin/core-mechanics#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # White Paper | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/overview/white-paper#d5df) Executive Summary ----------------------------------------------------------------------------------------------------------- Secured Finance is a decentralized finance (DeFi) platform that provides a unique solution to the liquidity problem in the industry. Our protocol enables peer-to-peer lending and derivatives trading for fixed-income investments and hedging, offering a more efficient and cost-effective alternative to traditional financial institutions. By utilizing a smart-contract-based platform, we eliminate the need for intermediaries and provide a transparent, robust, censorship-resistant, and low-cost way of transacting. Our OTC market for digital assets ensures that primary and secondary markets have enough liquidity, while our smart-contract-based central clearing counterparty model guarantees transparent and efficient transactions. Moreover, our unique features, including the standardization of plain vanilla products, order-book-based price discovery, on-chain orderbook matchmaking, smart-contract-based collateral management, and auto-rolling, provide a hassle-free solution that benefits long-term investors and borrowers. These features offer a solution to the DeFi industry’s challenges, paving the way for an inclusive, accessible, and efficient financial system. Secured Finance has a clear roadmap for growth, a strong use case and a dedicated team committed to building a strong and vibrant community around the Secured Finance ecosystem. We welcome anyone who shares our vision to join us on this exciting journey. You can read the [full articlearrow-up-right](https://blog.secured.finance/secured-finance-protocol-6cee22f571b4) in our blog. [PreviousOverviewchevron-left](https://docs.secured.finance/fixed-rate-lending/overview) [NextConcept Paperchevron-right](https://docs.secured.finance/fixed-rate-lending/overview/concept-paper) Last updated 1 year ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Concept Paper | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/overview/concept-paper#id-1ae2) Executive Summary ---------------------------------------------------------------------------------------------------------------- The convergence of Eurocurrency and cryptocurrency markets has become a vital topic in the finance world, offering new opportunities for the transition from centralized to decentralized monetary systems in global financial transactions. While both currencies share common characteristics of being non-regulated, stateless, representing potential regulatory and risk control challenges, it is due to their similarities that they could have the most significant impact on the future of finance by offering increasingly flexible and efficient liquidity solutions within global financial transactions. This paper explores the implications of the convergence of the Eurocurrency and cryptocurrency markets by specifically concentrating on developing over-the-counter (OTC) markets for cryptocurrencies and proposes solutions to address some of the key regulatory and risk control challenges. We will also explore the need for industry-wide standardization efforts, embedded supervision, and the development of a peer-to-contract architecture to provide a safer trading environment while continuing to maintain the key benefits of the blockchain system within a decentralized finance (DeFi) setting. Visit the [full article arrow-up-right](https://blog.secured.finance/the-intersection-of-the-eurocurrency-and-cryptocurrency-markets-f933418ae349) for more details. [PreviousWhite Paperchevron-left](https://docs.secured.finance/fixed-rate-lending/overview/white-paper) [NextGetting Startedchevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started) Last updated 1 year ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Liquidation | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#overview) Overview ---------------------------------------------------------------------------------------------------------- Liquidation is a critical mechanism in the USDFC Stablecoin Protocol that ensures the system remains solvent by handling under-collateralized positions. When a Trove's collateral ratio falls below 110%, it becomes eligible for liquidation, allowing the protocol to use the Stability Pool to cover the debt and distribute the collateral to depositors. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------ Liquidations occur when a Trove's collateral ratio falls below the minimum threshold of 110%. The process involves using USDFC from the Stability Pool to repay the debt of the liquidated Trove, while distributing the Trove's collateral to Stability Pool depositors at a discount. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#liquidation-process) Liquidation Process 1. **Triggering Liquidation**: When a Trove's collateral ratio falls below 110%, a Liquidator triggers the liquidation 2. **Debt Repayment**: The Stability Pool covers the Trove's debt by burning the corresponding amount of USDFC 3. **Collateral Distribution**: The collateral (FIL) from the liquidated Trove is distributed to the Stability Pool depositors based on their pool share, minus the Liquidator's compensation ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#the-stability-pool) The Stability Pool The Stability Pool is a reserve of USDFC dedicated to absorbing liquidations when a borrower's collateral ratio falls below the required 110%. The pool serves several important functions: * **Purpose**: The Stability Pool repays the debt of liquidated borrowers using the deposited USDFC * **Depositor Rewards**: When USDFC from the pool is used, depositors receive Filecoin (FIL) from the liquidated collateral at a discount * **System Stability**: By providing a mechanism to handle under-collateralized positions, the Stability Pool helps maintain the overall stability of the protocol [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value Liquidation Threshold Collateral ratio below which a Trove can be liquidated 110% Liquidator Reward Percentage of liquidated collateral given to the liquidator 0.5% Liquidation Reserve USDFC reserved for potential liquidation gas costs 20 USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#stakeholders-in-the-liquidation-process) Stakeholders in the Liquidation Process ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-1.-stability-pool-depositors) 1\. Stability Pool Depositors * Provide USDFC to the pool and receive FIL at a discount when liquidations occur * Effectively "buy FIL cheaper" than market price through the liquidation process * Earn passive rewards by helping maintain system stability ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-2.-liquidated-borrowers) 2\. Liquidated Borrowers * Have their Trove liquidated when their collateral ratio falls below 110% * Lose collateral to repay their debt * Trove will be closed, but they keep their borrowed USDFC * Typically incur around a 10% loss in the process ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-3.-liquidators) 3\. Liquidators * Trigger the liquidation process by calling the liquidation function * Receive the Liquidation Reserve (20 USDFC) as gas compensation * Earn 0.5% of the liquidated collateral as an incentive [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#price-oracle) Price Oracle ------------------------------------------------------------------------------------------------------------------ Secured Finance uses Pyth as the primary oracle to determine the FIL price. Pyth provides accurate and reliable real-time price feeds essential for system operations. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#fallback-mechanism) Fallback Mechanism In case of extreme conditions where the Pyth price feed is unavailable, the protocol switches to Tellor as a backup: * Pyth price not updated for over 4 hours * Pyth response reverts, returns invalid data, or shows an invalid timestamp * Price change between consecutive updates exceeds 50% This dual-oracle approach ensures that the protocol maintains accurate pricing and stability, even under extreme conditions. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#what-happens-if-the-stability-pool-is-empty) What Happens If the Stability Pool Is Empty? --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- If the Stability Pool is empty during a liquidation, the protocol switches to a redistribution mechanism: 1. **Trove Liquidation**: A Trove is liquidated, but the Stability Pool has insufficient USDFC 2. **Debt and Collateral Redistribution**: The debt and collateral are proportionally distributed to other active Troves 3. **Impact on Troves**: Troves receiving the redistributed collateral and debt may see their collateral ratio lower, while the net USD value increases [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------- **How can I avoid liquidation?** Maintain a collateral ratio well above 110%. A buffer of 150% or higher is recommended to account for FIL price volatility. **What happens to my borrowed USDFC if my Trove is liquidated?** You keep your borrowed USDFC, but lose your collateral. The liquidation effectively closes your Trove. **How can I benefit from liquidations?** You can deposit USDFC into the Stability Pool to receive discounted FIL when liquidations occur, or become a liquidator to earn rewards for triggering liquidations. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#related-topics) Related Topics ---------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Collateral Ratioarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/usdfc-stablecoin/core-mechanics/liquidation/collateral-ratio.md) * [Liquidatorsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/usdfc-stablecoin/core-mechanics/liquidation/liquidators.md) * [Liquidation Case Studyarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/usdfc-stablecoin/core-mechanics/liquidation/case-study.md) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousMint & Borrowchevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) [NextRedemptionchevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) Last updated 4 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#how-it-works) * [Liquidation Process](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#liquidation-process) * [The Stability Pool](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#the-stability-pool) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#key-parameters) * [Stakeholders in the Liquidation Process](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#stakeholders-in-the-liquidation-process) * [1\. Stability Pool Depositors](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-1.-stability-pool-depositors) * [2\. Liquidated Borrowers](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-2.-liquidated-borrowers) * [3\. Liquidators](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#id-3.-liquidators) * [Price Oracle](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#price-oracle) * [Fallback Mechanism](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#fallback-mechanism) * [What Happens If the Stability Pool Is Empty?](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#what-happens-if-the-stability-pool-is-empty) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Overview | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/overview#secured-finance-pioneering-fixed-rate-defi) **Secured Finance: Pioneering Fixed-Rate DeFi** ------------------------------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance began in 2020 at a hackathon, where we set out to create an [**Orderbook-based Rates DeFi Trading Platform**arrow-up-right](https://docs.secured.finance/fixed-rate-lending-protocol/full-on-chain-orderbook) on Ethereum. Our goal was to enable lending and borrowing of digital assets and establish yield curves in the DeFi ecosystem. Since then, we've evolved into a fully on-chain, fixed-rate, fixed-term lending and borrowing platform. As of 2025, our [**WebApp**arrow-up-right](https://app.secured.finance/) operates seamlessly across Ethereum, Arbitrum, and Filecoin chains. [hashtag](https://docs.secured.finance/fixed-rate-lending/overview#our-core-technology) **Our Core Technology** -------------------------------------------------------------------------------------------------------------------- At the heart of our platform is a unique **Zero-Coupon Bond** instrument, powering secure and efficient crypto asset lending and borrowing. This innovative approach offers several key advantages: * **Predictable Returns:** Fixed rates provide certainty for both lenders and borrowers * **On-Chain Transparency:** All transactions and order matching occur fully on-chain * **Capital Efficiency:** Optimized collateral requirements and liquidation mechanisms * **Composability:** Tokenized debt positions can be used across the DeFi ecosystem We simplify the complexities of traditional bond and loan lifecycle management, delivering a transparent, cost-effective, and user-friendly alternative. Whether you're a borrower seeking stable financing or an investor looking for predictable yields, Secured Finance offers a streamlined DeFi experience. [hashtag](https://docs.secured.finance/fixed-rate-lending/overview#expanding-into-the-future) **Expanding into the Future** -------------------------------------------------------------------------------------------------------------------------------- In 2025, as DeFi evolves and traditional capital flows into Real-World Assets (RWA) and stablecoins, Secured Finance is broadening its horizons. We've introduced: * **RWA-collateralized finance solutions:** Bringing real-world assets on-chain * **USDFC:** A Filecoin-backed stablecoin that strengthens the Filecoin ecosystem * **Expanded token lending options:** Supporting a wider range of digital assets * **Cross-chain interoperability:** Seamless operations across multiple blockchains Join us as we redefine the future of decentralized finance and build a more accessible, transparent financial system for everyone. [PreviousFAQschevron-left](https://docs.secured.finance/usdfc-stablecoin/faqs) [NextWhite Paperchevron-right](https://docs.secured.finance/fixed-rate-lending/overview/white-paper) Last updated 10 months ago * [Secured Finance: Pioneering Fixed-Rate DeFi](https://docs.secured.finance/fixed-rate-lending/overview#secured-finance-pioneering-fixed-rate-defi) * [Our Core Technology](https://docs.secured.finance/fixed-rate-lending/overview#our-core-technology) * [Expanding into the Future](https://docs.secured.finance/fixed-rate-lending/overview#expanding-into-the-future) sun-brightdesktopmoon sun-brightdesktopmoon --- # Creating Your First Trove | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#prerequisites) Prerequisites ----------------------------------------------------------------------------------------------------------------------------------- * A wallet with FIL tokens (Filecoin's native cryptocurrency) * Basic understanding of blockchain transactions * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#overview) Overview ------------------------------------------------------------------------------------------------------------------------- A Trove is your personal collateralized debt position in the USDFC protocol. By creating a Trove, you can deposit FIL as collateral and mint USDFC stablecoins against it. This guide will walk you through the process of creating your first Trove. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-1-connect-your-wallet) Step 1: Connect Your Wallet -------------------------------------------------------------------------------------------------------------------------------------------------------------- Before you can create a Trove, you need to connect your wallet to the USDFC application. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Click on the "Connect Wallet" button in the top right corner 3. Select your wallet provider (MetaMask, WalletConnect, etc.) 4. Confirm the connection ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-8e65fc589faf72a302090131caeaca1bbe8fc70d%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=2b432c2e&sv=2) The wallet connection interface after the "Connect Wallet" button [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-2-navigate-to-the-trove-management-section) Step 2: Navigate to the Trove Management Section -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Once your wallet is connected, you need to navigate to the Trove management section. 1. On the USDFC dashboard, locate and click on the "Open Trove" button 2. You'll see the Trove creation section on the same page ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-57d5d702e09f2cff478d2c60dbd992ae8c03910d%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=3c04121a&sv=2) The USDFC dashboard with the Trove/Mint USDFC section [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-3-set-your-collateral-and-debt-amounts) Step 3: Set Your Collateral and Debt Amounts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Now you need to decide how much FIL to deposit and how much USDFC to mint. 1. Enter the amount of FIL you want to deposit as collateral 2. Enter the amount of USDFC you want to mint & borrow 3. The system will automatically calculate your collateral ratio 4. Ensure your collateral ratio is above the minimum required (typically 110%) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-36f8b4267ebc46852be1c31c1fb6e7f480c5bb05%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=49e33ec8&sv=2) The collateral and debt input fields with the collateral ratio calculation [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-4-review-transaction-details) Step 4: Review Transaction Details ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before confirming, review all transaction details carefully. 1. Check the collateral amount (FIL) 2. Verify the debt amount (USDFC) 3. Review the collateral ratio 4. Note any fees that will be applied (including the Liquidation Reserve of 20 USDFC) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-5-confirm-and-create-your-trove) Step 5: Confirm and Create Your Trove ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Once you're satisfied with the details, you can create your Trove. 1. Click the "Confirm" button 2. Confirm the transaction in your wallet 3. Wait for the transaction to be processed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-d018a027a5d2d259a2352d4bf0b52d04bcb5ea75%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=c8af57a8&sv=2) The confirmation screen with the "Confirm" button highlighted [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-6-verify-your-trove-creation) Step 6: Verify Your Trove Creation ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- After the transaction is confirmed, verify that your Trove was created successfully. 1. Check that your Trove appears in the dashboard 2. Verify that the USDFC has been added to your wallet balance 3. If you don't see USDFC in your wallet, you may need to add it as a custom token (see a [wallet iconarrow-up-right](https://gyazo.com/4102e760883c7c413ee1161a851d5712) in the Protocol Statistics section) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-13d7164a328d8bef22b5c2025ef0b1bda2459ad2%252FScreenshot%25202025-05-11%2520at%25205.58.15.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=289a1bb0&sv=2) Screenshot showing a successfully created Trove in the dashboard [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#next-steps) Next Steps ----------------------------------------------------------------------------------------------------------------------------- Now that you've created your first Trove, you can: * [Mint additional USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step) * [Manage your collateral](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) * [Monitor your position](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) * [Deposit USDFC into the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#troubleshooting) Troubleshooting --------------------------------------------------------------------------------------------------------------------------------------- * **Transaction Failed**: Ensure you have enough FIL for gas fees and that your collateral ratio meets the minimum requirement * **USDFC Not Showing in Wallet**: Add USDFC as a custom token in your wallet using the contract address found in the [deployed contracts](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts) page, or click the wallet icon near the USDFC contract info on the USDFC app * **High Gas Fees**: Try again when network congestion is lower or adjust your gas settings [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------------------- **Q: What is the minimum amount of FIL I can deposit?** A: You need to deposit enough FIL to borrow at least 200 USDFC (the minimum borrowing amount) while maintaining at least a 110% collateral ratio. The exact FIL amount will depend on the current FIL price. **Q: What is the Liquidation Reserve?** A: The Liquidation Reserve is a small amount of USDFC (20 USDFC) that is set aside to cover potential gas costs in case your Trove needs to be liquidated. **Q: Can I create multiple Troves?** A: No, each wallet address can only have one Trove at a time. **Q: What happens if my collateral ratio falls below the minimum?** A: Your Trove may be liquidated. Learn more in the [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) section. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousGetting Test USDFC on Testnetchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet) [NextMinting USDFC Step-by-Stepchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#overview) * [Step 1: Connect Your Wallet](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-1-connect-your-wallet) * [Step 2: Navigate to the Trove Management Section](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-2-navigate-to-the-trove-management-section) * [Step 3: Set Your Collateral and Debt Amounts](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-3-set-your-collateral-and-debt-amounts) * [Step 4: Review Transaction Details](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-4-review-transaction-details) * [Step 5: Confirm and Create Your Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-5-confirm-and-create-your-trove) * [Step 6: Verify Your Trove Creation](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#step-6-verify-your-trove-creation) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Advanced Topics | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#overview) Overview ----------------------------------------------------------------------------------------------- This section covers advanced concepts and mechanisms of the USDFC Stablecoin Protocol that build upon the core functionality. These topics provide deeper insights into how the protocol maintains stability, handles edge cases, and implements sophisticated economic mechanisms. [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#what-youll-learn) What You'll Learn ---------------------------------------------------------------------------------------------------------------- * How Recovery Mode protects the protocol during periods of systemic risk * Advanced liquidation scenarios and their impact on the system * Technical implementations of key protocol features * Economic principles underlying the protocol design [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#key-components) Key Components ----------------------------------------------------------------------------------------------------------- * [**Recovery Mode**](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) : The protocol's defensive mechanism that activates when system collateralization falls below critical thresholds * **Advanced Liquidation Scenarios**: Complex edge cases in the liquidation process * **Price Oracle Implementation**: Technical details of how the protocol obtains and validates price data * **Economic Mechanisms**: Detailed explanations of incentive structures and game theory considerations [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------- * [Core Mechanics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview) * [FAQs](https://docs.secured.finance/usdfc-stablecoin/faqs) [PreviousProtocol Feeschevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) [NextRecovery Modechevron-right](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#overview) * [What You'll Learn](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#what-youll-learn) * [Key Components](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#key-components) * [Related Resources](https://docs.secured.finance/usdfc-stablecoin/advanced-topics#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Core Mechanics | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics#overview) Overview ------------------------------------------------------------------------------------------------ The Fixed-Rate Lending Protocol introduces a variety of innovative features that enable users to efficiently lend and borrow assets at fixed rates for fixed terms. These core mechanics work together to ensure the stability, security, and usability of the protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics#what-youll-learn) What You'll Learn ----------------------------------------------------------------------------------------------------------------- * How the Order Book System facilitates fixed-rate lending and borrowing * How Zero-Coupon Bonds are used to represent lending and borrowing positions * How collateralization protects the protocol from defaults * How liquidation mechanisms maintain system solvency * How standardization ensures predictable market behavior [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics#key-components) Key Components ------------------------------------------------------------------------------------------------------------ * [**Order Book System**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) : The on-chain system that matches lenders and borrowers * [**Standardization**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization) : The standardized components ensuring interoperability * [**Collateralization**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization) : The process of securing loans with collateral * [**Tokenization**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization) : The representation of lending positions as transferable tokens * [**Liquidation**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) : The mechanism for handling undercollateralized positions * [**Protocol Fees**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees) : The fee structure supporting the protocol's long-term sustainability [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------ * [System Overview](https://docs.secured.finance/fixed-rate-lending/overview) * [Advanced Topics](https://docs.secured.finance/fixed-rate-lending/advanced-topics) * [FAQs](https://docs.secured.finance/fixed-rate-lending/faqs) [PreviousCampaignchevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/campaign) [NextOrder Book Systemchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/core-mechanics#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/core-mechanics#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Lending Assets | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#prerequisites) Prerequisites -------------------------------------------------------------------------------------------------------------------------- * A connected wallet with sufficient assets to lend * Basic understanding of fixed-rate lending concepts * Access to the Secured Finance platform [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#overview) Overview ---------------------------------------------------------------------------------------------------------------- Lending assets on Secured Finance's Fixed-Rate Lending Protocol allows you to earn predictable yields on your digital assets. By lending through the protocol's orderbook system, you can lock in fixed rates for specific time periods, providing certainty about your returns regardless of market volatility. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-1-connect-your-wallet) Step 1: Connect Your Wallet ----------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Click the "Connect Wallet" button in the top right corner 3. Select your wallet provider (MetaMask, WalletConnect, etc.) 4. Approve the connection request in your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fconnect-wallet.png&width=768&dpr=3&quality=100&sign=43c45b10&sv=2) Connect Wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-2-deposit-assets) Step 2: Deposit Assets ------------------------------------------------------------------------------------------------------------------------------------------- Before lending, you need to deposit the assets you want to lend into the protocol. 1. Go to the "Portfolio" tab 2. Click the "Deposit" button 3. Select the asset you want to deposit for lending 4. Enter the amount and confirm the transaction 5. Wait for the transaction to be confirmed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-76d49046f7c6b56938623f9694b26dede95c314f%252FDeposit-x1.7mp4-ezgif.com-video-to-gif-converter.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=24309c25&sv=2) Deposit Assets [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-3-navigate-to-the-trading-interface) Step 3: Navigate to the Trading Interface --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Click on the "Trading" tab in the main navigation 2. Select the asset you want to lend from the dropdown menu 3. Choose the maturity date that suits your investment timeframe ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Ftrading-interface.png&width=768&dpr=3&quality=100&sign=c85a2ff5&sv=2) Trading Interface [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-4-place-a-lending-order) Step 4: Place a Lending Order --------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Select "Lend" in the order type section 2. Choose between "Market Order" (immediate execution at current market price) or "Limit Order" (execution at your specified price) 3. For a Limit Order: * Set your desired interest rate (APR) * Enter the amount you want to lend 4. For a Market Order: * Enter the amount you want to lend * Review the current market rate 5. Click "Place Order" to submit your lending request ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-53113e37050ee8d046bdc47c4b5314005e019358%252FLPonOrderbookx1.5-ezgif.com-video-to-gif-converter.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=82213c39&sv=2) Place Lending Order [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-5-confirm-your-transaction) Step 5: Confirm Your Transaction --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Review the order details in the confirmation modal 2. Check the estimated gas fees 3. Click "Confirm" to proceed 4. Approve the transaction in your wallet 5. Wait for the transaction to be confirmed on the blockchain [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-6-monitor-your-position) Step 6: Monitor Your Position --------------------------------------------------------------------------------------------------------------------------------------------------------- After successfully lending assets: 1. Go to the "Portfolio" tab to view your active lending positions 2. You'll receive Zero-Coupon Bonds (ZC Bonds) representing your lending position 3. These ZC Bonds will mature to their full face value at the maturity date 4. You can track the current value of your lending position in the Portfolio section ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fmonitor-position.png&width=768&dpr=3&quality=100&sign=43d799be&sv=2) Monitor Position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-7-managing-your-lending-position) Step 7: Managing Your Lending Position --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- You have several options for managing your lending position: 1. **Hold Until Maturity**: Receive the full face value of your ZC Bonds at maturity 2. **Unwind Position**: Exit your position early by selling your ZC Bonds on the orderbook 3. **Auto-Rolling**: Set up automatic reinvestment at maturity to maintain your lending position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#next-steps) Next Steps -------------------------------------------------------------------------------------------------------------------- Now that you've successfully lent assets, you might want to: * [Learn how to manage your positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) * [Explore auto-rolling features](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) to automatically reinvest at maturity * [Understand how Zero-Coupon Bonds work](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) as representations of your lending position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#troubleshooting) Troubleshooting ------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#order-not-executing) Order Not Executing If your limit order isn't being executed: * Your specified interest rate may not be competitive with current market rates * There might be insufficient borrowing demand at your specified rate * Try adjusting your rate or switching to a market order for immediate execution ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#transaction-failing) Transaction Failing If your transaction is failing: * Ensure you have enough native tokens (ETH, MATIC, etc.) to cover gas fees * Check that you have sufficient balance of the asset you're trying to lend * Try refreshing the page and attempting the transaction again ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#zc-bonds-not-appearing) ZC Bonds Not Appearing If your ZC Bonds don't appear in your portfolio after lending: * The transaction may still be pending; check your wallet for transaction status * There might be a delay in the UI updating; try refreshing the page * Verify the transaction was successful on the blockchain explorer [PreviousGetting Startedchevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started) [NextBorrowing Assetschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#overview) * [Step 1: Connect Your Wallet](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-1-connect-your-wallet) * [Step 2: Deposit Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-2-deposit-assets) * [Step 3: Navigate to the Trading Interface](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-3-navigate-to-the-trading-interface) * [Step 4: Place a Lending Order](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-4-place-a-lending-order) * [Step 5: Confirm Your Transaction](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-5-confirm-your-transaction) * [Step 6: Monitor Your Position](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-6-monitor-your-position) * [Step 7: Managing Your Lending Position](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#step-7-managing-your-lending-position) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#troubleshooting) * [Order Not Executing](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#order-not-executing) * [Transaction Failing](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#transaction-failing) * [ZC Bonds Not Appearing](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets#zc-bonds-not-appearing) sun-brightdesktopmoon sun-brightdesktopmoon --- # Redemption | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#overview) Overview --------------------------------------------------------------------------------------------------------- The Redemption Mechanism is a critical component of the USDFC Stablecoin Protocol that allows USDFC holders to exchange their tokens for Filecoin (FIL) at face value. This direct conversion path creates arbitrage opportunities that help maintain USDFC's peg to the US Dollar, especially when the market price falls below $1. circle-check **Benefits of Redemption** * **Arbitrage Opportunity**: If USDFC dips below $1, buying and redeeming it for FIL can lock in potential gains and help restore the peg * **Direct FIL Access**: Redemption guarantees a way to swap USDFC for FIL, even when external exchange liquidity is low * **Reduced Market Impact**: Converting large FIL positions into USDFC through redemption avoids triggering selling pressure on open markets [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------- The redemption process allows any USDFC holder to exchange their tokens for FIL at the current USD value, targeting Troves with the lowest collateral ratios first: 1. A user submits a redemption request to the protocol 2. The protocol uses the FIL collateral from the most under-collateralized Troves to fulfill the request 3. The user receives FIL, while the targeted Troves have their debt reduced but also lose collateral circle-info Redemptions target Troves with the **lowest collateral ratios** first. Trove owners are advised to keep their collateral ratios well above the 110% minimum (ideally 150% or higher) to reduce the likelihood of being affected by redemptions. Troves affected by redemptions undergo **a forced swap** of USDFC for their collateral at the current spot rate, impacting their collateral balance. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#important-distinction) Important Distinction **Not Debt Repayment**: Redemption does not mean repaying borrowed USDFC. Instead, it allows the holder to exchange USDFC for FIL directly. Borrowers must repay their debt separately if they wish to close or manage their positions. circle-exclamation The system requires a minimum borrowed amount of 180 USDFC and reserves an additional 20 USDFC as long as trove exists. **You cannot redeem** to reduce a trove's borrowed amount below 180 USDFC; if it would, the redemption amount will be automatically adjusted. However, you may redeem enough to fully close a trove (reducing the borrowed amount to 0). Redemption can span multiple troves, but the same minimum-borrow rule applies to each. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value Redemption Fee Fee charged on redemption transactions Base Rate + 0.5% Minimum Fee Minimum fee regardless of Base Rate 0.5% Base Rate Variable component that increases with redemption activity 0% to 4.5% Minimum Trove Size Minimum USDFC debt a Trove must maintain 180 USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#redemption-fee) Redemption Fee --------------------------------------------------------------------------------------------------------------------- The **Redemption Fee** is calculated as [**Base Rate**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#base-rate) + 0.5%, which ensures a minimum fee of **0.5%**. This fee dynamically adjusts depending on redemption activity: Redemption Fee\=(Base Rate+0.5%)×Redeemed USDFC\\text{Redemption Fee} = (\\text{Base Rate} + 0.5\\%) \\times \\text{Redeemed USDFC}Redemption Fee\=(Base Rate+0.5%)×Redeemed USDFC * **Base Rate** increases with frequent redemptions and decays over time when redemptions are low * The more redemptions occur, the higher the **Base Rate** will rise, while a lack of redemptions leads the rate to decay back to the **0.5% minimum** circle-info Note that the redeemed amount is taken into account for calculating the base rate and might have an impact on the redemption fee, especially if the amount is large. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#peg-mechanism) Peg Mechanism ------------------------------------------------------------------------------------------------------------------- The redemption mechanism works alongside minting to maintain USDFC's stability around **1.0 USD**: ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#below-peg-usdfc-less-than-1.0-usd) Below Peg (USDFC < 1.0 USD) * When USDFC trades below 1.0 USD, users can redeem USDFC for FIL at a 1:1 rate, profiting from arbitrage * This reduces the circulating supply of USDFC, pushing its price back toward the peg * The redemption fee (Base Rate + 0.5%) still applies, meaning users should factor in the cost when calculating arbitrage opportunities ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#above-peg-usdfc-greater-than-1.0-usd) Above Peg (USDFC > 1.0 USD) * In this scenario, minting USDFC by depositing FIL becomes attractive because users can borrow USDFC at the 1:1 rate and sell it at a premium * This increases the circulating supply and pushes the price back toward 1.0 USD * Minting requires over-collateralization (at least 110% FIL) and incurs a one-time minting fee (Base Rate + 0.5%) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#example-of-a-redemption) Example of a Redemption --------------------------------------------------------------------------------------------------------------------------------------- 1. **Market Situation**: USDFC trades at **0.98 USD** 2. **Redemption Initiation**: Buy 1,000 USDFC with **980 USD** and user redeems **1,000 USDFC** 3. **Redemption Fee**: Assume the **Base Rate** is **1.0%** * Redemption Fee = **(1.0% + 0.5%) of 1,000 USDFC** = **15 USDFC** 4. **Net Redemption**: The user receives FIL equivalent to **985 USD** after the fee is deducted. Net profit of **5 USD** [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------- **Can I redeem USDFC to pay back my own debt?** No, redemption is not a debt repayment mechanism. It's a separate process that allows USDFC holders to exchange their tokens for FIL at face value. **How can I avoid having my Trove targeted by redemptions?** Maintain a higher collateral ratio than other Troves in the system. Redemptions always target Troves with the lowest collateral ratios first. **Is there a limit to how much USDFC can be redeemed at once?** There's no hard cap, but large redemptions may be limited by the available collateral in under-collateralized Troves and will incur higher fees as the Base Rate increases. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#related-topics) Related Topics --------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Protocol Fees](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) [PreviousLiquidationchevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) [NextProtocol Feeschevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) Last updated 9 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#how-it-works) * [Important Distinction](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#important-distinction) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#key-parameters) * [Redemption Fee](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#redemption-fee) * [Peg Mechanism](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#peg-mechanism) * [Below Peg (USDFC < 1.0 USD)](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#below-peg-usdfc-less-than-1.0-usd) * [Above Peg (USDFC > 1.0 USD)](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#above-peg-usdfc-greater-than-1.0-usd) * [Example of a Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#example-of-a-redemption) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # FAQs | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#overview) Overview ------------------------------------------------------------------------------------ This FAQ covers everything you need to know about USDFC, from basic concepts to advanced operations and troubleshooting. Whether you're new to stablecoins or looking for specific technical details, you'll find comprehensive answers here. [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-youll-learn) What You'll Learn ----------------------------------------------------------------------------------------------------- * How USDFC stablecoin works and its key features * Step-by-step processes for minting, managing, and redeeming USDFC * Risk management and liquidation mechanics * Advanced topics like Recovery Mode and edge cases * Stability Pool participation and rewards [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#quick-navigation) Quick Navigation ---------------------------------------------------------------------------------------------------- * [Getting Started](https://docs.secured.finance/usdfc-stablecoin/faqs#getting-started) * [Minting & Borrowing](https://docs.secured.finance/usdfc-stablecoin/faqs#minting--borrowing) * [Risk Management](https://docs.secured.finance/usdfc-stablecoin/faqs#risk-management) * [Advanced Topics](https://docs.secured.finance/usdfc-stablecoin/faqs#advanced-topics) [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#getting-started) Getting Started -------------------------------------------------------------------------------------------------- chevron-rightWhat is Secured Finance?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-secured-finance) Secured Finance is a decentralized finance platform that facilitates peer-to-contract lending and derivatives trading. Built on multiple blockchains including Ethereum, Arbitrum, and Filecoin, it offers a transparent, robust, and cost-effective alternative to traditional financial institutions. The platform consists of two main products: * **Fixed-Rate Lending Protocol**: Enables fixed-rate, fixed-term lending and borrowing through zero-coupon bonds * **USDFC Stablecoin**: A dollar-pegged stablecoin backed by Filecoin collateral **Related:** [Platform Overview](https://docs.secured.finance/) chevron-rightWhat is USDFC?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-usdfc) USDFC is a decentralized stablecoin pegged to the US Dollar and backed by Filecoin (FIL) collateral. It's designed to maintain its value at $1 USD through over-collateralization and various stability mechanisms. **Key features:** * **Decentralized**: No central authority controls USDFC * **Over-collateralized**: Backed by at least 110% FIL collateral * **Redeemable**: Exchange USDFC for underlying FIL anytime * **Yield-generating**: Earn rewards through Stability Pool participation **Related:** [USDFC Overviewarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/overview.md) chevron-rightHow does USDFC maintain its peg to the US Dollar?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#how-does-usdfc-maintain-its-peg-to-the-us-dollar) USDFC maintains its $1 peg through multiple mechanisms: 1. **Over-collateralization**: Minimum 110% FIL collateral backing 2. **Redemption mechanism**: Direct exchange of USDFC for FIL at $1 rate 3. **Liquidation system**: Automatic closure of under-collateralized positions 4. **Stability Pool**: Buffer that absorbs liquidated debt 5. **Arbitrage opportunities**: Market forces help restore peg when deviations occur These mechanisms work together to create strong economic incentives for maintaining the peg. **Related:** [System Overviewarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/system-overview.md) chevron-rightWhat are the benefits of using USDFC?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-are-the-benefits-of-using-usdfc) USDFC offers several advantages: **For Users:** * **Stable value**: Maintains $1 peg for predictable purchasing power * **Decentralized**: No reliance on traditional banking systems * **Transparent**: All operations recorded on blockchain * **Yield opportunities**: Earn rewards through Stability Pool **For DeFi:** * **Composability**: Use in other DeFi protocols * **Liquidity**: Trade on decentralized exchanges * **Collateral**: Use as collateral for other loans **Related:** [USDFC Overviewarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/overview.md) chevron-rightHow do I get started with USDFC?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#how-do-i-get-started-with-usdfc) To get started with USDFC: 1. **Set up a wallet**: Use a Web3 wallet like MetaMask 2. **Acquire FIL**: Purchase Filecoin on exchanges 3. **Connect to platform**: Access the USDFC interface 4. **Create a Trove**: Deposit FIL as collateral 5. **Mint USDFC**: Borrow against your collateral 6. **Manage position**: Monitor and maintain healthy ratios **Related:** [Getting Started Guidearrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/README.md) [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#minting-and-borrowing) Minting & Borrowing ------------------------------------------------------------------------------------------------------------ chevron-rightHow do I mint USDFC?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#how-do-i-mint-usdfc) To mint USDFC: 1. **Connect your wallet** to the USDFC platform 2. **Create a Trove** by depositing FIL as collateral 3. **Set collateral ratio** (minimum 110%, recommended 150%+) 4. **Mint USDFC** against your collateral 5. **Pay borrowing fee** (0.5% base fee) 6. **Confirm transaction** and receive USDFC **Example:** * Deposit 100 FIL worth $500 * Mint 400 USDFC (125% collateral ratio) * Pay 2 USDFC borrowing fee + 20 USDFC liquidation reserve * Receive 378 USDFC in your wallet **Related:** [Minting USDFC Step-by-Steparrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/minting-usdfc-step-by-step.md) chevron-rightWhat is the minimum collateral ratio?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-the-minimum-collateral-ratio) The minimum collateral ratio for USDFC is **110%**. This means you need at least $110 worth of FIL to mint $100 USDFC. **Key points:** * Below 110% = liquidation risk * Recommended: 150%+ for safety * Increases to 150% during Recovery Mode **Related:** [Collateral Ratio Detailsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/liquidation/collateral-ratio.md) chevron-rightWhat fees are involved in minting USDFC?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-fees-are-involved-in-minting-usdfc) When minting USDFC, you pay: **One-time fees:** * **Borrowing Fee**: 0.5% base fee (may vary with market conditions) * **Liquidation Reserve**: 20 USDFC (refunded when Trove is closed) * **Gas Fees**: Network transaction fees in FIL **No ongoing fees:** * No interest payments * No maintenance fees * No time-based charges **Example:** Minting 1,000 USDFC costs 5 USDFC borrowing fee plus 20 USDFC liquidation reserve plus gas. **Related:** [Protocol Fees Detailsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/protocol-fees.md) chevron-rightCan I mint more USDFC from an existing Trove?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#can-i-mint-more-usdfc-from-an-existing-trove) Yes, you can mint additional USDFC from an existing Trove if: 1. **Collateral ratio remains above 110%** after minting 2. **You pay the borrowing fee** on additional USDFC 3. **Sufficient FIL collateral** supports the new total debt **Process:** 1. Access your existing Trove 2. Calculate new collateral ratio 3. Mint additional USDFC 4. Pay borrowing fee on new amount only **Related:** [Managing Collateral Effectivelyarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/managing-collateral-effectively.md) chevron-rightWhat happens if I want to close my Trove?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-happens-if-i-want-to-close-my-trove) To close your Trove: 1. **Repay all USDFC debt** including any fees 2. **Confirm closure transaction** 3. **Receive all FIL collateral** back to your wallet 4. **Pay gas fees** for the transaction **Requirements:** * Must repay 100% of USDFC debt * Cannot partially close a Trove * Trove is permanently removed after closure * 20 USDFC liquidation reserve is refunded upon closure **Related:** [Monitoring Your Positionarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/monitoring-your-position.md) [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#risk-management) Risk Management -------------------------------------------------------------------------------------------------- chevron-rightWhat is the Stability Pool?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-the-stability-pool) The Stability Pool is a pool of USDFC tokens that acts as a buffer to absorb debt from liquidated Troves. It provides system stability and rewards for participants. **How it works:** 1. **Users deposit USDFC** into the pool 2. **Liquidated debt** is paid using pool funds 3. **Liquidated FIL collateral** is distributed to depositors 4. **Depositors typically profit** from liquidation premiums **Related:** [Using the Stability Poolarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/using-the-stability-pool.md) chevron-rightHow do liquidations work?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#how-do-liquidations-work) When a Trove's collateral ratio falls below 110%: 1. **Liquidation trigger**: Anyone can initiate liquidation 2. **Debt payment**: Stability Pool USDFC pays off the debt 3. **Collateral distribution**: FIL collateral goes to Stability Pool depositors 4. **Liquidator reward**: Liquidator receives gas compensation (20 USDFC) and 0.5% of collateral **Example:** * Trove has 100 FIL ($400) and 380 USDFC debt * Collateral ratio = 105% (below 110%) * Liquidation occurs, Stability Pool receives ~$400 FIL for $380 debt **Related:** [Liquidation Processarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/liquidation.md) chevron-rightWhat are the benefits of depositing in the Stability Pool?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-are-the-benefits-of-depositing-in-the-stability-pool) Stability Pool depositors receive: **Rewards:** * **FIL from liquidations**: Typically profitable due to 110%+ collateral * **Liquidation premiums**: Receive more value than USDFC deposited * **System rewards**: Potential additional token rewards **Example profit:** * Deposit 1,000 USDFC * Liquidation occurs, receive 1,100 USDFC worth of FIL * Net profit: 100 USDFC equivalent **Related:** [Using the Stability Poolarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/using-the-stability-pool.md) chevron-rightWhat are the risks of the Stability Pool?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-are-the-risks-of-the-stability-pool) Risks include: 1. **USDFC reduction**: Your deposit decreases during liquidations 2. **FIL price volatility**: Received FIL may fluctuate in value 3. **Opportunity cost**: Might miss FIL price appreciation 4. **Smart contract risk**: Protocol vulnerabilities (though audited) **Mitigation strategies:** * **Diversify exposure**: Don't deposit all USDFC * **Monitor FIL price**: Consider market conditions * **Understand mechanics**: Know when liquidations likely occur **Related:** [Using the Stability Poolarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/using-the-stability-pool.md) [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#advanced-topics) Advanced Topics -------------------------------------------------------------------------------------------------- chevron-rightWhat is redemption and how does it work?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-redemption-and-how-does-it-work) Redemption allows USDFC holders to exchange their USDFC for underlying FIL collateral directly from the protocol at face value. **Process:** 1. **Submit redemption request** with USDFC amount 2. **Protocol selects Troves** with lowest collateral ratios 3. **Receive equivalent FIL** based on current price 4. **Pay redemption fee** (Base Rate + 0.5%, minimum 0.5%) **Use cases:** * **Arbitrage**: When USDFC trades below $1 * **Exit strategy**: Convert back to FIL * **Peg maintenance**: Helps maintain $1 peg **Important:** Redemptions target Troves with the lowest collateral ratios first. Maintaining a ratio above 150% reduces redemption risk. **Related:** [Redemption Process Detailsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/redemption.md) chevron-rightWhat is Recovery Mode?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-is-recovery-mode) Recovery Mode activates when the system's Total Collateral Ratio falls below 150%. It implements stricter rules to restore system health: * **Higher liquidation threshold**: Positions below 150% at risk * **No borrowing fees**: Encourages adding collateral * **Restricted operations**: Limited new borrowing **User actions:** Add collateral or repay debt to stay above 150%. **Related:** [Recovery Mode Detailsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/recovery-mode.md) chevron-rightWhat happens if the Stability Pool is empty during liquidation?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-happens-if-the-stability-pool-is-empty-during-liquidation) If the Stability Pool is empty when liquidation occurs: 1. **Redistribution mechanism**: Debt and collateral redistribute to all Troves 2. **Proportional allocation**: Based on each Trove's existing debt 3. **Automatic updates**: Positions adjust automatically 4. **No user action required**: System handles redistribution **Impact on Trove owners:** * **Debt increases**: Receive portion of liquidated debt * **Collateral increases**: Receive portion of liquidated FIL * **Ratio may improve**: Net effect often positive **Related:** [Liquidation Processarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/liquidation.md) chevron-rightWhat if FIL price crashes significantly?[hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#what-if-fil-price-crashes-significantly) In case of severe FIL price decline: 1. **Mass liquidations**: Many Troves become under-collateralized 2. **Recovery Mode**: System automatically activates 3. **Stability mechanisms**: Built-in protections engage 4. **Market forces**: Arbitrage opportunities help stabilize **User protections:** * **Over-collateralization**: 110%+ provides buffer * **Liquidation premiums**: Incentivize quick liquidations * **Redemption mechanism**: Maintains peg pressure **Related:** [Recovery Modearrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/recovery-mode.md) [hashtag](https://docs.secured.finance/usdfc-stablecoin/faqs#related-resources) Related Resources ------------------------------------------------------------------------------------------------------ * [Getting Started Guidearrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/getting-started/README.md) * [Core Mechanics Documentationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/README.md) * [Advanced Topicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/README.md) * [System Overviewarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/system-overview.md) * [Developer Portal](https://docs.secured.finance/developer-portal/introduction) [PreviousContracts and Securitychevron-left](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts) [NextOverviewchevron-right](https://docs.secured.finance/fixed-rate-lending/overview) Last updated 8 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/faqs#overview) * [What You'll Learn](https://docs.secured.finance/usdfc-stablecoin/faqs#what-youll-learn) * [Quick Navigation](https://docs.secured.finance/usdfc-stablecoin/faqs#quick-navigation) * [Getting Started](https://docs.secured.finance/usdfc-stablecoin/faqs#getting-started) * [Minting & Borrowing](https://docs.secured.finance/usdfc-stablecoin/faqs#minting-and-borrowing) * [Risk Management](https://docs.secured.finance/usdfc-stablecoin/faqs#risk-management) * [Advanced Topics](https://docs.secured.finance/usdfc-stablecoin/faqs#advanced-topics) * [Related Resources](https://docs.secured.finance/usdfc-stablecoin/faqs#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # System Overview | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#overview) Overview -------------------------------------------------------------------------------------------------------------- The USDFC Stablecoin Protocol is a decentralized system that enables users to mint a USD-pegged stablecoin (USDFC) by depositing Filecoin (FIL) as collateral. The protocol maintains stability through a series of interconnected mechanisms that ensure USDFC maintains its 1:1 peg to the US Dollar. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------- The protocol operates through several key components that work together to maintain stability, manage collateral, and ensure the proper functioning of the system: 1. **Trove System**: Individual vaults where users deposit FIL collateral and mint USDFC 2. **Stability Pool**: A reserve of USDFC that absorbs liquidations of under-collateralized Troves 3. **Redemption Mechanism**: Allows USDFC holders to exchange their tokens for FIL at face value 4. **Recovery Mode**: A special state that activates when the system's overall collateral ratio falls below 150% 5. **Price Oracle**: Provides accurate FIL/USD price data to determine collateral values [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#system-architecture) System Architecture ------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#normal-mode) Normal Mode ![Normal Mode Architecture](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-dee56d1ffbf624d0621d96dac76d34ba416dcfc7%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=851ccb86&sv=2) USDFC Protocol Architecture in Normal Mode ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#recovery-mode) Recovery Mode ![Recovery Mode Architecture](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-a02abe45299ac91d3d129a21a79843b309553b3d%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=1a71fb12&sv=2) USDFC Protocol Architecture in Recovery Mode [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#key-parameters) Key Parameters -------------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value Minimum Collateral Ratio (MCR) Minimum required ratio of collateral to debt 110% Recovery Mode Threshold TCR level that triggers Recovery Mode 150% Liquidation Reserve USDFC reserved for potential liquidation gas costs 20 USDFC Minimum Borrow Amount Minimum USDFC that can be borrowed 180 USDFC Base Rate Variable component of minting and redemption fees 0% to 4.5% [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------ **What happens if the price of FIL drops significantly?** If FIL price drops, Troves with lower collateral ratios may become eligible for liquidation. The protocol prioritizes liquidating the riskiest Troves first to maintain system solvency. **How does the protocol maintain the USDFC peg?** The redemption mechanism allows USDFC holders to exchange their tokens for FIL at face value, creating arbitrage opportunities that help maintain the peg. **What is the difference between Normal Mode and Recovery Mode?** In Normal Mode, Troves require a minimum 110% collateral ratio. In Recovery Mode, stricter rules apply, including higher liquidation thresholds and restrictions on borrowing. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#related-topics) Related Topics -------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousCore Mechanicschevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics) [NextThe Trove Systemchevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#how-it-works) * [System Architecture](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#system-architecture) * [Normal Mode](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#normal-mode) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#recovery-mode) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#key-parameters) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Getting Test USDFC on Testnet | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#overview) Overview ----------------------------------------------------------------------------------------------------------------------------- This tutorial guides you through the process of obtaining and using test USDFC on the Filecoin Calibration testnet. Testing on the testnet allows you to experiment with USDFC's features without using real assets. You'll learn how to: * Obtain test Filecoin (tFIL) from a faucet * Access the USDFC testnet application * Mint test USDFC using tFIL as collateral * Add test USDFC to your wallet [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#prerequisites) Prerequisites --------------------------------------------------------------------------------------------------------------------------------------- * A web3 wallet (like MetaMask) installed and have your wallet address * Basic understanding of blockchain transactions [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-1-get-test-filecoin-tfil-from-the-faucet) Step 1: Get Test Filecoin (tFIL) from the Faucet ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before minting test USDFC, you'll need test Filecoin (tFIL) to use as collateral. 1. Visit the Filecoin Calibration testnet faucet at [https://faucet.calibnet.chainsafe-fil.io/funds.htmlarrow-up-right](https://faucet.calibnet.chainsafe-fil.io/funds.html) 2. Enter your wallet address 3. Complete any verification steps required by the faucet 4. Request tFIL (you will receive 100 tFIL twice a day) 5. Wait for the transaction to complete (this usually takes a few minutes) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-f2513b85fb6ce70f26f1ff1a52239b08b22464db%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=eacfaf8e&sv=2) Filecoin Calibration testnet faucet interface [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-2-access-the-usdfc-testnet-application) Step 2: Access the USDFC Testnet Application ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The USDFC testnet application is separate from the mainnet application. 1. Go to the USDFC testnet application at [https://stg.usdfc.netarrow-up-right](https://stg.usdfc.net/) 2. Connect your wallet by clicking the "Connect Wallet" button in the top right corner 3. Ensure your wallet is set to the Filecoin Calibration testnet network ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-d360c6ae034077d294fe816218c7a68baccb0eaa%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=15d02109&sv=2) USDFC testnet application page with adding Calibration network > **Note:** The testnet application (https://stg.usdfc.net) is different from the mainnet application (https://app.usdfc.net). Make sure you're using the correct URL for testing. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-3-mint-test-usdfc-using-tfil) Step 3: Mint Test USDFC Using tFIL -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Now that you have tFIL and are connected to the testnet application, you can mint test USDFC. 1. On the USDFC testnet application, navigate to the "Trove" section and click "Open Trove" 2. Enter the amount of tFIL you want to use as collateral 3. The application will calculate the amount of USDFC you can mint based on your collateral 4. Adjust the collateral ratio as needed (higher ratios provide more protection against liquidation) 5. Confirm the transaction in your wallet 6. Wait for the transaction to be confirmed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-aa6efcff205bfc5264a155d4558dcdf3830ddd14%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=4be1c294&sv=2) Minting USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-4-add-test-usdfc-to-your-wallet) Step 4: Add Test USDFC to Your Wallet -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- After minting, you'll want to see your test USDFC in your wallet. 1. On the Dashboard page, navigate to the "Protocol Statistics" section and find "USDFC contract. 2. Click "Add to Wallet" icon. 3. The token symbol (USDFC) and decimals should be added 4. Click "Add" or "Import" to add test USDFC to your wallet ([videoarrow-up-right](https://gyazo.com/4102e760883c7c413ee1161a851d5712) ) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-575ba898aaa03fd44870a4a8190079250d6bc0bd%252FScreenshot%25202025-05-30%2520at%25201.53.26.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=cc1f7226&sv=2) Adding USDFC to Wallet [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-5-closing-your-trove) Step 5: Closing Your Trove ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Most cases, 'Adjust' should allow withdrawing collateralized FIL, but if you no longer need to use USDFC system, you can close your trove and you can reopen a trove again. circle-exclamation Don't forget to repay the borrowing fees. If you wish to close the trove with the USDFC amount you just borrowed, it doesn't work. You should repay borrowing fees. Please get additional USDFC from another account or via swap. 1. On the Dashboard page, navigate to the "Trove" section 2. Click "Close Trove" button 3. If you see error message that you need more USDFC to pay borrowing fees, please get it. 4. If you just wish to withdraw FIL as much as possible, you can cancel closing and click "Adjust" 5. Click "Confirm" to send the transaction with your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-c53afa8125bcc122d73732349d523a1d30afe1d3%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=284fd424&sv=2) Closing Your Trove requires repayment of the borrowed amount and fees in USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#using-test-usdfc-on-testnet) Using Test USDFC on Testnet ------------------------------------------------------------------------------------------------------------------------------------------------------------------- Now that you have test USDFC, you can explore various features of the USDFC ecosystem on testnet: ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#stability-pool) Stability Pool You can deposit your test USDFC into the Stability Pool to help secure the protocol and potentially earn rewards from liquidations. Learn more with [Using the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-d07e9a3726eda23099ff5c18b2c7d267da3a39ed%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=c02dbc22&sv=2) Stability Pool ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#fixed-rate-lending-market) Fixed Rate Lending Market While Bridge and SushiSwap features are not available on testnet, you can use the USDFC fixed rate lending market. 1. Visit [http://stg.secured.finance/?chain\_id=314159arrow-up-right](http://stg.secured.finance/?chain_id=314159) 2. Connect your wallet 3. Navigate to the lending markets 4. Explore lending or borrowing with your test USDFC. Learn more with [Lending Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#testnet-limitations) Testnet Limitations --------------------------------------------------------------------------------------------------------------------------------------------------- It's important to understand the differences between testnet and mainnet: * **Bridge functionality** is not available on testnet * **SushiSwap integration** is not available on testnet * Test tokens have no real-world value * Transaction times and network behavior may differ from mainnet * The USDFC fixed rate lending market is available at [https://stg.secured.financearrow-up-right](http://stg.secured.finance/?chain_id=314159) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------------------------- **Q: How often can I request test FIL from the faucet?** A: Faucet limitations vary, but typically you can request once every 24 hours. **Q: Are there any fees for transactions on testnet?** A: Yes, you'll need to pay gas fees in tFIL, but since tFIL has no real value, these fees are effectively free. **Q: Can I transfer my test USDFC to mainnet?** A: No, testnet tokens cannot be transferred to mainnet as they exist on separate networks. **Q: What should I do if my transaction fails?** A: Check that you have enough tFIL for gas fees, ensure your wallet is connected to the Filecoin Calibration testnet, and try again with a higher gas limit if necessary. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------------------- * [USDFC Overview](https://docs.secured.finance/usdfc-stablecoin/overview) * [Creating Your First Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove) * [Minting USDFC Step-by-Step](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step) * [Using the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) [PreviousGetting Startedchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started) [NextCreating Your First Trovechevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove) Last updated 8 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#overview) * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#prerequisites) * [Step 1: Get Test Filecoin (tFIL) from the Faucet](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-1-get-test-filecoin-tfil-from-the-faucet) * [Step 2: Access the USDFC Testnet Application](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-2-access-the-usdfc-testnet-application) * [Step 3: Mint Test USDFC Using tFIL](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-3-mint-test-usdfc-using-tfil) * [Step 4: Add Test USDFC to Your Wallet](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-4-add-test-usdfc-to-your-wallet) * [Step 5: Closing Your Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#step-5-closing-your-trove) * [Using Test USDFC on Testnet](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#using-test-usdfc-on-testnet) * [Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#stability-pool) * [Fixed Rate Lending Market](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#fixed-rate-lending-market) * [Testnet Limitations](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#testnet-limitations) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#common-questions) * [Related Resources](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Getting Started | Secured Finance Docs Welcome to the USDFC stablecoin protocol! This section provides step-by-step guides to help you start using USDFC, a dollar-pegged stablecoin backed by Filecoin (FIL) collateral. Whether you're new to DeFi or an experienced user, these guides will walk you through the essential operations of the USDFC protocol. USDFC allows you to unlock the value of your FIL holdings while maintaining exposure to FIL's potential price appreciation. By depositing FIL as collateral in a Trove, you can mint USDFC stablecoins and use them across the DeFi ecosystem. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#what-youll-learn) What You'll Learn ---------------------------------------------------------------------------------------------------------------- * How to create a Trove and deposit FIL collateral * How to mint USDFC stablecoins against your collateral * How to manage your collateral ratio to avoid liquidation * How to monitor your position's health * How to participate in the Stability Pool to earn rewards * How to redeem USDFC for FIL under low liquidity conditions [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#key-components) Key Components ----------------------------------------------------------------------------------------------------------- ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2Fusdfc-stablecoin%2F.gitbook%2Fassets%2FMintUSDFCforGIF2-ezgif.com-video-to-gif-converter.gif&width=768&dpr=3&quality=100&sign=c7c6122d&sv=2) Overview of the USDFC protocol workflow ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#core-operations) Core Operations Operation Description Guide Creating a Trove Set up your collateralized debt position [Creating Your First Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove) Minting USDFC Generate stablecoins against your collateral [Minting USDFC Step-by-Step](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step) Managing Collateral Add or withdraw collateral to adjust risk [Managing Collateral Effectively](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) Monitoring Position Track your Trove's health and liquidation risk [Monitoring Your Position](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) Using Stability Pool Earn rewards by helping secure the protocol [Using the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) Redeeming USDFC Exchange USDFC for FIL at face value [Redeeming USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc) ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#what-you-can-do-with-usdfc) What You Can Do With USDFC After minting USDFC, you have several options to put your stablecoins to work: 1. **Deposit into the Stability Pool** - Earn liquidated FIL at a discount while helping secure the protocol 2. **Provide Liquidity on DEXs** - Pair USDFC with FIL on SushiSwap to earn trading fees 3. **Lend in Fixed-Income Markets** - Earn interest by lending USDFC in Secured Finance's [Fixed Income Marketarrow-up-right](https://app.secured.finance/) 4. **Bridge to Other Chains** - Use the [bridge and swaparrow-up-right](https://usdfc.secured.finance/#/bridge) functionality to move USDFC to other blockchains [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#testnet-resources) Testnet Resources ----------------------------------------------------------------------------------------------------------------- If you want to try USDFC on testnet first: * Access the [Getting Test USDFC on Testnet](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet) * Get testnet tFIL from the [Calibration Faucetarrow-up-right](https://faucet.calibnet.chainsafe-fil.io/) * Watch the [Demo from FIL Dev Summit 2024arrow-up-right](https://www.youtube.com/watch?v=LOnCu4HZnXg&list=PL_0VrY55uV1__uv3uOvZ3L6exG9y10lSy&index=13) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------- * [USDFC Overview](https://docs.secured.finance/usdfc-stablecoin/overview) * [Core Mechanics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics) * [Advanced Topics](https://docs.secured.finance/usdfc-stablecoin/advanced-topics) * [FAQs](https://docs.secured.finance/usdfc-stablecoin/faqs) * [Fixed-Rate Lending](https://docs.secured.finance/fixed-rate-lending/overview) [PreviousOverviewchevron-left](https://docs.secured.finance/usdfc-stablecoin/overview) [NextGetting Test USDFC on Testnetchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/getting-test-usdfc-on-testnet) Last updated 9 months ago * [What You'll Learn](https://docs.secured.finance/usdfc-stablecoin/getting-started#what-youll-learn) * [Key Components](https://docs.secured.finance/usdfc-stablecoin/getting-started#key-components) * [Core Operations](https://docs.secured.finance/usdfc-stablecoin/getting-started#core-operations) * [What You Can Do With USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started#what-you-can-do-with-usdfc) * [Testnet Resources](https://docs.secured.finance/usdfc-stablecoin/getting-started#testnet-resources) * [Related Resources](https://docs.secured.finance/usdfc-stablecoin/getting-started#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Using the Stability Pool | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#prerequisites) Prerequisites ---------------------------------------------------------------------------------------------------------------------------------- * USDFC tokens in your wallet * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) * Connected wallet with enough FIL for gas fees [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#overview) Overview ------------------------------------------------------------------------------------------------------------------------ The Stability Pool is a key component of the USDFC protocol that helps maintain system stability. By depositing your USDFC into the Stability Pool, you contribute to the liquidation mechanism and earn rewards in the form of liquidated FIL collateral. This guide will walk you through the process of depositing USDFC into the Stability Pool and understanding how rewards work. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-1-access-the-stability-pool) Step 1: Access the Stability Pool ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- First, you need to navigate to the Stability Pool section in the USDFC application. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Connect your wallet if not already connected 3. Locate the "Stability Pool" section on the Dashboard page 4. See the "Protocol Statistics" section to check the Stability Pool information ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-89c432bc892e27e054b9b0cf67f432b0ea47cae7%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=dca2cf21&sv=2) Stability Pool section and Protocol Statistics section [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-2-review-stability-pool-information) Step 2: Review Stability Pool Information ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before depositing, review the current Stability Pool information. 1. Check the total USDFC deposited in the Stability Pool 2. Review the current rewards (if displayed) 3. Note that liquidation rewards are automatically calculated and distributed on a pro rata basis based on your Stability Pool contribution 4. Be aware that liquidation history is not displayed in the app but may be available through external on-chain analytics tools [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-3-deposit-usdfc) Step 3: Deposit USDFC ------------------------------------------------------------------------------------------------------------------------------------------------- Now you can deposit your USDFC into the Stability Pool. 1. Enter the amount of USDFC you want to deposit 2. Review any fees or conditions associated with the deposit 3. Click the "Confirm" button 4. Confirm the transaction in your wallet 5. Wait for the transaction to be processed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-247965bd0c0d2aa31bb336d3c79b56fceccad69c%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=1fbfc85f&sv=2) The Stability Pool deposit interface with the amount input field [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-4-monitor-your-deposit-and-rewards) Step 4: Monitor Your Deposit and Rewards --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- After depositing, you can monitor your position and earned rewards. 1. Your deposit amount will be displayed in the Stability Pool dashboard 2. Any earned FIL rewards will accumulate over time 3. The dashboard will show your share of the Stability Pool and Liquidation gain as rewards ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-888f010dde8525d1fd99590ef5dc8c183c5d1876%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=40a6ecb4&sv=2) Screenshot showing deposit and rewards information [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-5-claim-rewards-when-available) Step 5: Claim Rewards (When Available) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- When you've earned rewards, you can claim them. 1. Locate the "Claim FIL" or similar button in the Stability Pool dashboard 2. Click the button to claim your earned FIL rewards 3. Confirm the transaction in your wallet 4. Wait for the transaction to be processed 5. Verify that the FIL rewards have been added to your trove [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-6-withdraw-usdfc-when-desired) Step 6: Withdraw USDFC (When Desired) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- You can withdraw your USDFC from the Stability Pool at any time. 1. Enter the amount of USDFC you want to keep in the Stability Pool by subtracting the amount of USDFC you want to withdraw 2. Click the "Confirm" button 3. Confirm the transaction in your wallet 4. Wait for the transaction to be processed 5. Verify that the USDFC has been returned to your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b8e12a784a2fd02b388977f92889136f72f87734%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=3bf18288&sv=2) The withdrawal by deposit amount adjustment [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#how-stability-pool-rewards-work) How Stability Pool Rewards Work ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#liquidation-process) Liquidation Process When a Trove is liquidated, the following happens: 1. The system identifies Troves with collateral ratios below the minimum requirement 2. USDFC from the Stability Pool is used to repay the debt of the liquidated Trove 3. The liquidated Trove's collateral is distributed to Stability Pool depositors proportionally ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#reward-distribution) Reward Distribution Rewards are distributed based on your share of the Stability Pool: Your Reward\=Liquidated Collateral×Your DepositTotal Stability Pool\\text{Your Reward} = \\text{Liquidated Collateral} \\times \\frac{\\text{Your Deposit}}{\\text{Total Stability Pool}}Your Reward\=Liquidated Collateral×Total Stability PoolYour Deposit​ \[Image: Visual representation of the reward distribution mechanism\] ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#deposit-dilution) Deposit Dilution It's important to understand that your deposit may be "diluted" over time: 1. When liquidations occur, some of your deposited USDFC is used to repay debt 2. Your deposit amount decreases, but you receive FIL collateral in return 3. This is not a loss but a conversion from USDFC to FIL at a potentially favorable rate \[Image: Diagram explaining deposit dilution during liquidations\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#strategies-for-stability-pool-participation) Strategies for Stability Pool Participation ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#conservative-strategy) Conservative Strategy * Deposit a small portion of your USDFC (10-20%) * Lower risk and lower potential rewards * Good for those who want to maintain liquidity ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#balanced-strategy) Balanced Strategy * Deposit a moderate portion of your USDFC (30-60%) * Balance between liquidity and potential rewards * Monitor the system health regularly ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#aggressive-strategy) Aggressive Strategy * Deposit a large portion of your USDFC (70-100%) * Higher potential rewards during periods of liquidations * Less liquidity for other opportunities \[Image: Comparison chart of different Stability Pool strategies\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#next-steps) Next Steps ---------------------------------------------------------------------------------------------------------------------------- * Learn about [redeeming USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc) when you're ready to exit * Understand [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) and how it affects the Stability Pool * Explore other ways to use your USDFC in the ecosystem [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#troubleshooting) Troubleshooting -------------------------------------------------------------------------------------------------------------------------------------- * **Transaction Failed**: Ensure you have enough FIL for gas fees * **Cannot Deposit**: Verify that you have the USDFC amount you're trying to deposit * **Rewards Not Showing**: Rewards only accumulate when liquidations occur; there may not have been recent liquidations [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------------- **Q: Is there a minimum amount I need to deposit?** A: There is typically no minimum amount, but very small deposits may result in gas fees outweighing potential rewards. **Q: How often are rewards distributed?** A: Rewards are distributed automatically during liquidation events. The frequency depends on market conditions and system health. **Q: Can I lose my deposited USDFC?** A: Your deposit is used to repay liquidated debt, but you receive FIL collateral in return, often at a discount to market value. **Q: How do I know if the Stability Pool is profitable?** A: Monitor the liquidation history and current system health. More liquidations generally mean more rewards for depositors. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------------------ * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) * [Protocol Fees](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) [PreviousMonitoring Your Positionchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) [NextRedeeming USDFCchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#overview) * [Step 1: Access the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-1-access-the-stability-pool) * [Step 2: Review Stability Pool Information](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-2-review-stability-pool-information) * [Step 3: Deposit USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-3-deposit-usdfc) * [Step 4: Monitor Your Deposit and Rewards](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-4-monitor-your-deposit-and-rewards) * [Step 5: Claim Rewards (When Available)](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-5-claim-rewards-when-available) * [Step 6: Withdraw USDFC (When Desired)](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#step-6-withdraw-usdfc-when-desired) * [How Stability Pool Rewards Work](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#how-stability-pool-rewards-work) * [Liquidation Process](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#liquidation-process) * [Reward Distribution](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#reward-distribution) * [Deposit Dilution](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#deposit-dilution) * [Strategies for Stability Pool Participation](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#strategies-for-stability-pool-participation) * [Conservative Strategy](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#conservative-strategy) * [Balanced Strategy](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#balanced-strategy) * [Aggressive Strategy](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#aggressive-strategy) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Borrowing Assets | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#prerequisites) Prerequisites ---------------------------------------------------------------------------------------------------------------------------- * A connected wallet with sufficient collateral deposited * Basic understanding of fixed-rate lending concepts * Access to the Secured Finance platform [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#overview) Overview ------------------------------------------------------------------------------------------------------------------ Borrowing assets on Secured Finance's Fixed-Rate Lending Protocol allows you to access liquidity while maintaining exposure to your collateral assets. The protocol uses an orderbook system to match borrowers with lenders at fixed rates, providing certainty about your borrowing costs for the entire term. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-1-connect-your-wallet) Step 1: Connect Your Wallet ------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Click the "Connect Wallet" button in the top right corner 3. Select your wallet provider (MetaMask, WalletConnect, etc.) 4. Approve the connection request in your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fconnect-wallet.png&width=768&dpr=3&quality=100&sign=43c45b10&sv=2) Connect Wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-2-deposit-collateral) Step 2: Deposit Collateral ----------------------------------------------------------------------------------------------------------------------------------------------------- Before borrowing, you need to deposit collateral to secure your loan. 1. Go to the "Portfolio" tab 2. Click the "Deposit" button 3. Select the asset you want to deposit as collateral 4. Enter the amount and confirm the transaction 5. Wait for the transaction to be confirmed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-76d49046f7c6b56938623f9694b26dede95c314f%252FDeposit-x1.7mp4-ezgif.com-video-to-gif-converter.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=24309c25&sv=2) Deposit Collateral [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-3-navigate-to-the-trading-interface) Step 3: Navigate to the Trading Interface ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Click on the "Trading" tab in the main navigation 2. Select the asset you want to borrow from the dropdown menu 3. Choose the maturity date that suits your needs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Ftrading-interface.png&width=768&dpr=3&quality=100&sign=c85a2ff5&sv=2) Trading Interface [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-4-place-a-borrow-order) Step 4: Place a Borrow Order --------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Select "Borrow" in the order type section 2. Choose between "Market Order" (immediate execution at current market price) or "Limit Order" (execution at your specified price) 3. For a Limit Order: * Set your desired interest rate (APR) * Enter the amount you want to borrow 4. For a Market Order: * Enter the amount you want to borrow * Review the current market rate 5. Click "Place Order" to submit your borrow request ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fplace-order.png&width=768&dpr=3&quality=100&sign=eb2ab248&sv=2) Place Borrow Order [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-5-confirm-your-transaction) Step 5: Confirm Your Transaction ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Review the order details in the confirmation modal 2. Check the estimated gas fees 3. Click "Confirm" to proceed 4. Approve the transaction in your wallet 5. Wait for the transaction to be confirmed on the blockchain [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-6-monitor-your-position) Step 6: Monitor Your Position ----------------------------------------------------------------------------------------------------------------------------------------------------------- After successfully borrowing assets: 1. Go to the "Portfolio" tab to view your active positions 2. Monitor your collateralization ratio to ensure it stays above the minimum requirement 3. Keep track of the maturity date to plan for repayment ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fmonitor-position.png&width=768&dpr=3&quality=100&sign=43d799be&sv=2) Monitor Position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#next-steps) Next Steps ---------------------------------------------------------------------------------------------------------------------- Now that you've successfully borrowed assets, you might want to: * [Learn how to manage your positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) * [Explore auto-rolling features](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) to extend your loan term * [Understand liquidation risks](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) to protect your collateral [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#troubleshooting) Troubleshooting -------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#order-not-executing) Order Not Executing If your limit order isn't being executed: * Your specified interest rate may not be competitive with current market rates * There might be insufficient liquidity in the orderbook * Try adjusting your rate or switching to a market order for immediate execution ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#insufficient-collateral-error) Insufficient Collateral Error If you receive an "Insufficient Collateral" error: * Your collateral value may be too low for the amount you're trying to borrow * Deposit additional collateral or reduce your borrow amount * Check the current collateralization requirements for your selected asset ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#transaction-failing) Transaction Failing If your transaction is failing: * Ensure you have enough native tokens (ETH, MATIC, etc.) to cover gas fees * Check that you're not exceeding your borrowing capacity * Try refreshing the page and attempting the transaction again [PreviousLending Assetschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) [NextManaging Positionschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#overview) * [Step 1: Connect Your Wallet](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-1-connect-your-wallet) * [Step 2: Deposit Collateral](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-2-deposit-collateral) * [Step 3: Navigate to the Trading Interface](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-3-navigate-to-the-trading-interface) * [Step 4: Place a Borrow Order](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-4-place-a-borrow-order) * [Step 5: Confirm Your Transaction](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-5-confirm-your-transaction) * [Step 6: Monitor Your Position](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#step-6-monitor-your-position) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#troubleshooting) * [Order Not Executing](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#order-not-executing) * [Insufficient Collateral Error](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#insufficient-collateral-error) * [Transaction Failing](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets#transaction-failing) sun-brightdesktopmoon sun-brightdesktopmoon --- # Standardization | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#overview) Overview ---------------------------------------------------------------------------------------------------------------- Standardization is a core principle of the Fixed-Rate Lending Protocol that ensures all market participants can interact with the system in a predictable and efficient manner. By establishing consistent parameters for assets, maturities, and market operations, the protocol creates a more liquid and accessible environment for fixed-rate lending and borrowing. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#what-youll-learn) What You'll Learn --------------------------------------------------------------------------------------------------------------------------------- * How standardized maturities create predictable market cycles * How Zero-Coupon Bonds represent lending and borrowing positions * How standardization benefits market liquidity and user experience * How the protocol maintains consistency across different markets [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#key-components) Key Components ---------------------------------------------------------------------------------------------------------------------------- * [**Fixed Maturity**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity) : Standardized time periods for lending and borrowing * [**Zero-Coupon Bonds**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) : The standardized representation of lending and borrowing positions [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------- * [Order Book System](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Collateralization](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization) * [Advanced Topics](https://docs.secured.finance/fixed-rate-lending/advanced-topics) [PreviousCase Study: Order Status & Transitionchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition) [NextZero-Coupon Bondschevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Platform Guide | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#overview) Overview ---------------------------------------------------------------------------------------------------------------- Welcome to the Secured Finance platform guide. This section provides a comprehensive overview of our web application interface, designed to help you navigate and utilize all the features of the Fixed-Rate Lending Protocol. The platform offers a user-friendly experience for lending, borrowing, and trading zero-coupon bonds with fixed rates. circle-info If you wish to start trading immediately, please visit our [Beginners Guide](https://docs.secured.finance/fixed-rate-lending/getting-started) featuring tutorial animations. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#what-youll-learn) What You'll Learn --------------------------------------------------------------------------------------------------------------------------------- * How to navigate the six main tabs of the platform interface * How to use the Trading tab for buying and selling zero-coupon bonds * How to monitor market conditions and yield curves * How to manage your portfolio, positions, and collateral * How to bridge assets between different blockchains * How to earn and utilize platform points and participate in campaigns [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#key-components) Key Components ---------------------------------------------------------------------------------------------------------------------------- * [**Trading**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading) : The main interface for lending and borrowing through zero-coupon bond trading * [**Markets**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets) : View blockchain status, market conditions, and yield curves for digital assets * [**Portfolio**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio) : Manage assets, collateral, positions, and transaction history * [**Bridge**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge) : Transfer assets securely between different blockchain networks * [**Points**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points) : Earn rewards based on platform usage and participation [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------- * [Lending Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) : Detailed guide on lending through the platform * [Borrowing Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets) : Step-by-step instructions for borrowing * [Managing Positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) : How to monitor and adjust your positions * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) : Understanding the protocol's fundamental concepts * [Advanced Topics](https://docs.secured.finance/fixed-rate-lending/advanced-topics) : Exploring technical details and advanced features * * * In the following sections, we provide detailed explanations of each tab's functions and usage. This will enable you to maximize the use of the Secured Finance platform and manage your assets more effectively. [PreviousManaging Positionschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) [NextTradingchevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Managing Positions | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#prerequisites) Prerequisites ------------------------------------------------------------------------------------------------------------------------------ * Active lending or borrowing positions on the Secured Finance platform * A connected wallet * Basic understanding of fixed-rate lending concepts [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#overview) Overview -------------------------------------------------------------------------------------------------------------------- Managing your positions effectively is crucial for maximizing returns and minimizing risks in the Fixed-Rate Lending Protocol. This guide will walk you through the various ways to monitor, adjust, and close your positions, helping you navigate the platform with confidence. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-1-view-your-active-positions) Step 1: View Your Active Positions ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Connect your wallet if not already connected 3. Go to the "Portfolio" tab to see all your active positions 4. Review your positions, including: * Asset type * Position size * Maturity date * Current value * Profit/loss ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fportfolio-view.png&width=768&dpr=3&quality=100&sign=b52add0e&sv=2) Portfolio View [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-2-monitor-collateralization-ratio-for-borrowers) Step 2: Monitor Collateralization Ratio (For Borrowers) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- If you have borrowed assets, it's essential to monitor your collateralization ratio: 1. In the Portfolio tab, locate your borrowing positions 2. Check the current collateralization ratio for each position 3. Ensure it stays above the minimum required ratio to avoid liquidation 4. Set up notifications (if available) to alert you when your ratio approaches the minimum threshold [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-3-adding-to-existing-positions) Step 3: Adding to Existing Positions --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To increase an existing position: 1. Navigate to the Trading tab 2. Select the same asset and maturity as your existing position 3. Choose the same position type (Lend or Borrow) 4. Place a new order with the additional amount 5. Confirm the transaction in your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fadd-position.png&width=768&dpr=3&quality=100&sign=b8089135&sv=2) Add to Position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-4-reducing-positions) Step 4: Reducing Positions ------------------------------------------------------------------------------------------------------------------------------------------------------- To partially close a position before maturity: 1. Go to the Portfolio tab 2. Find the position you want to reduce 3. Click the "Unwind" button 4. Select "Partial" unwind option 5. Enter the amount you want to reduce 6. Review the details and confirm the transaction ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Freduce-position.png&width=768&dpr=3&quality=100&sign=3339d904&sv=2) Reduce Position [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-5-unwinding-positions-early-exit) Step 5: Unwinding Positions (Early Exit) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To completely close a position before maturity: 1. Go to the Portfolio tab 2. Find the position you want to close 3. Click the "Unwind" button 4. Select "Full" unwind option 5. Review the details, including any fees or slippage 6. Confirm the transaction in your wallet circle-info Unwinding positions before maturity may result in different returns than holding until maturity, depending on current market rates. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-6-understanding-auto-rolling) Step 6: Understanding Auto-Rolling ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- Auto-Rolling is a protocol-wide feature that automatically transitions positions to the next maturity period: 1. All positions are subject to Auto-Rolling when they reach maturity 2. The protocol automatically handles the transition to the next maturity period 3. There is no need to manually select or configure Auto-Roll settings 4. Be aware that Auto-Rolling will maintain your exposure to the market circle-info Auto-Rolling is a protocol feature that applies to all positions. You cannot opt out of Auto-Rolling directly, but you can unwind your position before maturity if you wish to exit. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-7-exiting-positions-at-maturity) Step 7: Exiting Positions at Maturity ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To exit your position when it reaches maturity: 1. You must manually unwind your position before or after maturity 2. Go to the Active Positions tab 3. Find the position you want to exit 4. Click the "Close" button 5. Review the details, including any fees or slippage 6. Confirm the transaction in your wallet circle-exclamation There is no automatic claim system. You must manually unwind your position to exit, which means there is liquidity risk if there are insufficient counterparties in the market. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#next-steps) Next Steps ------------------------------------------------------------------------------------------------------------------------ After mastering position management, you might want to: * [Explore advanced trading strategies](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Learn about liquidation mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) to better manage risk * [Understand Zero-Coupon Bond tokenization](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization) for additional opportunities [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#troubleshooting) Troubleshooting ---------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#unwind-order-not-executing) Unwind Order Not Executing If your unwind order isn't being executed: * There might be insufficient liquidity in the orderbook * Your unwind price might not be competitive with current market rates * Try using a market unwind instead of a limit unwind for immediate execution ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#position-not-showing-updated-values) Position Not Showing Updated Values If your position values aren't updating: * Refresh the page to get the latest data * Check that your wallet is still connected * Verify that the blockchain network is functioning normally * Contact support if the issue persists [PreviousBorrowing Assetschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets) [NextPlatform Guidechevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#overview) * [Step 1: View Your Active Positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-1-view-your-active-positions) * [Step 2: Monitor Collateralization Ratio (For Borrowers)](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-2-monitor-collateralization-ratio-for-borrowers) * [Step 3: Adding to Existing Positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-3-adding-to-existing-positions) * [Step 4: Reducing Positions](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-4-reducing-positions) * [Step 5: Unwinding Positions (Early Exit)](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-5-unwinding-positions-early-exit) * [Step 6: Understanding Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-6-understanding-auto-rolling) * [Step 7: Exiting Positions at Maturity](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#step-7-exiting-positions-at-maturity) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#troubleshooting) * [Unwind Order Not Executing](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#unwind-order-not-executing) * [Position Not Showing Updated Values](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions#position-not-showing-updated-values) sun-brightdesktopmoon sun-brightdesktopmoon --- # Monitoring Your Position | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#prerequisites) Prerequisites ---------------------------------------------------------------------------------------------------------------------------------- * An active Trove with FIL collateral * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) * Basic understanding of collateral ratios and liquidation risk [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#overview) Overview ------------------------------------------------------------------------------------------------------------------------ Monitoring your position is essential for maintaining a healthy Trove and avoiding liquidation. This guide will show you how to track your Trove's health, understand key metrics, and set up alerts to stay informed about changes that could affect your position. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-1-access-your-trove-dashboard) Step 1: Access Your Trove Dashboard ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Trove dashboard is your primary tool for monitoring your position. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Connect your wallet if not already connected 3. Go to the "Trove" section on the USDFC Dashboard page 4. Review your current Trove details ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-3561fc948611eec14b7a817674d7c1ad48c83e26%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=5293c824&sv=2) Screenshot of the Trove dashboard showing key metrics [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-2-understand-key-metrics) Step 2: Understand Key Metrics ------------------------------------------------------------------------------------------------------------------------------------------------------------------- To effectively monitor your position, you need to understand the key metrics displayed on your dashboard. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#collateral-ratio) Collateral Ratio The collateral ratio is the most important metric to monitor. It represents the value of your collateral relative to your debt. Collateral Ratio\=Collateral Value in USDDebt in USDFC×100%\\text{Collateral Ratio} = \\frac{\\text{Collateral Value in USD}}{\\text{Debt in USDFC}} \\times 100\\%Collateral Ratio\=Debt in USDFCCollateral Value in USD​×100% * **Safe Zone**: Above 200% (Conservative) * **Caution Zone**: 150% to 200% (Moderate risk) * **Danger Zone**: 110% to 150% (High risk) * **Liquidation Zone**: Below 110% (Immediate risk) \[Image: Visual representation of collateral ratio zones\] ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#liquidation-price) Liquidation Price The liquidation price is the FIL price at which your Trove would reach the minimum collateral ratio (110%) and become eligible for liquidation. Liquidation Price\=Debt in USDFC×1.1Collateral in FIL\\text{Liquidation Price} = \\frac{\\text{Debt in USDFC} \\times 1.1}{\\text{Collateral in FIL}}Liquidation Price\=Collateral in FILDebt in USDFC×1.1​ \[Image: Visualization of liquidation price calculation\] ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#current-fil-price) Current FIL Price The current price of FIL relative to USD is displayed to help you understand how close you are to your liquidation price. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#available-actions) Available Actions Based on your current metrics, the dashboard may suggest available actions to improve your position's health. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-3-set-up-external-alerts) Step 3: Set Up External Alerts ------------------------------------------------------------------------------------------------------------------------------------------------------------------- While the USDFC application doesn't currently offer built-in alerts, you can set up external alerts to monitor your position. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#price-alerts) Price Alerts Set up price alerts for FIL using cryptocurrency tracking apps or exchanges. 1. Calculate your liquidation price 2. Set an alert for when FIL price approaches this threshold (e.g., 20% above liquidation price) 3. Popular platforms for price alerts include [CoinGeckoarrow-up-right](https://www.coingecko.com/learn/how-to-set-up-the-price-alert-function-on-coingecko) , CoinMarketCap, or exchange apps ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#blockchain-monitoring-tools) Blockchain Monitoring Tools Use blockchain monitoring tools to track your Trove's health. 1. Find your Trove's address or ID 2. Set up monitoring using tools like [Filfoxarrow-up-right](https://filfox.info/en) , Tenderly, or DeFi-specific monitoring platforms 3. Configure alerts for significant changes to your Trove [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-4-regular-check-ins) Step 4: Regular Check-ins --------------------------------------------------------------------------------------------------------------------------------------------------------- Establish a routine for checking your Trove's health. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#daily-checks-high-risk-positions) Daily Checks (High-Risk Positions) If your collateral ratio is close to the minimum (110%-150%): * Check your position at least once daily * Monitor FIL price movements throughout the day * Be prepared to add collateral quickly if needed ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#weekly-checks-moderate-risk-positions) Weekly Checks (Moderate-Risk Positions) If your collateral ratio is in a safer range (150%-200%): * Check your position at least once weekly * Review FIL price trends for the week * Adjust collateral as needed based on market outlook ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#monthly-checks-low-risk-positions) Monthly Checks (Low-Risk Positions) If your collateral ratio is very high (>200%): * Check your position at least once monthly * Evaluate if you're being too conservative with your capital * Consider strategies to optimize your position [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-5-respond-to-market-changes) Step 5: Respond to Market Changes ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Develop a plan for responding to different market scenarios. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#during-fil-price-decreases) During FIL Price Decreases 1. Calculate how much the price can drop before reaching your comfort threshold 2. Prepare additional FIL for collateral if needed 3. Consider reducing your debt by repaying some USDFC ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#during-fil-price-increases) During FIL Price Increases 1. Evaluate if you want to withdraw some collateral 2. Consider minting additional USDFC 3. Rebalance your position to maintain your target collateral ratio \[Image: Flowchart showing decision paths for different market scenarios\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#next-steps) Next Steps ---------------------------------------------------------------------------------------------------------------------------- * Learn how to [manage your collateral effectively](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) * Consider [depositing USDFC into the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) to earn rewards * Understand [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) and how it affects your Trove [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#troubleshooting) Troubleshooting -------------------------------------------------------------------------------------------------------------------------------------- * **Dashboard Not Loading**: Try refreshing the page or reconnecting your wallet * **Metrics Not Updating**: Check if there are pending transactions or network congestion * **Unexpected Collateral Ratio**: Verify the current FIL price from multiple sources [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------------- **Q: How often does the dashboard update?** A: The dashboard updates in real-time based on blockchain data and current price feeds. **Q: Will I receive notifications if my Trove is at risk?** A: The USDFC application doesn't currently send automatic notifications. You should set up external alerts as described above. **Q: What should I do if I can't access the application but know my position is at risk?** A: You can interact with the USDFC protocol directly through the smart contracts if necessary. Keep emergency funds ready to add collateral when needed. **Q: How can I tell if the system is in Recovery Mode?** A: The dashboard will display a prominent notification when the system enters Recovery Mode. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------------------ * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Collateral Ratioarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/usdfc-stablecoin/getting-started/broken-reference/README.md) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousManaging Collateral Effectivelychevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) [NextUsing the Stability Poolchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#overview) * [Step 1: Access Your Trove Dashboard](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-1-access-your-trove-dashboard) * [Step 2: Understand Key Metrics](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-2-understand-key-metrics) * [Collateral Ratio](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#collateral-ratio) * [Liquidation Price](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#liquidation-price) * [Current FIL Price](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#current-fil-price) * [Available Actions](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#available-actions) * [Step 3: Set Up External Alerts](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-3-set-up-external-alerts) * [Price Alerts](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#price-alerts) * [Blockchain Monitoring Tools](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#blockchain-monitoring-tools) * [Step 4: Regular Check-ins](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-4-regular-check-ins) * [Daily Checks (High-Risk Positions)](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#daily-checks-high-risk-positions) * [Weekly Checks (Moderate-Risk Positions)](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#weekly-checks-moderate-risk-positions) * [Monthly Checks (Low-Risk Positions)](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#monthly-checks-low-risk-positions) * [Step 5: Respond to Market Changes](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#step-5-respond-to-market-changes) * [During FIL Price Decreases](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#during-fil-price-decreases) * [During FIL Price Increases](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#during-fil-price-increases) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Order Life Cycle | Secured Finance Docs In this section, we aim to demystify the various stages your order may undergo, providing clarity on your current order status, which is accessible through the 'Order History' tab on our [portfolio page.arrow-up-right](https://app.gitbook.com/o/DralddHerVJQe2eHzg9a/s/5n2yKWdxy0II5Sd3ZIQL/~/changes/105/platform-guide/trading-interface/portfolio) [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle#life-cycle-representation-by-order-statuses) Life Cycle Representation by Order Statuses --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- As you embark on your trading journey with us, you initially select an Order Type—either 'Market Order' or 'Limit Order', as detailed in the [preceding section](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type) . As your order progresses, it will assume one of seven distinct states that delineate its current status and actions being undertaken on it. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b602f5a548aec7d4fd0f6b4a2ea1758e80a1744f%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=7dfb6884&sv=2) Order Status Diagram 1. **Open** Exclusive to Limit Order. This state indicates an order is awaiting execution, pending the market price reaching the specified limit. 2. **Partially Filled** Applicable to both Market and Limit Order. Indicates that only a portion of the order has been executed, due to limited liquidity at the desired price. 3. **Filled** Relevant for both Market and Limit Orders, signifying complete execution. Market Orders achieve this state almost immediately at current market prices, while Limit Orders do so once the market price meets the specified limit. 4. **Killed** Specific to Market Orders that have been partially filled. This state indicates that the order cannot proceed to full execution due to **insufficient liquidity**. 5. **Blocked** It pertains solely to market order and arises in exceptional regulatory conditions, such as the activation of [**circuit breakers**arrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/circuit-breaker/README.md) **.** 6. **Canceled** This state is possible for Limit Order. The trader can cancel the order if it has not yet been executed. 7. **Expired** Specifically for Limit Order, this state is reached when an order remains unfulfilled by the time the underlying bond reaches its maturity in the order book. After an order expires, any funds that were allocated but not used for the trade are returned to your collateral vault. A unique aspect of our order lifecycle is the occurrence of combined states, particularly for orders that still need to be fully executed. These include states such as 'Partially Filled & Cancelled' or 'Partially Filled & Blocked', which serve as final designations for an order. Such combined states are crucial for understanding the nuanced outcomes of your trading actions, indicating that an order has been initiated but not completed due to specific conditions and, subsequently, the action is taken (canceled, blocked, etc.) as a resolution. circle-info For detailed examples, please take a look at the next section. [PreviousOrder Typechevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type) [NextCase Study: Order Status & Transitionchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition) Last updated 1 year ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Overview | Secured Finance Docs [PreviousBug Bountychevron-left](https://docs.secured.finance/developer-portal/bug-bounty) [NextGovernancechevron-right](https://docs.secured.finance/community/governance) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Recovery Mode | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#overview) Overview ------------------------------------------------------------------------------------------------------------- Recovery Mode is a critical safety mechanism in the USDFC Stablecoin Protocol that activates when the Total Collateral Ratio (TCR) falls below 150%. It implements stricter rules for borrowing and liquidation to protect the protocol from systemic under-collateralization and restore stability to the system. circle-exclamation When Recovery Mode is active, Troves with collateral ratios below the current TCR become eligible for liquidation, even if they are above the normal 110% minimum threshold. This creates significant risk for borrowers with lower collateral ratios. [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------------- Recovery Mode is triggered automatically when the protocol's Total Collateral Ratio (TCR) falls below 150%. During this state, the protocol implements several changes to encourage deleveraging and recapitalization: ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#key-changes-during-recovery-mode) Key Changes During Recovery Mode 1. **Elevated Liquidation Threshold** * Normal Mode: Troves below 110% collateral ratio are eligible for liquidation * Recovery Mode: Troves below the current TCR (which is < 150%) are eligible for liquidation * This means a Trove with 140% collateral ratio could be liquidated if the TCR is 145% 2. **Zero Minting Fee** * The borrowing fee is reduced to 0% to encourage users to add collateral * This makes it more economical to improve collateral ratios by minting additional USDFC 3. **Restricted Borrowing** * New borrowing is only allowed if it improves the TCR * Users can only mint USDFC if they create a new Trove with ≥150% collateral ratio * Existing Trove adjustments are only permitted if they increase the collateral ratio [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------- Parameter Normal Mode Recovery Mode Liquidation Threshold 110% Current TCR (< 150%) Minting Fee Base Rate + 0.5% 0% Minimum New Trove CR 110% 150% System Exit Threshold N/A TCR ≥ 150% [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#liquidation-behavior-in-recovery-mode) Liquidation Behavior in Recovery Mode ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- Recovery Mode introduces a more complex liquidation process to maximize system stability: Condition Liquidation Behavior ICR ≤ 100% **Redistribute** all debt and collateral (minus gas compensation) to active Troves. 100% < ICR < 110% & SP USDFC > Trove debt USDFC in the Stability Pool equal to the Trove's debt is offset with the Trove's debt. The Trove's FIL collateral (minus gas compensation) is shared between depositors. 100% < ICR < 110% & SP USDFC < Trove debt The total Stability Pool USDFC is offset with an equal amount of debt from the Trove. A fraction of the Trove's collateral (equal to the ratio of its offset debt to its entire debt) is shared between depositors. The remaining debt and collateral (minus gas compensation) is **redistributed** to active Troves. 110% ≤ ICR < TCR & SP USDFC >= Trove debt The Stability Pool USDFC is offset with an equal amount of debt from the Trove. A fraction of FIL collateral with dollar value equal to `1.1 * debt` is shared between depositors. Nothing is redistributed to other active Troves. Since its ICR was `> 1.1`, the Trove has a collateral remainder, which is sent to the `CollSurplusPool` and is claimable by the borrower. The Trove is closed. 110% ≤ ICR < TCR & SP USDFC < Trove debt Do nothing. ICR ≥ TCR Do nothing. Where: * ICR = Individual Collateral Ratio * MCR = Minimum Collateral Ratio (110%) * TCR = Total Collateral Ratio * SP = Stability Pool [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#example-scenario) Example Scenario ----------------------------------------------------------------------------------------------------------------------------- 1. **Triggering Recovery Mode** * The TCR falls to 145%, automatically activating Recovery Mode * All Troves with collateral ratios below 145% become eligible for liquidation 2. **System Response** * Minting fees drop to 0% to encourage collateral additions * Borrowers rush to improve their collateral ratios to avoid liquidation * Liquidators target Troves with collateral ratios below 145% 3. **Exiting Recovery Mode** * As users add collateral and repay debt, the TCR gradually improves * Once the TCR exceeds 150%, the system returns to Normal Mode * Regular liquidation thresholds (110%) and minting fees are restored [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#risk-management-for-borrowers) Risk Management for Borrowers ------------------------------------------------------------------------------------------------------------------------------------------------------- During Recovery Mode, borrowers should take immediate action to protect their positions: 1. **Add Collateral**: The most direct way to increase your collateral ratio 2. **Repay Debt**: Reducing your debt also improves your collateral ratio 3. **Monitor TCR**: Keep track of the system's TCR to understand your liquidation risk 4. **Maintain Buffer**: Aim for a collateral ratio well above 150% to avoid liquidation risk circle-check **Best Practice**: Maintain a collateral ratio of at least 200% during normal operations to provide a substantial buffer against Recovery Mode liquidations. [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------- **How long does Recovery Mode typically last?** The duration varies based on market conditions and user behavior. It ends automatically when the TCR returns above 150%. **Will I be notified if Recovery Mode is activated?** The protocol doesn't send direct notifications. You should monitor the protocol's status page or use third-party monitoring tools. **Can I still close my Trove during Recovery Mode?** Yes, you can still close your Trove by repaying all debt, regardless of Recovery Mode status. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [System Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview) [PreviousAdvanced Topicschevron-left](https://docs.secured.finance/usdfc-stablecoin/advanced-topics) [NextContracts and Securitychevron-right](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#how-it-works) * [Key Changes During Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#key-changes-during-recovery-mode) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#key-parameters) * [Liquidation Behavior in Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#liquidation-behavior-in-recovery-mode) * [Example Scenario](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#example-scenario) * [Risk Management for Borrowers](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#risk-management-for-borrowers) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Campaign | Secured Finance Docs [PreviousPointschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points) [NextCore Mechanicschevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Portfolio | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#prerequisites) Prerequisites ------------------------------------------------------------------------------------------------------------------------------------ * A connected wallet * Assets deposited on the platform (for full functionality) * Basic understanding of lending and borrowing concepts [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#overview) Overview -------------------------------------------------------------------------------------------------------------------------- The [**Portfolio tab**arrow-up-right](https://app.secured.finance/portfolio/) on the Secured Finance platform is a comprehensive tool designed to help users effectively manage their digital assets. It provides a detailed overview of your financial position, including key metrics such as Net Asset Value, Active Contracts, Lending Present Value (PV), and Borrowing PV. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-1-accessing-your-portfolio) Step 1: Accessing Your Portfolio ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Connect your wallet if not already connected 3. Click on the "Portfolio" tab in the main navigation 4. The dashboard will load with your current portfolio information [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-2-understanding-your-portfolio-overview) Step 2: Understanding Your Portfolio Overview --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Portfolio Overview section provides key metrics about your financial position: 1. **Net Asset Value** * View the total value of your digital assets on the platform * This is calculated by adding the value of your active contracts and collateral * Monitor this value to track your overall portfolio performance 2. **Active Contracts** * See all your active lending and borrowing contracts * Review details such as maturity dates, interest rates, and asset amounts * Use this information to plan your financial strategy 3. **Lending PV and Borrowing PV** * Understand the Present Value of your lending and borrowing activities * These metrics show the current worth of your contracts * Compare these values to track your net position ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fportfolio-overview.png&width=768&dpr=3&quality=100&sign=f4bc4c00&sv=2) Portfolio Overview [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-3-managing-your-assets) Step 3: Managing Your Assets ----------------------------------------------------------------------------------------------------------------------------------------------------------------- The Asset Management section helps you monitor and control your collateral: 1. **Collateral Balance** * Check the total value of assets pledged as collateral * Use this information to ensure your loans are adequately backed * Monitor changes in collateral value due to market fluctuations 2. **Collateral Assets** * View the specific assets you've pledged as collateral * See the distribution of your collateral across different asset types * Manage your collateral portfolio effectively 3. **Non-collateral Assets** * Track borrowed assets held in Secured Finance's Vault * Distinguish between collateral and non-collateral assets * Plan how to utilize these assets effectively [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-4-monitoring-risk-metrics) Step 4: Monitoring Risk Metrics ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- Risk management tools help you maintain a healthy portfolio: 1. **Collateral Utilization** * Check the percentage of your collateral being used to back borrowing * Keep this metric at a comfortable level to avoid over-leveraging * Adjust your positions if utilization approaches concerning levels 2. **Liquidation Risk** * Review the risk of your collateral being liquidated * Monitor market conditions that might affect your collateral value * Take proactive measures to avoid liquidation events [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-5-tracking-your-transactions) Step 5: Tracking Your Transactions ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Transactions section provides a comprehensive view of your trading activities: 1. **Active Positions** * Navigate to the "Active Positions" tab * Review your current lending and borrowing positions * Monitor contract details including maturity dates and interest rates 2. **Open Orders** * Click on the "Open Orders" tab * View all your pending orders in the orderbook * Check order details such as price, quantity, and status 3. **Order History** * Access the "Order History" tab * Track your historical trading activity * Analyze your trading strategy and performance over time 4. **My Transactions** * Review the "My Transactions" tab * See a record of all platform transactions * Check transaction types, timestamps, and statuses [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-6-taking-action-on-your-portfolio) Step 6: Taking Action on Your Portfolio --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. **Deposit Additional Assets** * Click the "Deposit" button * Select the asset you want to deposit * Enter the amount and confirm the transaction 2. **Withdraw Assets** * Click the "Withdraw" button * Select the asset you want to withdraw * Enter the amount and confirm the transaction 3. **Adjust Collateral** * Use the collateral management tools to optimize your position * Add or remove collateral based on your risk assessment * Ensure you maintain a safe collateralization ratio [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#next-steps) Next Steps ------------------------------------------------------------------------------------------------------------------------------ After mastering the Portfolio management tools, you might want to: * [Place new ordersarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/trading/README.md) to expand your lending or borrowing positions * [Set up auto-rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) for your positions * [Learn about liquidation mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) to better manage risk [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#troubleshooting) Troubleshooting ---------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#portfolio-not-loading) Portfolio Not Loading If your portfolio information isn't loading: * Ensure your wallet is properly connected * Check that you're on the correct network * Try refreshing the page * Clear your browser cache if issues persist ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#transactions-not-appearing) Transactions Not Appearing If recent transactions aren't showing in your history: * Transactions may take a few moments to appear * Verify the transaction was confirmed on the blockchain * Check that you're viewing the correct account * Try switching networks and back if using a multi-chain wallet ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#collateral-value-discrepancies) Collateral Value Discrepancies If you notice unexpected changes in collateral value: * Check for recent market price fluctuations * Verify that all assets are displaying correctly * Ensure there are no pending transactions affecting your balance * Contact support if you believe there's an error in the calculation [PreviousMarketschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets) [NextBridgechevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#overview) * [Step 1: Accessing Your Portfolio](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-1-accessing-your-portfolio) * [Step 2: Understanding Your Portfolio Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-2-understanding-your-portfolio-overview) * [Step 3: Managing Your Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-3-managing-your-assets) * [Step 4: Monitoring Risk Metrics](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-4-monitoring-risk-metrics) * [Step 5: Tracking Your Transactions](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-5-tracking-your-transactions) * [Step 6: Taking Action on Your Portfolio](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#step-6-taking-action-on-your-portfolio) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#troubleshooting) * [Portfolio Not Loading](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#portfolio-not-loading) * [Transactions Not Appearing](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#transactions-not-appearing) * [Collateral Value Discrepancies](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio#collateral-value-discrepancies) sun-brightdesktopmoon sun-brightdesktopmoon --- # Collateralization | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#overview) Overview ------------------------------------------------------------------------------------------------------------------ Collateralization is a fundamental mechanism in the Fixed-Rate Lending Protocol that ensures the security and stability of the lending system. By requiring borrowers to deposit assets as collateral, the protocol protects lenders from default risk while enabling borrowers to access liquidity without traditional credit checks. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------------- The collateralization process in the Fixed-Rate Lending Protocol involves users depositing supported assets as collateral before borrowing or trading. The protocol continuously monitors the value of collateral against outstanding loans using real-time price feeds. If the collateralization ratio falls below the required threshold, the position becomes eligible for liquidation to protect the system's solvency. Each collateral type has specific parameters including minimum collateralization ratios, liquidation thresholds, and accepted currencies. The protocol supports multi-collateral positions, allowing users to diversify their risk across different assets. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------ Parameter Description Value Minimum Collateralization Ratio The minimum ratio of collateral value to loan value required 110%-150% (varies by asset) Liquidation Threshold The collateralization ratio at which a position becomes eligible for liquidation Varies by asset Collateral Factor The percentage of an asset's value that can be borrowed against 50%-90% (varies by asset) Price Feed Update Frequency How often collateral values are updated from oracles Real-time Supported Collateral Types Assets accepted as collateral WBTC, ETH, USDC, FIL, iFIL, pFIL, USDFC (varies by network) [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-is-collateral) What is Collateral? --------------------------------------------------------------------------------------------------------------------------------------- Collateral is an asset that borrowers pledge to back a loan. It acts as a safety net for lenders, giving them the assurance that borrowers have a strong reason to repay their loans. If a borrower defaults, the lender can seize the collateral to recover the outstanding loan amount. Collateral can take various forms, such as real estate, vehicles, or other valuable assets, but it's a cornerstone of secured loans. It often allows borrowers to enjoy lower interest rates due to reduced lender risk. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#the-dual-role-of-collateral-in-secured-finance) The Dual Role of Collateral in Secured Finance Collateral serves two main purposes in Secured Finance: 1. **Risk Reduction:** It reduces the risk of loan default. If a borrower's Loan-to-Value (LTV) ratio crosses a certain threshold, or if the collateral's value falls below the loan's required value, the loan becomes eligible for liquidation. This mechanism protects lenders and builds confidence in our platform. 2. **Inclusivity:** It eliminates the need for traditional credit checks, aligning with the DeFi ethos of open and inclusive financial services. * * * [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies) Collateral Currencies -------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance accepts various cryptocurrencies as collateral, tailored to each supported blockchain network to provide users with effective and flexible options. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies-on-ethereum-and-arbitrum) Collateral Currencies on Ethereum and Arbitrum We continue to support these collateral assets on **Ethereum** and **Arbitrum**: #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#wrapped-bitcoin-wbtc) **Wrapped Bitcoin (WBTC)** Represents Bitcoin on Ethereum, allowing BTC holders to tap into Ethereum’s DeFi ecosystem. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#ethereum-eth) **Ethereum (ETH)** Native asset of the Ethereum network, widely used for smart contracts and DeFi applications. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#usd-coin-usdc) **USD Coin (USDC)** A stablecoin pegged to the US dollar, offering minimal volatility. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies-on-filecoin-virtual-machine-fvm) Collateral Currencies on Filecoin Virtual Machine (FVM) With the launch of the Filecoin Virtual Machine (FVM), Secured Finance now supports different collateral assets unique to this network: #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#filecoin-fil) **Filecoin (FIL)** Filecoin is the native cryptocurrency of the Filecoin network, a decentralized storage system aiming to "store humanity's most important information." FIL is used to pay for storage services and incentivize network participants. It can now be used as collateral on Secured Finance within the FVM network. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#usd-for-filecoin-community-usdfc) USD for Filecoin Community (USDFC) [**USDFC**](https://docs.secured.finance/usdfc-stablecoin/overview) is a FIL-backed stablecoin minted through a **Collateralized Debt Position (CDP)** approach on the Filecoin Virtual Machine (FVM). By locking FIL as collateral, users can generate USDFC—maintaining a **1:1 peg** to the U.S. dollar—without selling their underlying assets. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#ifil-and-pfil-filecoin-liquid-staking-token) **iFIL and pFIL (Filecoin Liquid Staking Token)** iFIL and pFIL are a liquid staking token for Filecoin. It represents staked FIL tokens and provides liquidity to users who stake their FIL. For example, by staking FIL through the [GLIFarrow-up-right](https://glif.io/) platform, users receive iFIL tokens, which can be used as collateral on Secured Finance within the FVM network. circle-check **How to Obtain iFIL** To acquire iFIL tokens, follow these steps: 1. **Stake FIL on GLIF**: Visit the GLIF Staking Platform and stake your FIL tokens. 2. **Receive iFIL**: After staking, you will receive an equivalent amount of iFIL tokens. 3. **Use iFIL as Collateral**: Deposit your iFIL tokens into your Secured Finance portfolio on the FVM network to use them as collateral. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#examples) Examples ------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#example-1-borrowing-with-eth-collateral) Example 1: Borrowing with ETH Collateral A user wants to borrow 1,000 USDC on Ethereum. They would: 1. Deposit 1 ETH as collateral (assuming ETH price is $2,000) 2. This gives them a collateralization ratio of 200% (2,000 / 1,000 × 100%) 3. They can now borrow up to 1,000 USDC while maintaining a safe position 4. If ETH price drops below $1,500, their position would be at risk of liquidation ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#example-2-using-ifil-as-collateral-on-fvm) Example 2: Using iFIL as Collateral on FVM A storage provider has 1,000 FIL they want to earn yield on while also accessing liquidity: 1. They stake their 1,000 FIL on GLIF to receive 1,000 iFIL 2. They deposit the 1,000 iFIL as collateral on Secured Finance 3. They can now borrow USDFC while their original FIL continues earning staking rewards 4. This creates a dual yield opportunity: staking rewards plus potential trading gains [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-happens-if-my-collateral-value-drops) What happens if my collateral value drops? If your collateral value drops below the required threshold for your loan, your position becomes eligible for liquidation. The protocol will automatically liquidate a portion of your collateral to repay part of your debt and bring your position back to a safe level. To avoid liquidation, you can either add more collateral or repay part of your loan. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#can-i-use-multiple-types-of-collateral-for-a-single-loan) Can I use multiple types of collateral for a single loan? Yes, Secured Finance supports multi-collateral positions. You can deposit different types of accepted collateral assets to back your loan, which can help diversify your risk exposure to any single asset's price volatility. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#how-often-is-my-collateral-value-updated) How often is my collateral value updated? Collateral values are updated in real-time using oracle price feeds. This ensures that your position's health is always calculated based on the most current market prices. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-are-the-minimum-collateral-requirements) What are the minimum collateral requirements? Minimum collateral requirements vary by asset type and network. Generally, the protocol requires a minimum collateralization ratio of 110%-150% depending on the volatility and liquidity of the collateral asset. Specific requirements for each asset are displayed in the platform interface. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#future-plans-expanding-collateral-options) Future Plans: Expanding Collateral Options ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- While WBTC, ETH, USDC, FIL, iFIL, pFIL, and USDFC are our current collateral options across supported networks, we continue to explore additional assets that align with our commitment to flexibility, security, and open DeFi principles. Stay tuned for updates on new collateral integrations and chain support as we further evolve the Secured Finance platform. circle-exclamation We are **sunsetting support** for Avalanche and Polygon zkEVM. Collateral options for those networks will no longer be active on Secured Finance Fixed Rate Lending Protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------ * [Liquidation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) * [Order Book System](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [PreviousFixed Maturitychevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity) [NextTokenizationchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#key-parameters) * [What is Collateral?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-is-collateral) * [The Dual Role of Collateral in Secured Finance](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#the-dual-role-of-collateral-in-secured-finance) * [Collateral Currencies](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies) * [Collateral Currencies on Ethereum and Arbitrum](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies-on-ethereum-and-arbitrum) * [Collateral Currencies on Filecoin Virtual Machine (FVM)](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#collateral-currencies-on-filecoin-virtual-machine-fvm) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#examples) * [Example 1: Borrowing with ETH Collateral](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#example-1-borrowing-with-eth-collateral) * [Example 2: Using iFIL as Collateral on FVM](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#example-2-using-ifil-as-collateral-on-fvm) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#common-questions) * [What happens if my collateral value drops?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-happens-if-my-collateral-value-drops) * [Can I use multiple types of collateral for a single loan?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#can-i-use-multiple-types-of-collateral-for-a-single-loan) * [How often is my collateral value updated?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#how-often-is-my-collateral-value-updated) * [What are the minimum collateral requirements?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#what-are-the-minimum-collateral-requirements) * [Future Plans: Expanding Collateral Options](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#future-plans-expanding-collateral-options) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Protocol Fees | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#overview) Overview ------------------------------------------------------------------------------------------------------------ The USDFC Stablecoin Protocol implements a fee structure that ensures its long-term sustainability while maintaining user-friendly economics. All fees collected are directed to the Fee Reserve, which will eventually be distributed to Secured Finance Token Stakers following the Token Generation Event (TGE). [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------- The Fee Reserve is a dedicated pool where protocol fees are collected and stored. These accumulated fees are crucial for the protocol's sustainability and will eventually be distributed to the Secured Finance Token Stakers following the Token Generation Event (TGE). The Fee Reserve is funded through various fees generated by user interactions with the protocol: 1. **Minting Fee**: Charged when users mint USDFC by depositing collateral 2. **Redemption Fee**: Applied when users redeem USDFC for Filecoin (FIL) at face value 3. **Interest Fee**: Currently set to 0%, but may be adjusted in the future [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------ Fee Type Calculation Current Range Destination Minting Fee (Base Rate + 0.5%) × Minted USDFC 0.5% to 5% Fee Reserve Redemption Fee (Base Rate + 0.5%) × Redeemed USDFC 0.5% to 5% Fee Reserve Interest Fee 0% 0% N/A [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#fee-structure-details) Fee Structure Details -------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-1.-minting-fee) 1\. Minting Fee * The **Minting Fee** is charged whenever users mint **USDFC** by depositing collateral * The fee is calculated as **(**[**Base Rate**](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) **\+ 0.5%)** applied to the minted amount of USDFC * This fee is directed entirely to the Fee Reserve, ensuring that every minting transaction supports the protocol's sustainability * During Recovery Mode, the Minting Fee is set to 0% to encourage users to add collateral ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-2.-redemption-fee) 2\. Redemption Fee * The **Redemption Fee** is applied when users redeem USDFC for **Filecoin (FIL)** at face value * This fee incentivizes stability within the protocol and provides a mechanism to bring USDFC back to its 1:1 USD peg when necessary * The Redemption Fee is calculated as **(Base Rate + 0.5%)** of the redeemed USDFC amount * Like the Minting Fee, all proceeds from the Redemption Fee are added to the Fee Reserve ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-3.-interest-fee) 3\. Interest Fee * **Interest Fee** is currently set to **0%** * This means that borrowers do not incur any recurring interest costs on their debt, encouraging wider adoption and utility of USDFC * The zero-interest model is strategic, aiming to boost the initial circulation of USDFC within the Filecoin ecosystem * This parameter may be reconsidered in the future based on market conditions [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#post-tge-distribution) Post-TGE Distribution -------------------------------------------------------------------------------------------------------------------------------------- After the **Token Generation Event (TGE)**, the Fee Reserve will be redistributed back to the Secured Finance Token Stakers as a reward. This model aligns incentives, rewarding early supporters and active participants while maintaining the protocol's stability. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------- **Why is there no ongoing interest fee?** The current 0% interest model is designed to encourage adoption and usage of USDFC in the early stages of the protocol. This may change in the future as the protocol matures. **How does the Base Rate affect fees?** The Base Rate is a dynamic component that increases with redemption activity and decays over time. It ensures that fees adjust based on market conditions and protocol usage. **When will the Fee Reserve be distributed?** The Fee Reserve will be distributed to Secured Finance Token Stakers after the Token Generation Event (TGE). The exact timing and distribution mechanism will be announced closer to the TGE. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------ * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) [PreviousRedemptionchevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) [NextAdvanced Topicschevron-right](https://docs.secured.finance/usdfc-stablecoin/advanced-topics) Last updated 7 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#how-it-works) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#key-parameters) * [Fee Structure Details](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#fee-structure-details) * [1\. Minting Fee](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-1.-minting-fee) * [2\. Redemption Fee](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-2.-redemption-fee) * [3\. Interest Fee](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#id-3.-interest-fee) * [Post-TGE Distribution](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#post-tge-distribution) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Privacy Policy | Secured Finance Docs file-pdf 86KB [Secured Finance - Privacy Policy.pdf](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2F9M87zgAjXJbVHthuG7Hs%2FSecured%20Finance%20-%20Privacy%20Policy.pdf?alt=media&token=bad02e8c-efc7-4785-a261-a2f772ee873d) PDF downloadDownload[arrow-up-right-from-squareOpen](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2F9M87zgAjXJbVHthuG7Hs%2FSecured%20Finance%20-%20Privacy%20Policy.pdf?alt=media&token=bad02e8c-efc7-4785-a261-a2f772ee873d) [PreviousTerms of Usechevron-left](https://docs.secured.finance/resources/legal/terms-of-use) Last updated 4 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Order Type | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#overview) Overview ----------------------------------------------------------------------------------------------------------------------------- Secured Finance's Loan Market Platform supports two primary types of orders: limit orders and market orders. These order types provide users with flexibility and control over their trading strategies in the Fixed-Rate Lending Protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#limit-orders) Limit Orders A limit order is an order to buy or sell a zero-coupon bond at a specific price or better. This type of order allows users to specify the maximum price at which they are willing to buy or the minimum price at which they are willing to sell. If the market doesn't reach these prices, the limit order will not be executed. If the market already exists at executable prices (**overlapping limit orders**), such orders will be executed immediately, and non-overlapping orders will remain as open. This ensures that users can control the price points at which they enter or exit their positions. By placing limit orders, users effectively act as market makers, contributing to the liquidity and depth of the market. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#market-orders) Market Orders A market order is an order to buy or sell a zero-coupon bond immediately at the best available current price. Market orders are typically executed quickly unless the market is exceptionally volatile. While market orders do not guarantee a specific price, they ensure the order will be executed. By placing market orders, users effectively act as market takers, accepting the prices currently offered in the market without contributing to the liquidity. By offering these two types of orders, Secured Finance's Loan Market Platform caters to both users who prioritize price control (limit orders) and those who prioritize quick execution (market orders). [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#key-parameters) Key Parameters ----------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Order Types Types of orders supported by the platform Limit, Market Limit Order Execution When limit orders are executed When market price reaches or exceeds the limit price Market Order Execution When market orders are executed Immediately at best available price Order Sides Sides of the orderbook Borrow (Sell), Lend (Buy) Maker/Taker Role Role of users based on order type Limit orders = Makers, Market orders = Takers [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#examples) Examples ----------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#example-1-using-a-limit-order-to-lend) Example 1: Using a Limit Order to Lend A user wants to lend 2,000 USDC for 6 months at a minimum 4% APR: 1. They navigate to the lending interface and select the 6-month maturity market 2. For a 4% APR on a 6-month term, they calculate the price as approximately 98.04 (calculated as: 100 / (1 + 0.04 × 0.5) = 98.04) 3. They place a limit order to buy Zero-Coupon bonds at 98.04 4. The order remains in the orderbook until: * A borrower places a market order that matches with this order * A borrower places a limit order at 98.04 or lower that matches with this order * The user cancels the order 5. If the order is filled, the user pays 1,960.8 USDC (2,000 × 98.04 / 100) 6. At maturity, they receive 2,000 USDC, earning 39.2 USDC in interest ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#example-2-using-a-market-order-to-borrow) Example 2: Using a Market Order to Borrow A borrower needs 5,000 USDC immediately and doesn't want to wait for a limit order to be filled: 1. After depositing sufficient collateral, they navigate to the borrowing interface 2. They select the 3-month maturity market 3. They choose to place a market order to sell Zero-Coupon bonds 4. The current best lending offer in the orderbook is at 99.00 5. Their market order is immediately matched with this offer 6. They receive 4,950 USDC upfront (5,000 × 99.00 / 100) 7. At maturity, they will need to repay 5,000 USDC 8. The effective interest paid is 50 USDC on a loan of 4,950 USDC for 3 months [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#when-should-i-use-a-limit-order-versus-a-market-order) When should I use a limit order versus a market order? Use a limit order when: * You want to specify the exact price/rate for your transaction * You're willing to wait for your order to be filled * You want to contribute to market liquidity and potentially earn better rates * You want protection against price slippage in volatile markets Use a market order when: * You need immediate execution * You prioritize speed over getting the best possible rate * You're satisfied with the current market rates * You need funds quickly and can't wait for a limit order to fill ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#what-happens-if-theres-not-enough-liquidity-to-fill-my-market-order) What happens if there's not enough liquidity to fill my market order? If there's insufficient liquidity to fill your entire market order, the order will be partially filled up to the available liquidity at the best available prices. The unfilled portion will remain as an open market order until more liquidity becomes available or you cancel it. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#can-i-modify-my-limit-order-after-placing-it) Can I modify my limit order after placing it? No, you cannot modify an existing limit order. If you want to change the price or amount, you'll need to cancel your existing order and place a new one with the updated parameters. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#do-limit-orders-expire) Do limit orders expire? By default, limit orders do not expire and will remain in the orderbook until they are either filled or canceled. However, when placing a limit order, you have the option to set an expiration time, after which the order will be automatically canceled if not filled. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#what-fees-are-associated-with-limit-versus-market-orders) What fees are associated with limit versus market orders? Both limit and market orders incur protocol fees, but the fee structure may differ: * Limit orders (makers): Generally have lower fees as they provide liquidity to the market * Market orders (takers): Generally have higher fees as they consume liquidity from the market The exact fee structure is subject to change based on protocol governance decisions. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------------------- * [Orderbook Mechanicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/order-book-system.md) * [Order Life Cycle](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition) * [Zero-Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) * [Fixed Maturity](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity) [PreviousOrder Book Systemchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) [NextOrder Life Cyclechevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#how-it-works) * [Limit Orders](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#limit-orders) * [Market Orders](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#market-orders) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#examples) * [Example 1: Using a Limit Order to Lend](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#example-1-using-a-limit-order-to-lend) * [Example 2: Using a Market Order to Borrow](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#example-2-using-a-market-order-to-borrow) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#common-questions) * [When should I use a limit order versus a market order?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#when-should-i-use-a-limit-order-versus-a-market-order) * [What happens if there's not enough liquidity to fill my market order?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#what-happens-if-theres-not-enough-liquidity-to-fill-my-market-order) * [Can I modify my limit order after placing it?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#can-i-modify-my-limit-order-after-placing-it) * [Do limit orders expire?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#do-limit-orders-expire) * [What fees are associated with limit versus market orders?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#what-fees-are-associated-with-limit-versus-market-orders) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Contracts and Security | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/deployed-contracts#contract-addresses) Contract Addresses ------------------------------------------------------------------------------------------------------------------------ The latest version of [`@secured-finance/contracts`arrow-up-right](https://github.com/Secured-Finance/contracts) is deployed at the addresses listed below. Contract Mainnet, Arbitrum One, Filecoin Address Sepolia Arbitrum Sepolia [BeaconProxyControllerarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/BeaconProxyController.sol) 0x581e463841bD2B30285929448e1A93D74708719F 0xaa38CeF2FBa6F54Ce1cCe9De7035abCEfE4657a0 0x7c221f83b09cA6cA6f89405F4010B307c0B55595 [CurrencyControllerarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/CurrencyController.sol) 0x7dca6b6BF30cd28ADe83e86e21e82e3F852bF2DC 0x5b82FA84e455F7Ba27Def020F18Dc379AB701f97 0xe36a7122940d0f530c8857dF37dBaAb2d7D17fC3 [GenesisValueVaultarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/GenesisValueVault.sol) 0xa2700D5feDB13b86Bba3228008C7a0d464a07f2b 0x89fF7044d93bA01b6cEE2eBA09D0f793A8533704 0x087b6E8728C39D298F39d22E1Ceb95E8d0e72B3F [LendingMarketControllerarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/LendingMarketController.sol) 0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2 0x66aCc8c1314797fDba0b63676C8Aa367D3821C8C 0xc81ec45EDb30b755f66D050AdEB77cC85522e794 [ProxyControllerarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/ProxyController.sol) 0x1634D2104B48299DA7D927C4582EA7Ba67020EBB 0xE453FfcA365a46eaf5b3D5752b5Dc87Fc6986cd8 0xE9bDa3831905ABB5f2Ba50D6A23Bf22e5f539E00 [ReserveFundarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/ReserveFund.sol) 0xD2683E22331B9a6e9F38350d829dBEB64ad2778e 0x4f856edE4846f1dC6A2cD4a452b3E704C61f1134 0x20b24b5A5e45bB27e36B95E1578b13975db19b52 [TokenVaultarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/protocol/TokenVault.sol) 0xB74749b2213916b1dA3b869E41c7c57f1db69393 0x4E01afFD15C58221faC3F77649a483531fF13646 0xB61ec7d5bE3bEdc038bd5f4E32e870B83F725F37 [hashtag](https://docs.secured.finance/fixed-rate-lending/deployed-contracts#audit-reports) Audit Reports -------------------------------------------------------------------------------------------------------------- Auditor Date Report Quantstamp 2023/10/16 - 2023/11/30 [2023-11-Quantstamp.pdfarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/audits/2023-11-Quantstamp.pdf) Quantstamp 2024/3/4 - 2024/3/26 [2024-03-Quantstamp.pdfarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/audits/2024-03-Quantstamp.pdf) [PreviousCompound Factorchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor) [NextFAQschevron-right](https://docs.secured.finance/fixed-rate-lending/faqs) Last updated 1 month ago * [Contract Addresses](https://docs.secured.finance/fixed-rate-lending/deployed-contracts#contract-addresses) * [Audit Reports](https://docs.secured.finance/fixed-rate-lending/deployed-contracts#audit-reports) sun-brightdesktopmoon sun-brightdesktopmoon --- # Markets | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#prerequisites) Prerequisites ---------------------------------------------------------------------------------------------------------------------------------- * A basic understanding of fixed-rate lending concepts * Access to the Secured Finance platform * Familiarity with yield curves and interest rates (helpful but not required) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#overview) Overview ------------------------------------------------------------------------------------------------------------------------ The [**Markets Tab**arrow-up-right](https://app.secured.finance/dashboard/) is your central hub for interacting with the Secured Finance trading platform. It provides a comprehensive overview of key metrics and functionalities, enabling you to make informed decisions and manage your assets effectively. The dashboard displays real-time data across different blockchain networks, offering insights into the status of each chain and the yield curves for various digital assets. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-1-accessing-the-markets-dashboard) Step 1: Accessing the Markets Dashboard ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Click on the "Markets" tab in the main navigation 3. The dashboard will load with the latest market data 4. No wallet connection is required to view market data [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-2-understanding-key-metrics) Step 2: Understanding Key Metrics ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Markets Dashboard displays several important metrics: 1. **Digital Assets** * View the total number of different digital assets currently being traded * See which assets are available on each supported blockchain 2. **Total Value Locked (TVL)** * Monitor the total value of all assets locked in the protocol * Track TVL changes over time to gauge platform growth 3. **Total Trading Volume** * See the cumulative trading volume across all markets * Filter by time period (24h, 7d, 30d) to analyze trends 4. **Total Users** * View the number of active users engaging with the platform * Understand the platform's adoption rate ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fmarkets-dashboard.png&width=768&dpr=3&quality=100&sign=d328a6d6&sv=2) Markets Dashboard [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-3-exploring-yield-curves) Step 3: Exploring Yield Curves ------------------------------------------------------------------------------------------------------------------------------------------------------------------- The Yield Curve section is a powerful tool for market analysis: 1. Select the asset you want to analyze from the dropdown menu 2. The chart will display interest rates across different maturities 3. Compare yield curves for multiple assets by selecting additional options 4. Use the time period selector to view historical yield curve data [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-4-analyzing-market-opportunities) Step 4: Analyzing Market Opportunities ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Look for steep yield curves, which may indicate good lending opportunities 2. Identify flat or inverted yield curves, which might signal market uncertainty 3. Compare rates across different assets to find the best opportunities 4. Use the data to inform your lending and borrowing decisions [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-5-taking-action-based-on-market-data) Step 5: Taking Action Based on Market Data ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Click on any asset to view detailed market information 2. Use the "Trade" button to navigate directly to the trading interface for that asset 3. Set up alerts (if available) for significant yield curve changes 4. Regularly check the Markets tab to stay informed about market conditions [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#next-steps) Next Steps ---------------------------------------------------------------------------------------------------------------------------- After exploring the Markets dashboard, you might want to: * [Start lending assetsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/lending-assets.md) based on the yield opportunities you've identified * [Borrow assetsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/borrowing-assets.md) at favorable rates * [Learn about auto-rollingarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/market-dynamics/auto-rolling/README.md) to optimize your lending strategy * [Explore the trading interfacearrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/trading/README.md) to place orders [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#troubleshooting) Troubleshooting -------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#data-not-loading) Data Not Loading If the dashboard data isn't loading: * Check your internet connection * Try refreshing the page * Clear your browser cache * Try accessing the platform from a different browser ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#yield-curve-not-displaying) Yield Curve Not Displaying If the yield curve chart isn't displaying: * Ensure JavaScript is enabled in your browser * Check if you have any browser extensions that might be blocking the chart * Try selecting a different asset or time period * Refresh the page and try again ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#understanding-market-terminology) Understanding Market Terminology If you're having trouble understanding market terms: * Hover over information icons (ℹ️) for tooltip explanations * Refer to our [FAQsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/faqs.md) for common questions * Check our [educational resourcesarrow-up-right](https://blog.secured.finance/) for detailed explanations [PreviousSupported Currencieschevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies) [NextPortfoliochevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#overview) * [Step 1: Accessing the Markets Dashboard](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-1-accessing-the-markets-dashboard) * [Step 2: Understanding Key Metrics](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-2-understanding-key-metrics) * [Step 3: Exploring Yield Curves](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-3-exploring-yield-curves) * [Step 4: Analyzing Market Opportunities](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-4-analyzing-market-opportunities) * [Step 5: Taking Action Based on Market Data](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#step-5-taking-action-based-on-market-data) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#troubleshooting) * [Data Not Loading](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#data-not-loading) * [Yield Curve Not Displaying](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#yield-curve-not-displaying) * [Understanding Market Terminology](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets#understanding-market-terminology) sun-brightdesktopmoon sun-brightdesktopmoon --- # Mint & Borrow | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#overview) Overview -------------------------------------------------------------------------------------------------------------- Mint & Borrow is the core function of the USDFC Stablecoin Protocol that allows users to deposit Filecoin (FIL) as collateral and mint USDFC stablecoins. This mechanism provides liquidity without selling your FIL, maintaining exposure to potential FIL price appreciation while accessing dollar-denominated value. circle-check **Why Mint & Borrow USDFC?** * Get instant and ample $ liquidity without selling FIL * No need for counterparties or external exchanges * Keep FIL securely in a trove while enhancing capital efficiency [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------- To use USDFC, you first open a trove to manage your FIL collateral and USDFC debt, maintaining a **minimum collateralization ratio (MCR) of 110%** to avoid [liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) . This ensures the safety and stability of the system. The process involves the following steps: 1. **Deposit FIL as Collateral** * Prepare FIL in your wallet to cover the USDFC debt (borrowed amount + mint fees) * Open a trove and input a FIL amount to deposit as collateral * Input USDFC amount you want to borrow (after minted inside your trove) * You must maintain at least a 110% collateral ratio 2. **Mint USDFC** * Once the FIL amount and USDFC amount is set, check that the minting costs are added as total debt, then you can click confirm * Your connected wallet (ex. MetaMask) asks you to send a transaction * Once the USDFC amount is minted, you can see your borrowed amount in the app * Import the USDFC contract [address](https://docs.secured.finance/usdfc-stablecoin/deployed-contracts#contract-addresses) to your wallet so you can use it anywhere 3. **Maintain Collateral Ratio** * The minimum collateralization ratio (MCR) is set to 110% * For instance, if you deposit 1,000 USD worth of FIL, you can mint up to 909 USDFC, keeping a 110% collateral ratio * It's crucial to monitor your collateral ratio to avoid liquidation. If the collateral value drops, consider adding more FIL or repaying some USDFC to maintain a healthy buffer 4. **Adjust or Close** * You can make adjustments on your trove to manage FIL collateral and USDFC debt * Adjustment is used to add/reduce collateral, or borrow/repay USDFC * If you no longer need the trove, you can close it by repaying debts (borrowed + fees) in USDFC * You don't need to repay the liquidation reserve 5. **3rd Party Trove Adjustment (Liquidation & Redemption)** * You should be aware that your trove can be adjusted by special conditions below * To protect the system, anyone can liquidate your collateral using USDFC stability pool for the trove below 110% collateral ratio * To ensure 1:1 peg, anyone can bring USDFC and redeem FIL collateral for the trove with the lowest collateral ratio [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#key-parameters) Key Parameters -------------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value Minimum Collateral Ratio Minimum required ratio of collateral to debt 110% Minimum Borrow Amount Minimum USDFC that can be borrowed 180 USDFC Liquidation Reserve USDFC reserved for potential liquidation gas costs 20 USDFC Minting Fee One-time fee charged when minting USDFC 0.5% to 5% Interest Rate Ongoing interest charged on borrowed USDFC 0% (currently) circle-exclamation The system requires a minimum borrowed amount of 180 USDFC and reserves an additional 20 USDFC as long as trove exists. It creates limitations on all trove activities. circle-exclamation When you want to close your trove completely, you should repay borrowed amount + minting fees in USDFC. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#minting-costs) Minting Costs ------------------------------------------------------------------------------------------------------------------------ When you mint USDFC, the following costs apply: Minting Fee\=Liquidation Reserve+One-Time Minting Fee\\text{Minting Fee} = \\text{Liquidation Reserve} + \\text{One-Time Minting Fee}Minting Fee\=Liquidation Reserve+One-Time Minting Fee ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#id-1.-liquidation-reserve) 1\. Liquidation Reserve * A **20 USDFC reserve** is added to your debt when minting USDFC. This reserve is intended to cover gas fees in case of liquidation * If no liquidation occurs and you fully repay your debt, the **20 USDFC reserve** will be refunded when you close your position * When you close your trove completely, the reserve will be returned and burnt ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#id-2.-one-time-minting-fees) 2\. One-Time Minting Fees One-Time Minting Fee\=(Base Rate+0.5%)×Minted USDFC\\text{One-Time Minting Fee} = (\\text{Base Rate} + 0.5\\%) \\times \\text{Minted USDFC}One-Time Minting Fee\=(Base Rate+0.5%)×Minted USDFC * The **Minting (Borrowing) Fee** consists of two parts: * **Fixed Fee (0.5%)**: Fixed fee charged at the time of minting * **Base Rate (0% to 4.5%)**: The Base Rate varies depending on the system's conditions * Together, the Minting Fee ranges from **0.5% to 5%**, making it a one-time cost and added to your debt * During **Recovery Mode**, the Minting Fee is set to **0%**, encouraging users to add collateral and stabilize the system ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#total-debt-calculation-example) Total Debt Calculation Example Total Debt = Borrowed amount + Liquidation Reserve + One-Time Minting Fees\\text{Total Debt = Borrowed amount + Liquidation Reserve + One-Time Minting Fees}Total Debt = Borrowed amount + Liquidation Reserve + One-Time Minting Fees * If you mint **4,000 USDFC** with a **Base Rate** of **0.5%**: * **Liquidation Reserve**: 20 USDFC * **One-Time Minting Fee**: Fixed Fee + Base Rate = 40 USDFC * **Fixed Fee**: 0.5% of 4,000 USDFC = 20 USDFC * **Base Rate**: 0.5% of 4,000 USDFC = 20 USDFC (usually 0%) * **Total Debt**: 4,060 USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#base-rate-explanation) Base Rate Explanation ---------------------------------------------------------------------------------------------------------------------------------------- The **Base Rate** is a dynamic component of the borrowing fee that adjusts according to market conditions and redemption activity: ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#dynamic-range) Dynamic Range * The Base Rate ranges from **0% to 4.5%**, adjusting based on the amount of USDFC redeemed relative to the total USDFC supply * The full Minting and Redemption Fee (fixed fee + base rate) therefore ranges between **0.5% and 5%** ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#calculation) Calculation The Base Rate is initially set at **0%** and adjusts based on the redemption activity. The formula for updating the Base Rate is: Base Ratet\=Base Ratet−1+0.5×(mn)\\text{Base Rate}\_t = \\text{Base Rate}\_{t-1} + 0.5 \\times \\left( \\frac{m}{n} \\right)Base Ratet​\=Base Ratet−1​+0.5×(nm​) Where: m = amount of USDFC redeemed n = current total supply of USDFC ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#decay) Decay The Base Rate decays over time when there is low redemption activity, following a **12-hour half-life**. This ensures that the Base Rate gradually returns to its baseline if no significant redemption activity occurs. The decay formula is: Base Ratet\=Base Ratet−1×δΔt\\text{Base Rate}\_t = \\text{Base Rate}\_{t-1} \\times \\delta^{\\Delta t}Base Ratet​\=Base Ratet−1​×δΔt Where: δ = hourly decay factor (e.g., 0.944) Δt = time elapsed (in hours) since the last redemption or loan issuance circle-info The decay factor `δ` (0.944) is selected to ensure a 12-hour half-life for the base rate. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#purpose) Purpose The Base Rate is designed to maintain stability in the USDFC supply by adapting to market conditions. It helps regulate borrowing behavior, balancing liquidity and redemption activity while keeping the system solvent. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#interest-rate) Interest Rate ------------------------------------------------------------------------------------------------------------------------ At the current stage, Secured Finance does not charge any ongoing **interest rate fees** on USDFC. This strategic decision allows for a more accessible and user-friendly experience: circle-info **Why no interest fees?** * Our primary goal is to foster the **widespread adoption of USDFC** within the Filecoin ecosystem and make it more attractive for DeFi users * By keeping the **interest rate at 0%**, we are encouraging users to mint and use USDFC without the added burden of accumulating interest over time We may introduce an **interest rate fee** on borrowed USDFC in the future to further support the long-term sustainability of the protocol [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------ **What is the minimum amount of USDFC I can borrow?** The minimum borrow amount is 180 USDFC, plus the 20 USDFC liquidation reserve. **Do I need to repay the liquidation reserve when closing my trove?** No, the liquidation reserve is automatically refunded when you close your trove. **What happens if the value of my FIL collateral drops?** If your collateral ratio falls below 110%, your trove becomes eligible for liquidation. It's recommended to maintain a higher ratio (150%+) as a safety buffer. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#related-topics) Related Topics -------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousThe Trove Systemchevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) [NextLiquidationchevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#how-it-works) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#key-parameters) * [Minting Costs](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#minting-costs) * [1\. Liquidation Reserve](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#id-1.-liquidation-reserve) * [2\. One-Time Minting Fees](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#id-2.-one-time-minting-fees) * [Total Debt Calculation Example](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#total-debt-calculation-example) * [Base Rate Explanation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#base-rate-explanation) * [Dynamic Range](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#dynamic-range) * [Calculation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#calculation) * [Decay](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#decay) * [Purpose](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#purpose) * [Interest Rate](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#interest-rate) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Tokenomics | Secured Finance Docs [🔵Secured Finance Coin (SFC)chevron-right](https://docs.secured.finance/community/tokenomics/secured-finance-coin-sfc) [🔶Secured Finance Points (SFP) v2chevron-right](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2) [PreviousGovernancechevron-left](https://docs.secured.finance/community/governance) [NextSecured Finance Coin (SFC)chevron-right](https://docs.secured.finance/community/tokenomics/secured-finance-coin-sfc) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Media Kit | Secured Finance Docs [🖼️Secured Finance Logochevron-right](https://docs.secured.finance/resources/media-kit/brand-assets) [💲USDFC Logochevron-right](https://docs.secured.finance/resources/media-kit/usdfc-logo) [PreviousSupport & Contactschevron-left](https://docs.secured.finance/community/support-and-contacts) [NextSecured Finance Logochevron-right](https://docs.secured.finance/resources/media-kit/brand-assets) sun-brightdesktopmoon sun-brightdesktopmoon --- # DAOs | Secured Finance Docs [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#overview) Overview -------------------------------------------------------------------------------------------------- A Decentralized Autonomous Organization (DAO) is a blockchain-based governance structure that enables collective decision-making without traditional hierarchical management. DAOs represent a fundamental shift in how organizations can be structured and operated in the digital age, allowing for transparent, community-driven governance of shared resources and protocols. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------- DAOs operate through smart contracts that establish the rules for governance and automatically execute decisions made by the community. The typical workflow includes: 1. **Formation**: A DAO begins with developers creating smart contracts that define the organization's rules 2. **Funding**: Members acquire governance tokens, often through direct purchase or by contributing to the project 3. **Proposal Submission**: Any token holder can submit proposals for changes or actions 4. **Voting**: Members vote on proposals, with voting power typically proportional to token holdings 5. **Execution**: Approved proposals are automatically executed through the smart contract This process creates a self-governing system where decisions are made collectively rather than by a central authority. All activities are recorded on the blockchain, ensuring transparency and immutability. ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#organizational-structure-dao-foundation-and-devco) Organizational Structure: DAO, Foundation, and DevCo Most mature DeFi protocols operate with a three-part organizational structure: #### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#dao) DAO * **Purpose**: Community governance and protocol direction * **Structure**: Decentralized collection of token holders * **Legal Status**: Often unincorporated association or DAO LLC in some jurisdictions * **Decision Making**: Token-weighted voting on major protocol changes #### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#foundation) Foundation * **Purpose**: Legal entity that supports the DAO * **Structure**: Non-profit organization with board of directors or supervisors * **Legal Status**: Typically incorporated in crypto-friendly jurisdictions * **Functions**: Treasury management, grants distribution, legal representation, regulatory compliance #### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#devco-development-company) DevCo (Development Company) * **Purpose**: Technical development of the protocol * **Structure**: For-profit company with traditional corporate structure * **Legal Status**: Incorporated business entity * **Functions**: Code development, protocol maintenance, implementation of DAO-approved updates This separation of concerns helps manage legal and regulatory risks while ensuring the protocol can continue to develop in a decentralized manner. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#key-differences-dao-vs-foundation-vs-devco) Key Differences: DAO vs Foundation vs DevCo ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- Aspect DAO Foundation DevCo Governance Community-driven through token voting Board-directed with community input Corporate management Decision Speed Slower (days to weeks) Medium (days) Faster (hours to days) Transparency Fully transparent on-chain Partially transparent Often private Risk Exposure Distributed across token holders Limited liability Corporate liability Funding Source Protocol fees, token reserves DAO treasury grants Service contracts, equity Primary Focus Strategic direction, treasury allocation Legal compliance, ecosystem growth Technical implementation [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#examples) Examples -------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#defi-protocol-daos) DeFi Protocol DAOs * MakerDAO: Governs the DAI stablecoin system * Uniswap: Community governance of the decentralized exchange protocol * Aave: Manages parameters and upgrades for the lending protocol ### [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#investment-daos) Investment DAOs * BitDAO: One of the largest DAOs focused on supporting DeFi development * FlamingoDAO: Collective focused on NFT investments * MetaCartel: Funds early-stage decentralized applications [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------ **How do I join a DAO?** Typically, you join a DAO by acquiring its governance tokens, either through direct purchase on exchanges or by contributing to the project in some way. **What rights do DAO members have?** Members can typically propose changes, vote on proposals, and receive a share of any profits generated by the DAO, depending on its structure. **Are DAOs legally recognized?** Legal recognition varies by jurisdiction. Some regions like Wyoming in the US have created legal frameworks for DAOs, while in most places they operate in a regulatory gray area. **What happens if a DAO is hacked?** Unlike traditional organizations, DAOs may have limited recourse if exploited. The immutable nature of blockchain means that hacks can be difficult to reverse without community consensus for extraordinary measures. **Can DAOs replace traditional companies?** While DAOs excel at certain functions like treasury management and open-source development, they currently face challenges in areas requiring rapid decision-making or confidentiality. [hashtag](https://docs.secured.finance/introduction/defi-starter-guide/dao#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------- * [DeFi vs CeFi](https://docs.secured.finance/introduction/defi-starter-guide/defi-vs-cefi) * [Interacting with DApps](https://docs.secured.finance/introduction/defi-starter-guide/dapps) * [Wallet Setup & Management](https://docs.secured.finance/introduction/defi-starter-guide/wallet-setup) [PreviousGovernance Tokenschevron-left](https://docs.secured.finance/introduction/defi-starter-guide/governance-tokens) [NextOverviewchevron-right](https://docs.secured.finance/usdfc-stablecoin/overview) Last updated 10 months ago * [Overview](https://docs.secured.finance/introduction/defi-starter-guide/dao#overview) * [How It Works](https://docs.secured.finance/introduction/defi-starter-guide/dao#how-it-works) * [Organizational Structure: DAO, Foundation, and DevCo](https://docs.secured.finance/introduction/defi-starter-guide/dao#organizational-structure-dao-foundation-and-devco) * [Key Differences: DAO vs Foundation vs DevCo](https://docs.secured.finance/introduction/defi-starter-guide/dao#key-differences-dao-vs-foundation-vs-devco) * [Examples](https://docs.secured.finance/introduction/defi-starter-guide/dao#examples) * [DeFi Protocol DAOs](https://docs.secured.finance/introduction/defi-starter-guide/dao#defi-protocol-daos) * [Investment DAOs](https://docs.secured.finance/introduction/defi-starter-guide/dao#investment-daos) * [Common Questions](https://docs.secured.finance/introduction/defi-starter-guide/dao#common-questions) * [Related Resources](https://docs.secured.finance/introduction/defi-starter-guide/dao#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Trading | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#prerequisites) Prerequisites ---------------------------------------------------------------------------------------------------------------------------------- * A connected wallet with sufficient assets * Basic understanding of fixed-rate lending concepts * Assets deposited as collateral (for borrowing) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#overview) Overview ------------------------------------------------------------------------------------------------------------------------ Welcome to the [**Trading tab**arrow-up-right](https://app.secured.finance/) on Secured Finance, your gateway to fixed-income trading. This interface enables you to engage in peer-to-contract lending and trading of zero-coupon (ZC) bonds with simplicity, efficiency, and transparency. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-1-accessing-the-trading-interface) Step 1: Accessing the Trading Interface ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Connect your wallet if not already connected 3. Click on the "Trading" tab in the main navigation 4. Select the asset pair and maturity date you want to trade ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Ftrading-interface.png&width=768&dpr=3&quality=100&sign=c85a2ff5&sv=2) Trading Interface [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-2-understanding-zero-coupon-bond-trading) Step 2: Understanding Zero-Coupon Bond Trading --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before placing orders, it's important to understand the basics: 1. **Buying ZC Bonds (Lending)** * When you buy a bond, you're effectively lending assets * Your initial investment accrues interest over time * At maturity, you receive the full face value of the bond 2. **Selling ZC Bonds (Borrowing)** * When you sell a bond, you're borrowing assets * You receive funds upfront and repay the face value at maturity * Requires sufficient collateral to secure the loan 3. **Orderbook System** * All transactions occur on our Orderbook * Orders are matched directly with counterparties via smart contracts * Provides transparent price discovery and efficient execution [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-3-placing-a-buy-order-lending) Step 3: Placing a Buy Order (Lending) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Select "Buy" in the order form 2. Choose between "Market Order" or "Limit Order" * Market Order: Executes immediately at the best available price * Limit Order: Executes only at your specified price or better 3. Enter the amount you want to lend 4. For Limit Orders, specify your desired price (interest rate) 5. Review the order details, including: * Total cost * Expected yield * Maturity date 6. Click "Place Order" to submit 7. Confirm the transaction in your wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-4-placing-a-sell-order-borrowing) Step 4: Placing a Sell Order (Borrowing) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Select "Sell" in the order form 2. Choose between "Market Order" or "Limit Order" 3. Enter the amount you want to borrow 4. For Limit Orders, specify your desired price (interest rate) 5. Ensure you have sufficient collateral 6. Review the order details, including: * Amount received * Repayment amount at maturity * Collateral requirements 7. Click "Place Order" to submit 8. Confirm the transaction in your wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-5-managing-open-orders) Step 5: Managing Open Orders --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the "Open Orders" section below the orderbook 2. View all your pending orders 3. To cancel an order: * Find the order you want to cancel * Click the "Cancel" button * Confirm the cancellation in your wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-6-unwinding-a-position) Step 6: Unwinding a Position --------------------------------------------------------------------------------------------------------------------------------------------------------------- If you need to exit a position before maturity: 1. Go to the "Portfolio" tab 2. Find the position you want to unwind 3. Click the "Unwind" button 4. Choose between Market Unwind or Limit Unwind 5. Enter the amount you want to unwind 6. Review the details and confirm the transaction [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-7-understanding-auto-rolling) Step 7: Understanding Auto-Rolling --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- When your loan matures: 1. Funds are automatically reinvested into the next 3-month maturity cycle via our Auto-Roll feature 2. This minimizes reinvestment risks and promotes steady growth 3. You can customize Auto-Roll settings in your Portfolio 4. For more details, see our [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) section [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#next-steps) Next Steps ---------------------------------------------------------------------------------------------------------------------------- After learning the basics of trading, you might want to: * [Explore advanced trading strategies](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Learn about collateral managementarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/platform-guide/portfolio/collateral-management.md) * [Understand security measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) that protect your investments [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#troubleshooting) Troubleshooting -------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#order-not-executing) Order Not Executing If your limit order isn't being executed: * Your specified price may not be competitive with current market rates * There might be insufficient liquidity at your price level * Try adjusting your price or using a market order for immediate execution ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#insufficient-collateral-error) Insufficient Collateral Error If you receive an insufficient collateral error when borrowing: * Check your collateral balance in the Portfolio tab * Deposit additional collateral if needed * Reduce the amount you're trying to borrow * Consider using assets with higher collateral factors ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#transaction-failing) Transaction Failing If your transaction is failing: * Ensure you have enough native tokens (ETH, MATIC, etc.) for gas fees * Check that you've approved the necessary token permissions * Try refreshing the page and attempting the transaction again * If issues persist, check the blockchain explorer for specific error details [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#security-measures) Security Measures ------------------------------------------------------------------------------------------------------------------------------------------ Secured Finance prioritizes loan security with: 1. **Robust Collateral Management** * Borrowers must pledge collateral * Collateral is managed by smart contracts to reduce counterparty risk * Automatic liquidation processes protect lenders 2. **Smart Contract Technology** * Enforces loan terms automatically * Enhances security and reliability * Undergoes regular audits and security reviews For more details, see our [Collateralarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/platform-guide/portfolio/collateral-management.md) and [Security & Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) sections. [PreviousPlatform Guidechevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide) [NextSupported Currencieschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#overview) * [Step 1: Accessing the Trading Interface](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-1-accessing-the-trading-interface) * [Step 2: Understanding Zero-Coupon Bond Trading](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-2-understanding-zero-coupon-bond-trading) * [Step 3: Placing a Buy Order (Lending)](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-3-placing-a-buy-order-lending) * [Step 4: Placing a Sell Order (Borrowing)](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-4-placing-a-sell-order-borrowing) * [Step 5: Managing Open Orders](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-5-managing-open-orders) * [Step 6: Unwinding a Position](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-6-unwinding-a-position) * [Step 7: Understanding Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#step-7-understanding-auto-rolling) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#troubleshooting) * [Order Not Executing](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#order-not-executing) * [Insufficient Collateral Error](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#insufficient-collateral-error) * [Transaction Failing](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#transaction-failing) * [Security Measures](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading#security-measures) sun-brightdesktopmoon sun-brightdesktopmoon --- # Minting USDFC Step-by-Step | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#prerequisites) Prerequisites ------------------------------------------------------------------------------------------------------------------------------------ * An active Trove with FIL collateral * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) * Connected wallet with enough FIL for gas fees [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#overview) Overview -------------------------------------------------------------------------------------------------------------------------- Minting USDFC allows you to generate dollar-pegged stablecoins against your FIL collateral. This guide walks you through the process of minting USDFC from an existing Trove. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-1-access-your-trove) Step 1: Access Your Trove ----------------------------------------------------------------------------------------------------------------------------------------------------------- First, you need to access your existing Trove in the USDFC application. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Connect your wallet if not already connected 3. Go to the "Trove" section on the USDFC Dashboard page 4. You should see your current Trove details including collateral amount, debt, and collateral ratio circle-exclamation "Debt" is the Total debt = Borrowed amount + Borrowing Fees (cumulative) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-64a421085bc9fac2422a9188bbd787d4424558f2%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=348e755d&sv=2) The Trove dashboard showing current position details [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-2-select-adjust-trove) Step 2: Select "Adjust Trove" ----------------------------------------------------------------------------------------------------------------------------------------------------------------- To mint additional USDFC, you need to adjust your Trove. 1. Click on the "Adjust" button 2. This will open the Trove adjustment interface circle-info "Net debt" is Total Debt - Liquidation Reserve. In this example, 221.02 - 20 = 201.02 USDFC. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-3f9d367f44db92f466e9ec84987f3ae1b740b7e8%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=a54227cb&sv=2) Screenshot after clicking the "Adjust Trove" button [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-3-specify-minting-amount) Step 3: Specify Minting Amount --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Now you need to specify how much additional USDFC you want to mint. 1. In the adjustment interface, locate the "Collateral" and "Net debt" input fields 2. Enter the amount of Collateral and USDFC debt you want to adjust 3. The system will automatically calculate your new collateral ratio 4. Ensure your new collateral ratio remains above the minimum required (recommended 150%) circle-info "Total debt" is Net debt + Liquidation Reserve + Borrowing Fee (this mint fee). In this example, 220.00 + 20 + 0.10 = 240.10 USDFC. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-a687691b45520b61f6e2596fdf1e3f54d8cfa7b9%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=84792c13&sv=2) The minting interface with the adjusted amount and collateral ratio calculation [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-4-review-transaction-details) Step 4: Review Transaction Details ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before confirming, review all transaction details carefully. 1. Check the additional USDFC amount you're minting 2. Verify your new collateral ratio 3. Review any fees that will be applied 4. Ensure you understand how this affects your liquidation risk [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-5-confirm-and-mint-usdfc) Step 5: Confirm and Mint USDFC --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Once you're satisfied with the details, you can proceed with minting. 1. Click the "Confirm" button 2. Confirm the transaction in your wallet 3. Wait for the transaction to be processed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b8ae665d812a0673356dc043dc2c59e5d5e0be31%252FScreenshot%25202025-05-11%2520at%25206.15.51.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=9400257e&sv=2) The confirmation screen with the "Adjust Trove" method [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-6-verify-minted-usdfc) Step 6: Verify Minted USDFC --------------------------------------------------------------------------------------------------------------------------------------------------------------- After the transaction is confirmed, verify that your USDFC was minted successfully. 1. Check that your Trove details have been updated with the new debt amount 2. Verify that the additional USDFC has been added to your wallet balance 3. If you don't see the additional USDFC in your wallet, you may need to refresh or check your transaction history on your wallet or [a blockchain explorerarrow-up-right](https://filfox.info/en) 4. Check that your wallet balance reflects Borrowing Fee subtracted circle-info Wallet balance = Total debt - Liquidation Reserve - Borrowing Fees (cumulative). In this example, 240.10 - 20 - 0.10 (this mint fee) - 1.02 (prev mint fee) = 218.98 USDFC. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-56572dab38ac26b3b330b0cac829d9012244b417%252FScreenshot%25202025-05-11%2520at%25206.18.15.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=791bf031&sv=2) Screenshot showing updated Trove details and wallet balance [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#next-steps) Next Steps ------------------------------------------------------------------------------------------------------------------------------ Now that you've minted USDFC, you can: * [Manage your collateral](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) to adjust your risk level * [Monitor your position](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) to stay informed about your Trove's health * [Deposit USDFC into the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) to earn rewards * [Redeem USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc) for FIL when you're ready [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#troubleshooting) Troubleshooting ---------------------------------------------------------------------------------------------------------------------------------------- * **Transaction Failed**: Ensure you have enough FIL for gas fees and that your collateral ratio meets the minimum requirement * **Cannot Mint More USDFC**: You may have reached the maximum debt for your current collateral amount * **High Gas Fees**: Try again when network congestion is lower or adjust your gas settings [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------ **Q: Is there a limit to how much USDFC I can mint?** A: The amount of USDFC you can mint is limited by your collateral amount and the minimum collateral ratio requirement. **Q: Are there any fees for minting USDFC?** A: Yes, there is a small minting fee that varies based on the current base rate. This fee helps maintain the stability of the protocol. **Q: How does minting more USDFC affect my liquidation risk?** A: Minting more USDFC without adding collateral increases your debt, which lowers your collateral ratio and increases your liquidation risk. **Q: Can I mint USDFC in small increments?** A: Yes, you can mint USDFC in any amount as long as your collateral ratio remains above the minimum requirement. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#related-topics) Related Topics -------------------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Protocol Fees](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) [PreviousCreating Your First Trovechevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/creating-your-first-trove) [NextManaging Collateral Effectivelychevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#overview) * [Step 1: Access Your Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-1-access-your-trove) * [Step 2: Select "Adjust Trove"](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-2-select-adjust-trove) * [Step 3: Specify Minting Amount](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-3-specify-minting-amount) * [Step 4: Review Transaction Details](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-4-review-transaction-details) * [Step 5: Confirm and Mint USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-5-confirm-and-mint-usdfc) * [Step 6: Verify Minted USDFC](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#step-6-verify-minted-usdfc) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # How Liquidation Works | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#overview) Overview ---------------------------------------------------------------------------------------------------------------------------------------------- The liquidation process in the Fixed-Rate Lending Protocol involves identifying undercollateralized positions and executing liquidation calls through smart contract functions. This technical guide explains the implementation details of how liquidation works from a developer's perspective. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------------------------ First of all, it is necessary to identify the target user through off-chain actions before executing liquidation. The function `getCoverage()` is used for this purpose. A user becomes a target for liquidation if this function returns a value of `8000` or higher. For more details, refer to the documentation at [TokenVault Documentationarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/docs/protocol/TokenVault.md#getcoverage) . To execute with liquidation, you must specify the currency of the collateral to be received, the currency of the debt to be liquidated, and its maturity. This is done by calling the function `executeLiquidationCall()`. To maximize the profit of the liquidation in the case that users have collateral or debt in multiple currencies, you need to estimate each case and choose one of them through off-chain action. For more details of the function, refer to the documentation at [LendingMarketController Documentationarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/docs/protocol/LendingMarketController.md#executeliquidationcall) . Upon executing this process, the liquidator receives the liquidated debt and the collateral plus a 5% fee. However, if the liquidator's collateral coverage exceeds 80% at the end of the process, this liquidation process will fail. When executing the liquidation process through a smart contract, functions `executeOperationForCollateral()` for receiving collateral, and `executeOperationForDebt()` for receiving debt, can be set as callback functions. For usage, please refer to the sample contract at [Liquidator Contractarrow-up-right](https://github.com/Secured-Finance/contracts/blob/develop/contracts/external/liquidation/Liquidator.sol) . During the liquidation process, these callback functions enable the handling of received collateral by swapping it through external services or unwinding the received debt. The process flow is as follows: spinner [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Coverage Threshold The threshold value returned by `getCoverage()` that makes a position eligible for liquidation 8000 Liquidation Fee The additional collateral received by the liquidator 5% Liquidator Coverage Limit Maximum coverage value a liquidator can have after liquidation 80% Callback Functions Functions that can be implemented to handle received assets `executeOperationForCollateral()`, `executeOperationForDebt()` [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#examples) Examples ---------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#example-1-identifying-positions-for-liquidation) Example 1: Identifying Positions for Liquidation A liquidator bot wants to find undercollateralized positions: ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#example-2-executing-a-liquidation-call) Example 2: Executing a Liquidation Call A liquidator wants to liquidate an undercollateralized position: [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-do-i-determine-which-collateral-and-debt-currencies-to-liquidate) How do I determine which collateral and debt currencies to liquidate? You should analyze all possible combinations of collateral and debt currencies for a target user and choose the one that maximizes your profit. This typically involves: 1. Fetching all collateral and debt positions for the user 2. Calculating the potential profit for each combination (collateral value × 1.05 - debt value) 3. Considering gas costs for each liquidation 4. Selecting the combination with the highest net profit ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#what-happens-if-a-user-has-multiple-collateral-types) What happens if a user has multiple collateral types? If a user has multiple collateral types, you can only liquidate one collateral type per liquidation call. You would need to make separate liquidation calls for each collateral type you want to liquidate. It's generally most profitable to start with the collateral type that has the highest value or the one with the highest liquidation fee relative to its debt. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#can-i-implement-my-own-liquidation-strategy) Can I implement my own liquidation strategy? Yes, you can implement custom liquidation strategies by creating your own smart contract that inherits from the base Liquidator contract. You can override the callback functions `executeOperationForCollateral()` and `executeOperationForDebt()` to implement custom logic for handling the received assets, such as immediately swapping them on a DEX or using them for other DeFi strategies. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#what-prevents-a-liquidator-from-liquidating-healthy-positions) What prevents a liquidator from liquidating healthy positions? The protocol checks if the target user's position is undercollateralized by calling `getCoverage()`. If this function returns a value less than 8000, the liquidation call will revert. Additionally, the protocol checks if the liquidator's own position would become too collateralized after the liquidation (coverage > 80%), which prevents liquidators from accumulating too much collateral relative to their debt. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-can-i-test-my-liquidation-bot-before-deploying-it-to-mainnet) How can I test my liquidation bot before deploying it to mainnet? You can test your liquidation bot on a testnet or in a forked mainnet environment. To create test scenarios: 1. Set up a test account with collateral and debt positions 2. Manipulate the price oracle to simulate price movements that would make positions undercollateralized 3. Execute your liquidation bot against these test positions 4. Verify that the liquidation was successful and that you received the expected collateral and fee [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------------------------------------- * [Liquidators](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) * [Liquidation Process](https://docs.secured.finance/fixed-rate-lending/core-mechanics) * [Mark to Marketarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/mark-to-market.md) * [Collateral Liquidationsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/collateral-liquidations/README.md) [PreviousLiquidatorschevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) [NextLiquidation Case Studychevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#examples) * [Example 1: Identifying Positions for Liquidation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#example-1-identifying-positions-for-liquidation) * [Example 2: Executing a Liquidation Call](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#example-2-executing-a-liquidation-call) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#common-questions) * [How do I determine which collateral and debt currencies to liquidate?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-do-i-determine-which-collateral-and-debt-currencies-to-liquidate) * [What happens if a user has multiple collateral types?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#what-happens-if-a-user-has-multiple-collateral-types) * [Can I implement my own liquidation strategy?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#can-i-implement-my-own-liquidation-strategy) * [What prevents a liquidator from liquidating healthy positions?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#what-prevents-a-liquidator-from-liquidating-healthy-positions) * [How can I test my liquidation bot before deploying it to mainnet?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#how-can-i-test-my-liquidation-bot-before-deploying-it-to-mainnet) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works#related-resources) sun-brightdesktopmoon Copy // Pseudocode for a liquidator bot async function findLiquidationTargets() { const users = await getAllUsers(); const liquidationTargets = []; for (const user of users) { // Check if user's position is undercollateralized const coverage = await tokenVault.getCoverage(user.address); // If coverage is 8000 or higher, the position is eligible for liquidation if (coverage >= 8000) { // Calculate potential profit from liquidation const collateralValue = await getCollateralValue(user.address); const debtValue = await getDebtValue(user.address); const liquidationFee = collateralValue * 0.05; // 5% fee liquidationTargets.push({ user: user.address, coverage, collateralValue, debtValue, potentialProfit: liquidationFee }); } } // Sort by potential profit to prioritize most profitable liquidations return liquidationTargets.sort((a, b) => b.potentialProfit - a.potentialProfit); } Copy // Pseudocode for executing liquidation async function executeLiquidation(targetUser) { // Determine which collateral and debt currencies to liquidate const collateralCurrency = findMostProfitableCollateral(targetUser); const debtCurrency = findMostEfficientDebt(targetUser); const maturity = getCurrentMaturity(); // Execute the liquidation call const tx = await lendingMarketController.executeLiquidationCall( targetUser, collateralCurrency, debtCurrency, maturity ); // Handle the received collateral and debt // This will trigger the callback functions if implemented await tx.wait(); // Check if liquidation was successful const liquidatorCoverage = await tokenVault.getCoverage(liquidatorAddress); if (liquidatorCoverage > 8000) { console.log("Liquidation failed: Liquidator coverage exceeded 80%"); } else { console.log("Liquidation successful"); } } sun-brightdesktopmoon --- # Mark to Market | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#overview) Overview --------------------------------------------------------------------------------------------------------------------------- Mark to Market is a pricing methodology where the value of an asset is calculated based on its current market value. In this methodology, the asset is valued at the current market price instead of its book value. We use this price to evaluate Profit and Loss (PnL) and Loan to Value (LTV) ratio. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------- In our approach to mark-to-market valuation, we focus on zero-coupon bond market pricing, utilizing the 'Mark Price' as our benchmark. This price is derived from the Volume Weighted Average Price (VWAP) calculated over the duration of a single block. Notably, our methodology emphasizes the use of Future Value (FV) in these calculations, as opposed to the more traditional Present Value (PV) approach. > **Example of FV approach for the VWAP** > > In the scenario where transactions A and B occur within the same block, a traditional application of the Volume Weighted Average Price (VWAP) would give a value of 93.00, as illustrated in the example below. However, this traditional VWAP calculation does not adequately represent the relationship between Present Value (PV) and Future Value (FV). To address this, we calculate our Block Price by adopting a methodology centered on the FV approach, ensuring a more accurate reflection of market dynamics and valuation in our decentralized finance context. Transaction PV amount Price FV amount VWAP A 1,000 94.00 1,063.83 B 1,000 92.00 1,086.96 Sum 2,000 2,150.79 92.99 To safeguard against potential price manipulation within a block, we have implemented a **minimum volume threshold**. This measure ensures that only transactions meeting this specified volume criteria contribute to the block's pricing, thereby maintaining the integrity and reliability. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#current-volume-threshold) Current Volume Threshold Currency Minimum Volume Threshold USD 100 Should the trading volume within a block fall below our established threshold, we opt not to record the block price for that particular interval. Instead, we continue using the price from the most recent block that met or exceeded this volume threshold for our mark-to-market calculations. This threshold is not arbitrary; it is meticulously calculated for each currency based on the spot price provided by the Chainlink oracle, ensuring accuracy and relevance to current market conditions. circle-info We review and revise Volume Threshold periodically. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#fallback-mechanism-waterfall) Fallback Mechanism (Waterfall) In exceptional cases where the primary Mark Price calculation method cannot be applied due to insufficient trading volume or other market conditions, the protocol employs a fallback mechanism to ensure there is always a valid price available for mark-to-market calculations. This waterfall approach follows a strict priority order: 1. Use 'Opening Price' for 'Mark Price' when Itayose Process Executed 2. Use 'Auto-roll Price' for 'Mark Price' if there are no block price 3. Use 'Last traded price' and/or 'VWAP' for 'Mark to Market' price during the same block if there is no matching orders have been executed before and no 'Mark Price' exist * If there are no 'Mark Price' exist yet, we remove the Volume Threshold above and use 'last traded price' [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Minimum Volume Threshold Minimum trading volume required for Mark Price updates 100 USD VWAP Calculation Method How the Volume Weighted Average Price is calculated Future Value (FV) approach Price Update Frequency How often the Mark Price can be updated Per block Waterfall Priority Order of price sources used when determining Mark Price 1\. Itayose Opening Price 2. Auto-roll Price 3. Last traded price/VWAP [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#examples) Examples --------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#example-1-calculating-mark-price-with-sufficient-volume) Example 1: Calculating Mark Price with Sufficient Volume Consider a market with the following transactions in a single block: Transaction PV amount Price FV amount A 500 95.00 526.32 B 700 93.00 752.69 C 300 94.00 319.15 Total 1,500 1,598.16 The total volume (1,500) exceeds the minimum threshold of 100 USD, so the Mark Price is calculated: * VWAP = Total PV / Total FV = 1,500 / 1,598.16 = 93.86 This Mark Price (93.86) will be used for all mark-to-market calculations in this block and subsequent blocks until a new valid Mark Price is established. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#example-2-using-the-waterfall-mechanism) Example 2: Using the Waterfall Mechanism Scenario: A new market has just been created through the Itayose process with an Opening Price of 95.00. 1. **Day 1**: No trades occur. The Mark Price remains 95.00 (from Itayose Opening Price). 2. **Day 2**: A few small trades occur with a total volume of 50 USD (below the threshold). The Mark Price remains 95.00. 3. **Day 3**: The market matures and undergoes Auto-rolling with an Auto-roll Price of 94.50. The Mark Price updates to 94.50. 4. **Day 4**: Significant trading activity occurs with a volume of 200 USD and a VWAP of 94.20. The Mark Price updates to 94.20. This example demonstrates how the waterfall mechanism ensures there is always a valid Mark Price available for collateral valuation and liquidation calculations. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#why-use-future-value-fv-instead-of-present-value-pv-for-vwap-calculations) Why use Future Value (FV) instead of Present Value (PV) for VWAP calculations? Using Future Value (FV) in our VWAP calculations provides a more accurate representation of the true economic value of zero-coupon bonds. Since zero-coupon bonds are traded at a discount to their face value and redeemed at maturity for their full face value, the FV approach better captures the relationship between current prices and future obligations. This method ensures that our mark-to-market valuations reflect the actual economic exposure of positions in the protocol. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-does-the-minimum-volume-threshold-protect-against-price-manipulation) How does the minimum volume threshold protect against price manipulation? The minimum volume threshold prevents small trades from disproportionately affecting the Mark Price. Without this threshold, an attacker could execute a small trade at an artificially high or low price to manipulate the Mark Price, potentially triggering unwarranted liquidations or preventing necessary ones. By requiring a minimum trading volume (currently 100 USD), we ensure that only significant market activity influences the Mark Price, making manipulation more costly and less feasible. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#what-happens-if-theres-no-trading-activity-for-an-extended-period) What happens if there's no trading activity for an extended period? If there's no trading activity that meets the minimum volume threshold for an extended period, the protocol continues to use the last valid Mark Price according to the waterfall mechanism. This ensures continuity in valuation even during periods of low market activity. The waterfall mechanism prioritizes: 1. Opening Price from Itayose Process 2. Auto-roll Price 3. Last traded price/VWAP This approach maintains system stability while still allowing for price updates when significant market activity resumes. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-often-is-the-mark-price-updated) How often is the Mark Price updated? The Mark Price is updated on a block-by-block basis whenever there is sufficient trading volume (above the minimum threshold) within a block. If multiple trades occur within the same block, they are aggregated into a single VWAP calculation. If no trades meeting the threshold occur in a block, the Mark Price remains unchanged from the previous valid Mark Price. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#can-users-see-the-current-mark-price-for-each-market) Can users see the current Mark Price for each market? Yes, users can view the current Mark Price for each market through the protocol's interface. This transparency allows users to understand how their positions are being valued and to make informed decisions about their borrowing and lending activities. The Mark Price is a critical component for calculating collateralization ratios and determining when positions may be at risk of liquidation. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------- * [Liquidation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) * [Collateralizationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/collateralization.md) * [Safety Measuresarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/README.md) * [Circuit Breakerarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/circuit-breaker/README.md) [PreviousLiquidationchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) [NextLiquidatorschevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#examples) * [Example 1: Calculating Mark Price with Sufficient Volume](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#example-1-calculating-mark-price-with-sufficient-volume) * [Example 2: Using the Waterfall Mechanism](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#example-2-using-the-waterfall-mechanism) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#common-questions) * [Why use Future Value (FV) instead of Present Value (PV) for VWAP calculations?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#why-use-future-value-fv-instead-of-present-value-pv-for-vwap-calculations) * [How does the minimum volume threshold protect against price manipulation?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-does-the-minimum-volume-threshold-protect-against-price-manipulation) * [What happens if there's no trading activity for an extended period?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#what-happens-if-theres-no-trading-activity-for-an-extended-period) * [How often is the Mark Price updated?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#how-often-is-the-mark-price-updated) * [Can users see the current Mark Price for each market?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#can-users-see-the-current-mark-price-for-each-market) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Secured Finance Coin (SFC) | Secured Finance Docs **Points Program Participants:** Based on the TVL milestone achievements, SFP holders will be eligible for SFC airdrops up to 3% of total supply. **Active Community Participants:** Based on the community participants such as Galxe campaign and OAT holders will be eligible for SFC airdrops. [PreviousTokenomicschevron-left](https://docs.secured.finance/community/tokenomics) [NextSecured Finance Points (SFP) v2chevron-right](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2) Last updated 1 year ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Governance | Secured Finance Docs [PreviousOverviewchevron-left](https://docs.secured.finance/community/community) [NextTokenomicschevron-right](https://docs.secured.finance/community/tokenomics) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # The Trove System | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#overview) Overview --------------------------------------------------------------------------------------------------------------- The Trove System is the foundation of the USDFC Stablecoin Protocol, providing users with personal vaults to deposit Filecoin (FIL) collateral and borrow USDFC. Each Trove tracks your collateral, debt, and maintains a collateralization ratio that must stay above the minimum threshold to avoid liquidation. [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------- A Trove is your personal vault within the protocol where you lock up Filecoin (FIL) as collateral in order to borrow USDFC. The system carefully tracks the relationship between your collateral value and debt to ensure the protocol remains solvent. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#key-components) Key Components 1. **Collateral**: The amount of FIL you deposit to secure your borrowed USDFC 2. **Total Debt**: The sum of your borrowed USDFC, liquidation reserve, and any applicable fees 3. **Collateral Ratio**: The ratio of your collateral value (in USD) to your total debt (in USDFC) ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#trove-lifecycle) Trove Lifecycle 1. **Opening a Trove**: Deposit FIL collateral and specify how much USDFC to borrow 2. **Managing a Trove**: Add collateral or repay debt to maintain a healthy collateral ratio 3. **Closing a Trove**: Repay all debt to reclaim your collateral 4. **Liquidation**: If your collateral ratio falls below the minimum threshold, your Trove may be liquidated [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value Minimum Collateral Ratio Minimum required ratio in Normal Mode 110% Recovery Mode Threshold System-wide ratio that triggers Recovery Mode 150% Minimum Borrow Amount Minimum USDFC that can be borrowed 180 USDFC Liquidation Reserve USDFC reserved for potential liquidation gas costs 20 USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#debt-calculations) Debt Calculations --------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#total-debt-formula) Total Debt Formula Total Debt\=(Borrowed Amount)+(Liquidation Reserve)+(Borrowing Fee)\\text{Total Debt} = (\\text{Borrowed Amount}) + (\\text{Liquidation Reserve}) + (\\text{Borrowing Fee})Total Debt\=(Borrowed Amount)+(Liquidation Reserve)+(Borrowing Fee) The Total Debt represents the full amount you owe to the protocol, including: * **Borrowed Amount**: The USDFC you receive (minimum 180 USDFC) * **Liquidation Reserve**: 20 USDFC set aside to cover potential liquidation costs (refunded when you close your Trove) * **Borrowing Fee**: One-time fee based on your borrowed amount (waived in Recovery Mode) ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#collateral-ratio-formula) Collateral Ratio Formula Collateral Ratio\=Collateral Value (USD)Total Debt (USDFC)\\text{Collateral Ratio} = \\frac{\\text{Collateral Value (USD)}}{\\text{Total Debt (USDFC)}}Collateral Ratio\=Total Debt (USDFC)Collateral Value (USD)​ * Must remain above 110% in Normal Mode * Recommended to maintain above 150% to avoid liquidation in Recovery Mode * Many users maintain 200-250% as an extra safety buffer [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#action-specific-calculations) Action-Specific Calculations ------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#opening-a-trove) Opening a Trove **Normal Mode**: Total Debt\=(Borrowed Amount)+(Liquidation Reserve)+(Borrowing Fee)\\text{Total Debt} = (\\text{Borrowed Amount}) + (\\text{Liquidation Reserve}) + (\\text{Borrowing Fee})Total Debt\=(Borrowed Amount)+(Liquidation Reserve)+(Borrowing Fee) **Recovery Mode**: Total Debt\=(Borrowed Amount)+(Liquidation Reserve)\\text{Total Debt} = (\\text{Borrowed Amount}) + (\\text{Liquidation Reserve})Total Debt\=(Borrowed Amount)+(Liquidation Reserve) (Borrowing Fee is waived) **Example (Normal Mode)**: * Borrowed Amount: 180 USDFC * Liquidation Reserve: 20 USDFC * Borrowing Fee: 0.90 USDFC (0.5% of 180) * **Total Debt**: 200.90 USDFC ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#closing-a-trove) Closing a Trove To close your Trove, you must repay your Total Debt. However, the protocol immediately refunds the Liquidation Reserve, so you only need to prepare the net amount. **Example**: * Total Debt: 200.90 USDFC * Liquidation Reserve: 20 USDFC * **Amount You Need to Prepare**: 180.90 USDFC [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------- **Is there any ongoing interest on my borrowed USDFC?** No, the protocol only charges a one-time Borrowing Fee when you mint USDFC. There are no recurring interest charges. **What collateral ratio should I maintain to be safe?** While the minimum is 110%, it's recommended to maintain at least 150% to avoid liquidation during Recovery Mode. Many users maintain 200-250% as an extra safety buffer. **What happens to my Liquidation Reserve?** The 20 USDFC Liquidation Reserve is automatically refunded when you close your Trove. If your Trove is liquidated, this reserve is used to compensate the liquidator for gas costs. [Learn more in the FAQs section](https://docs.secured.finance/usdfc-stablecoin/faqs) [hashtag](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#related-topics) Related Topics --------------------------------------------------------------------------------------------------------------------------- * [Mint & Borrow](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousSystem Overviewchevron-left](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/system-overview) [NextMint & Borrowchevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/mint-and-borrow) Last updated 10 months ago * [Overview](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#overview) * [How It Works](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#how-it-works) * [Key Components](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#key-components) * [Trove Lifecycle](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#trove-lifecycle) * [Key Parameters](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#key-parameters) * [Debt Calculations](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#debt-calculations) * [Total Debt Formula](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#total-debt-formula) * [Collateral Ratio Formula](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#collateral-ratio-formula) * [Action-Specific Calculations](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#action-specific-calculations) * [Opening a Trove](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#opening-a-trove) * [Closing a Trove](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#closing-a-trove) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Safety Measures | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#overview) Overview ----------------------------------------------------------------------------------------------------------------- Safety Measures in the Fixed-Rate Lending Protocol are critical mechanisms designed to protect the system from extreme market conditions, price manipulation, and other potential risks. These features work together to ensure the protocol remains stable, secure, and reliable for all participants. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#what-youll-learn) What You'll Learn ---------------------------------------------------------------------------------------------------------------------------------- * How Mark to Market provides realistic appraisal of financial positions * How Circuit Breaker prevents price manipulation and extreme volatility * How Base Price Adjustment maintains fair pricing during market stress * How Emergency Global Settlement protects the protocol in extreme scenarios * How these safety mechanisms work together to ensure system stability [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#key-components) Key Components ----------------------------------------------------------------------------------------------------------------------------- * [**Mark to Market**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) : Standard accounting practice for fair value assessment * [**Circuit Breaker**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker) : Limits price deviations to prevent manipulation * [**Base Price Adjustment**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment) : Ensures fair pricing during market stress * [**Emergency Global Settlement**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement) : Protocol-wide safety mechanism for extreme scenarios [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------- * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) [PreviousItayose - Fair Price Discoverychevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) [NextCircuit Breakerchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # ZC Bond Price to APR | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#overview) Overview ---------------------------------------------------------------------------------------------------------------------- On our platform, the execution of bond transactions is determined by the bond price. However, we recognize that users may find it more convenient to reference the Annual Percentage Rate (APR) when assessing yields. To accommodate this, we provide the APR as a reference rate, which is based on a linear calculation up to a 1-year tenor using an Act/365 basis. For tenors exceeding 1 year, we utilize annual compounding to determine the yield. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------ The conversion between Zero-Coupon Bond prices and Annual Percentage Rates (APR) is a fundamental calculation in our platform. The method varies depending on the maturity period of the bond. circle-info **What is Act/365?** Act/365 is a day count convention used in bond math to calculate the accrued interest on a bond. It stands for Actual/365 and is also known as the Actual/365 Fixed convention. Note that the Act/365 convention assumes a fixed year of 365 (or 366) days, regardless of the actual number of days in the year. This is different from other day count conventions, such as the 30/360 convention, which assumes a fixed 30-day month and a 360-day year. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#bonds-with-maturity-less-than-1-year) Bonds with Maturity Less Than 1 Year For Zero-Coupon Bonds with maturities less than one year, we use a linear calculation with the Act/365 day count convention: FV\=PV∗(1+r∗Act/365)FV = PV \* (1 + r\*Act/365)FV\=PV∗(1+r∗Act/365) Where: * PV: Present Value * FV: Future Value * r: APR (Annual Percentage Rate) * Act: Actual duration to Maturity in days As an inherent characteristic of the ZC bond market, the present value (PV) of a bond is equivalent to its bond price, while the future value (FV) is fixed at 100, as per the design of our protocol. Duration is calculated using the seconds to maturity compared to seconds per year, enabled by our smart contract technology. To calculate APR from the bond price: APR\=(100/BondPrice−1)∗secondsPerYear/secondsToMaturityAPR = (100/BondPrice - 1)\*secondsPerYear/secondsToMaturityAPR\=(100/BondPrice−1)∗secondsPerYear/secondsToMaturity Where: * secondsPerYear: 365 \* 24 \* 60 \* 60 = 31,536,000 ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#bonds-with-maturity-greater-than-1-year) Bonds with Maturity Greater Than 1 Year For Zero-Coupon Bonds with maturities greater than one year, we use annual compounding: FV\=PV∗(1+r)nFV = PV \*(1 + r)^nFV\=PV∗(1+r)n Where: * PV: Present Value * FV: Future Value * r: APR (Annual Percentage Rate) * n: Years to Maturity Similar to the formulaic approach for tenors less than 1 year, the present value (PV) of a bond equals its bond price, while the future value (FV) remains fixed at 100, in accordance with our protocol design. To calculate APR from the bond price: APR\=(100/BondPrice)(1/YearsToMaturity)−1APR =(100/BondPrice)^{(1/YearsToMaturity)}-1APR\=(100/BondPrice)(1/YearsToMaturity)−1 Where: * Years to Maturity: Seconds to Maturity/Seconds Per Year ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#during-pre-open-period) During Pre-Open Period The pre-open period is a specific time frame before the official opening of a new bond market. During this period, we invite users to place their orders in the pre-open order book. This allows market participants to gauge interest and liquidity before the market officially starts. For more detailed explanation, please visit [Fair Price Discovery](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) . During the pre-open period, the APR displayed is based on the estimated 'opening price' at the time the market starts. It's important to note that the APR is not calculated from the spot date to the end of maturity. Instead, it is calculated from the start trading date to the end of maturity. circle-info The formula for APR during the pre-open period would be similar to the existing APR calculation, but the 'Actual duration to Maturity' (Act) and 'Years to Maturity' would be replaced by the 'Actual Bond Duration from Start Trading Date to End of Maturity' and 'PV' will be 'estimated opening price'. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------------------- Parameter Description Impact on APR Calculation Bond Price Current market price of the Zero-Coupon Bond Lower price → Higher APR Time to Maturity Time remaining until the bond matures Shorter maturity → Different calculation method Day Count Convention Method for counting days (Act/365) Standardizes time calculation Calculation Method Linear vs. Compounding based on maturity Affects APR for different time horizons Pre-Open Status Whether the bond is in pre-open period Changes time basis for calculation Seconds Per Year Standard time basis (31,536,000 seconds) Standardizes annualization [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#examples) Examples ---------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-1-calculating-apr-for-a-3-month-bond) Example 1: Calculating APR for a 3-Month Bond Let's calculate the APR for a 3-month Zero-Coupon Bond with a price of 98.50: 1. Since the maturity is less than 1 year, we use the linear calculation formula 2. Calculate seconds to maturity: 3 months = 90 days = 7,776,000 seconds 3. Apply the APR formula: 4. This means a bond priced at 98.50 with 3 months to maturity has an implied APR of 6.17% ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-2-calculating-apr-for-an-18-month-bond) Example 2: Calculating APR for an 18-Month Bond For an 18-month Zero-Coupon Bond with a price of 85.00: 1. Since the maturity is greater than 1 year, we use the annual compounding formula 2. Calculate years to maturity: 18 months = 1.5 years 3. Apply the APR formula: 4. This means a bond priced at 85.00 with 18 months to maturity has an implied APR of 11.22% ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-3-apr-during-pre-open-period) Example 3: APR During Pre-Open Period During a pre-open period for a new 6-month Zero-Coupon Bond: 1. The estimated opening price based on current orders is 97.00 2. The bond will start trading in 5 days 3. The actual duration from start trading to maturity is 175 days (180 - 5) 4. Apply the modified APR formula: 5. During the pre-open period, this bond would display an estimated APR of 6.44% [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#why-does-secured-finance-use-different-calculation-methods-for-different-maturities) Why does Secured Finance use different calculation methods for different maturities? We use different calculation methods for different maturities because: 1. **Market Convention**: This approach aligns with standard market practices in traditional finance 2. **Accuracy**: Linear calculations are simpler and sufficiently accurate for short-term bonds 3. **Compounding Effects**: For longer maturities, compounding effects become more significant 4. **Yield Curve Representation**: Different methods better represent the yield curve across various time horizons 5. **User Expectations**: Users familiar with traditional finance expect these calculation methods ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-does-the-apr-calculation-relate-to-the-actual-yield-ill-receive) How does the APR calculation relate to the actual yield I'll receive? The relationship between APR and actual yield: 1. **Exact Return**: For bonds held to maturity, your actual return will be exactly as calculated (bond price to 100) 2. **Annualized Representation**: APR standardizes returns to an annual basis for comparison 3. **No Compounding Assumption**: APR doesn't account for reinvestment of returns (unlike APY) 4. **Trading Impact**: If you sell before maturity, market conditions will determine your actual return 5. **Fee Consideration**: Transaction fees are not included in the APR calculation ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#can-i-compare-aprs-across-different-maturity-periods) Can I compare APRs across different maturity periods? Yes, you can compare APRs across different maturity periods: 1. **Standardized Basis**: APR converts all returns to an annual basis, enabling comparison 2. **Yield Curve Analysis**: Comparing APRs across maturities reveals the yield curve shape 3. **Risk Assessment**: Higher APRs for longer maturities typically indicate higher risk premiums 4. **Investment Strategy**: Comparing APRs helps determine optimal investment horizons 5. **Market Expectations**: Differences in APRs across maturities reflect market expectations for future rates ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#why-might-the-apr-change-during-the-pre-open-period) Why might the APR change during the pre-open period? The APR might change during the pre-open period due to: 1. **Order Flow**: New orders affect the estimated opening price, which changes the APR 2. **Market Sentiment**: Shifting market sentiment can alter bidding patterns 3. **External Factors**: News or events during the pre-open period may influence pricing 4. **Liquidity Dynamics**: Increasing order book depth can stabilize or shift the expected price 5. **Time Passage**: As the start trading date approaches, the time component in the calculation changes ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-accurate-is-the-displayed-apr-during-the-pre-open-period) How accurate is the displayed APR during the pre-open period? The accuracy of the pre-open APR: 1. **Estimation**: It's based on the current estimated opening price, which may change 2. **Order Book Depth**: More orders generally lead to more accurate estimates 3. **Market Conditions**: Stable market conditions produce more reliable estimates 4. **Historical Correlation**: Previous pre-open APRs have shown good correlation with actual opening APRs 5. **Indicative Only**: It should be considered indicative rather than guaranteed [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------------- * [APR vs APY](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy) * [Discount Factor](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor) * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) [PreviousAPR vs APYchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy) [NextDiscount Factorchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-it-works) * [Bonds with Maturity Less Than 1 Year](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#bonds-with-maturity-less-than-1-year) * [Bonds with Maturity Greater Than 1 Year](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#bonds-with-maturity-greater-than-1-year) * [During Pre-Open Period](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#during-pre-open-period) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#examples) * [Example 1: Calculating APR for a 3-Month Bond](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-1-calculating-apr-for-a-3-month-bond) * [Example 2: Calculating APR for an 18-Month Bond](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-2-calculating-apr-for-an-18-month-bond) * [Example 3: APR During Pre-Open Period](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#example-3-apr-during-pre-open-period) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#common-questions) * [Why does Secured Finance use different calculation methods for different maturities?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#why-does-secured-finance-use-different-calculation-methods-for-different-maturities) * [How does the APR calculation relate to the actual yield I'll receive?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-does-the-apr-calculation-relate-to-the-actual-yield-ill-receive) * [Can I compare APRs across different maturity periods?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#can-i-compare-aprs-across-different-maturity-periods) * [Why might the APR change during the pre-open period?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#why-might-the-apr-change-during-the-pre-open-period) * [How accurate is the displayed APR during the pre-open period?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#how-accurate-is-the-displayed-apr-during-the-pre-open-period) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr#related-resources) sun-brightdesktopmoon Copy APR = (100/98.50 - 1) * 31,536,000/7,776,000 APR = (1.0152 - 1) * 4.0552 APR = 0.0152 * 4.0552 APR = 0.0617 or 6.17% Copy APR = (100/85.00)^(1/1.5) - 1 APR = (1.1765)^(0.6667) - 1 APR = 1.1122 - 1 APR = 0.1122 or 11.22% Copy APR = (100/97.00 - 1) * 365/175 APR = (1.0309 - 1) * 2.0857 APR = 0.0309 * 2.0857 APR = 0.0644 or 6.44% sun-brightdesktopmoon --- # Legal | Secured Finance Docs [⚠️Risk Disclaimerchevron-right](https://docs.secured.finance/resources/legal/risk-disclaimer) [📜Terms of Usechevron-right](https://docs.secured.finance/resources/legal/terms-of-use) [🔒Privacy Policychevron-right](https://docs.secured.finance/resources/legal/privacy-policy) [PreviousUSDFC Logochevron-left](https://docs.secured.finance/resources/media-kit/usdfc-logo) [NextRisk Disclaimerchevron-right](https://docs.secured.finance/resources/legal/risk-disclaimer) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Liquidators | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#overview) Overview ------------------------------------------------------------------------------------------------------------------------ In the Secured Finance ecosystem, Liquidators play a crucial role in maintaining the health and stability of the decentralized loan protocol. As a Liquidator, you have the unique opportunity to participate in the liquidation process, ensuring the safety of lenders' funds while potentially earning rewards for your efforts. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------------------- When a borrower's collateral value falls below the liquidation threshold, their loan becomes susceptible to liquidation. As a Liquidator, your role is to step in and purchase the undercollateralized loan at a discounted price, providing the borrower with an opportunity to recover their position. By liquidating the loan, you allow lenders to recoup their funds and mitigate the risk of defaults. To become a Liquidator, you don't need to meet any specific criteria. Any user, even if using smart contracts, can call the liquidation process. For more technical details, please consult '[How Liquidation Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works) '. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------------ Parameter Description Value Liquidation Threshold The LTV ratio at which a position becomes eligible for liquidation 80% Liquidation Penalty The discount applied to collateral during liquidation 5% Minimum Liquidation Size The smallest position that can be liquidated None Liquidation Cooldown Time required between liquidations of the same position None [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#examples) Examples ------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#example-1-basic-liquidation-process) Example 1: Basic Liquidation Process A liquidator monitors the protocol for undercollateralized positions: 1. The liquidator identifies a borrower with an LTV ratio of 82% (above the 80% threshold) 2. The borrower has 10,000 USDC collateral and 8,200 USDC worth of debt 3. The liquidator calls the liquidation function, specifying the borrower's address 4. The protocol automatically liquidates 50% of the position (4,100 USDC worth of debt) 5. The liquidator pays 4,100 USDC to cover this debt 6. The liquidator receives 4,305 USDC worth of collateral (4,100 × 1.05) 7. The liquidator earns a profit of 205 USDC (5% liquidation fee) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#example-2-liquidation-bot-implementation) Example 2: Liquidation Bot Implementation [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#who-can-become-a-liquidator) Who can become a liquidator? Anyone can become a liquidator in the Fixed-Rate Lending Protocol. There are no special requirements or permissions needed. Both individuals and smart contracts can participate in the liquidation process. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-do-i-profit-from-being-a-liquidator) How do I profit from being a liquidator? Liquidators profit from the liquidation penalty (currently 5%) applied to the liquidated debt. When you liquidate a position, you pay the debt amount but receive collateral worth more than what you paid. The difference is your profit. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#what-tools-do-i-need-to-become-an-effective-liquidator) What tools do I need to become an effective liquidator? To be an effective liquidator, you typically need: 1. A monitoring system to track positions close to liquidation threshold 2. Sufficient capital to cover the debt you're liquidating 3. Automation tools or bots to execute liquidations quickly 4. Gas price monitoring to ensure liquidations remain profitable ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#are-there-any-risks-involved-in-being-a-liquidator) Are there any risks involved in being a liquidator? Yes, there are several risks: 1. **Price Volatility**: Rapid price changes can affect the value of the collateral you receive 2. **Gas Costs**: High gas prices can reduce or eliminate profitability 3. **Competition**: Other liquidators may compete for the same liquidation opportunities 4. **Smart Contract Risk**: As with any DeFi activity, there's always some level of smart contract risk ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-quickly-do-i-need-to-act-when-a-position-becomes-eligible-for-liquidation) How quickly do I need to act when a position becomes eligible for liquidation? Speed is crucial in liquidations. Once a position crosses the liquidation threshold, it becomes a race among liquidators to execute the transaction first. Positions are typically liquidated within seconds or minutes of becoming eligible, depending on market conditions and visibility of the position. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#risks-and-rewards) Risks and Rewards ------------------------------------------------------------------------------------------------------------------------------------------ Being a Liquidator comes with both risks and rewards. The main risk is the potential price volatility of the assets involved in the liquidation process. The value of the collateral may fluctuate rapidly, affecting the profitability of the liquidation. On the other hand, the rewards for successful liquidations can be lucrative. Liquidators stand to receive a portion of the discounted collateral acquired during the liquidation. This reward serves as an incentive for participants to actively engage in the liquidation process and contribute to the protocol's stability. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------------------ * [Liquidation Process](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) * [How Liquidation Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works) * [Mark to Market](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) [PreviousMark to Marketchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) [NextHow Liquidation Workschevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#examples) * [Example 1: Basic Liquidation Process](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#example-1-basic-liquidation-process) * [Example 2: Liquidation Bot Implementation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#example-2-liquidation-bot-implementation) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#common-questions) * [Who can become a liquidator?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#who-can-become-a-liquidator) * [How do I profit from being a liquidator?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-do-i-profit-from-being-a-liquidator) * [What tools do I need to become an effective liquidator?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#what-tools-do-i-need-to-become-an-effective-liquidator) * [Are there any risks involved in being a liquidator?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#are-there-any-risks-involved-in-being-a-liquidator) * [How quickly do I need to act when a position becomes eligible for liquidation?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#how-quickly-do-i-need-to-act-when-a-position-becomes-eligible-for-liquidation) * [Risks and Rewards](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#risks-and-rewards) * [Related Topics](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators#related-topics) sun-brightdesktopmoon Copy // Pseudocode for a basic liquidation bot async function monitorForLiquidations() { while (true) { // Get all borrowers from the protocol const borrowers = await protocol.getAllBorrowers(); // Check each borrower's position for (const borrower of borrowers) { const ltv = await protocol.getLTV(borrower); // If LTV is above liquidation threshold if (ltv >= 8000) { // 80% represented as 8000 basis points // Calculate potential profit const debtValue = await protocol.getDebtValue(borrower); const liquidationAmount = debtValue.div(2); // 50% liquidation const profit = liquidationAmount.mul(5).div(100); // 5% fee // Check if profitable after gas costs const gasEstimate = await protocol.estimateGas.liquidate(borrower); const gasCost = gasEstimate.mul(gasPrice); if (profit.gt(gasCost)) { // Execute liquidation await protocol.liquidate(borrower); console.log(`Liquidated ${borrower} for a profit of ${profit} USDC`); } } } // Wait before next check await sleep(30000); // Check every 30 seconds } } sun-brightdesktopmoon --- # Liquidation | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#overview) Overview ------------------------------------------------------------------------------------------------------------ The liquidation process in the Fixed-Rate Lending protocol is a critical mechanism that ensures the solvency and stability of the system. When a borrower's position becomes undercollateralized, the liquidation process allows for the orderly repayment of debt using the borrower's collateral, protecting lenders and maintaining the overall health of the protocol. This section explains the liquidation process specific to the Fixed-Rate Lending protocol. Note that this differs from the liquidation process involving the Stability Pool in the USDFC Stablecoin protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#what-youll-learn) What You'll Learn ----------------------------------------------------------------------------------------------------------------------------- * How the liquidation process protects lenders from default risk * How Loan-to-Value (LTV) ratio determines liquidation eligibility * How liquidation penalties and thresholds work * How price oracles determine collateral value * How liquidators execute the liquidation process [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#key-components) Key Components ------------------------------------------------------------------------------------------------------------------------ * [**Mark to Market**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) : The valuation mechanism for determining collateral value * [**Liquidators**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) : The third-party actors who execute liquidations * [**Case Study**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study) : A detailed example of the liquidation process [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#why-liquidation-process-is-important) Why Liquidation Process is Important -------------------------------------------------------------------------------------------------------------------------------------------------------------------- The liquidation process holds paramount importance for Secured Finance as a Decentralized Loan Protocol, primarily for two crucial reasons: 1. **Mitigating default risk:** Through the liquidation process, lenders are safeguarded against the risk of default by borrowers. When a borrower's collateral value falls below the liquidation threshold relative to their debt, their loan becomes eligible for liquidation, ensuring the lenders can recover their funds. 2. **Maintaining protocol stability:** The liquidation process plays a pivotal role in preserving the stability of the DeFi loan protocol. It prevents the accumulation of undercollateralized loans. Excessive loan defaults can deplete the protocol's reserves, potentially leading to system instability. By executing liquidations, the protocol can maintain a healthy balance and ensure its overall stability. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#how-does-it-work) How Does It Work? ----------------------------------------------------------------------------------------------------------------------------- When the borrower's [**Loan to Value (LTV)**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#loan-to-value) ratio surpasses the defined [**Threshold**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#threshold) , the borrower's position (collateral) becomes subject to liquidation. During a liquidation process: * A portion of the borrower's outstanding debt (up to 50%) is repaid using their deposited collateral. * The amount of collateral seized is equal to the value of the debt being repaid plus a [**Liquidation Penalty**](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#liquidation-penalty) . * Liquidations are typically executed by third-party [Liquidators](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) who are incentivized to perform this action. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#loan-to-value-ltv) Loan to Value (LTV) The Loan to Value (LTV) ratio compares the value of a borrower's debt to the value of their collateral. `LTV = (Value of Debt / Value of Collateral) * 100%` A higher LTV indicates a higher risk of liquidation. The platform visualizes this risk: * **Green:** Low risk * **Yellow:** Moderate risk * **Red:** High risk (approaching liquidation threshold) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-cf2f5e5a7049e04fd66992897c53a3725bf46545%252Frisk-v2.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=ac55bff6&sv=2) LTV and Liquidation Risk Visualization ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#threshold) Threshold The liquidation threshold is the LTV percentage at which a borrower's position becomes eligible for liquidation. * **Current Threshold:** 80% for all currencies. * **Dynamic Adjustment:** This threshold may be adjusted based on market conditions (volatility, liquidity) for specific assets. * **Over-Collateralization:** Borrowers must initially deposit collateral worth significantly more than their loan amount to provide a safety buffer. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#price-oracle) Price Oracle The value of collateral is determined using real-time price feeds, primarily from Chainlink. The protocol uses [Mark-to-Market](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) principles based on recent trading activity (VWAP) where available, falling back to oracle prices if necessary. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#liquidation-penalty) Liquidation Penalty ---------------------------------------------------------------------------------------------------------------------------------- A penalty is applied during liquidation to compensate the liquidator and contribute to the protocol's reserve fund. * **Current Penalty:** 7% on the value of the collateral being liquidated. Borrowers should actively manage their collateral levels to avoid liquidation and the associated penalty. > See a detailed example in the [Liquidation Case Study](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study) > . Learn more about the role of liquidators in [Liquidators](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators) > . [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------ * [Collateralization](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization) * [Order Book System](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [PreviousTokenizationchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization) [NextMark to Marketchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#key-components) * [Why Liquidation Process is Important](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#why-liquidation-process-is-important) * [How Does It Work?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#how-does-it-work) * [Loan to Value (LTV)](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#loan-to-value-ltv) * [Threshold](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#threshold) * [Price Oracle](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#price-oracle) * [Liquidation Penalty](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#liquidation-penalty) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Support & Contacts | Secured Finance Docs [hashtag](https://docs.secured.finance/community/support-and-contacts#contact-details) Contact Details ----------------------------------------------------------------------------------------------------------- * **Website**: [https://secured.finance/arrow-up-right](https://secured.finance/) * **Github**: [https://github.com/secured-financearrow-up-right](https://github.com/secured-finance) * **Whitepaper**: [https://blog.secured.finance/secured-finance-protocol-6cee22f571b4arrow-up-right](https://blog.secured.finance/secured-finance-protocol-6cee22f571b4) * **Concept Paper**: [https://blog.secured.finance/the-intersection-of-the-eurocurrency-and-cryptocurrency-markets-f933418ae349arrow-up-right](https://blog.secured.finance/the-intersection-of-the-eurocurrency-and-cryptocurrency-markets-f933418ae349) * **Medium**: [https://medium.com/@SecuredFiarrow-up-right](https://medium.com/@SecuredFi) * **Blog**: [https://blog.secured.finance/arrow-up-right](https://blog.secured.finance/) * **Twitter**: [https://twitter.com/Secured\_Fiarrow-up-right](https://twitter.com/Secured_Fi) * **Discord**: [https://discord.com/invite/3kytCrv3qYarrow-up-right](https://discord.com/invite/3kytCrv3qY) * **Youtube**: [https://www.youtube.com/@securedfinance\_officialarrow-up-right](https://www.youtube.com/@securedfinance_official) * **Galxe**: [https://galxe.com/securedfi/campaignsarrow-up-right](https://galxe.com/securedfi/campaigns) * **Guild**: [https://guild.xyz/securedfiarrow-up-right](https://guild.xyz/securedfi) [PreviousSecured Finance Points (SFP) v1chevron-left](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1) [NextMedia Kitchevron-right](https://docs.secured.finance/resources/media-kit) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Order Book System | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#overview) Overview ------------------------------------------------------------------------------------------------------------------ Secured Finance's Loan Market Platform incorporates an on-chain orderbook system, a pioneering application in the DeFi space. This system facilitates the trading of [Zero-Coupon bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) with a specific maturity date. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------------- An orderbook is an electronic list of buy and sell orders for Zero-Coupon bonds, organized by price level. It enhances transparency by providing visualized information on price, availability, depth of trade, and more. A borrow order refers to an order to borrow crypto assets, equivalent to selling a bond on our platform. After pledging sufficient collateral, you can place a sell order, selling a Zero-Coupon bond and receiving the equivalent cash upfront. You then owe the obligation to repay the money with interest at maturity. A lend order is an order to lend, equivalent to buying a bond. You buy a Zero-Coupon bond at a discount, which will be redeemable at par at expiration. A Zero-Coupon bond is a debt security that doesn't pay interest (coupons) but is traded at a deep discount, rendering profit at maturity when the bond is redeemed for its full face value. On our platform, bonds will be redeemable at 100. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------ Parameter Description Value Bond Par Value The value at which bonds are redeemed at maturity 100 Order Types Types of orders supported by the orderbook Market, Limit Order Sides Sides of the orderbook Borrow (Sell), Lend (Buy) Price Precision Decimal precision for bond prices 2 decimal places Minimum Order Size Smallest order that can be placed Varies by asset circle-info **Why is On-Chain Orderbook so difficult?** The on-chain Orderbook system is often perceived as inefficient due to high gas costs. As a result, many DeFi projects rely on the liquidity pool system (LP) which is a great financial innovation for gathering liquidity. However, the interest rate provided by the pool lacks composability and transparency. Secured Finance has successfully deployed an on-chain orderbook system using the 'lazy evaluation' method, which significantly reduces gas costs. Learn more details at '[Full On-Chain Orderbook system](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) ' at technical overview. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#examples) Examples ------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#example-1-placing-a-lend-order) Example 1: Placing a Lend Order A user wants to lend 1,000 USDC for a 3-month term at a 5% APR: 1. They navigate to the lending interface and select the 3-month maturity market 2. They choose to place a limit order to buy a Zero-Coupon bond 3. For a 5% APR on a 3-month term, they set their price at approximately 98.75 (calculated as: 100 / (1 + 0.05 × 0.25) = 98.75) 4. They specify the amount as 1,000 USDC 5. When the order is filled, they receive a Zero-Coupon bond that will be worth 1,000 USDC at maturity 6. At maturity, they automatically receive 1,000 USDC, earning approximately 12.5 USDC in interest ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#example-2-placing-a-borrow-order) Example 2: Placing a Borrow Order A borrower needs 5,000 USDC for 6 months and is willing to pay up to 6% APR: 1. After depositing sufficient collateral, they navigate to the borrowing interface 2. They select the 6-month maturity market 3. They choose to place a market order to sell a Zero-Coupon bond 4. For a 6% APR on a 6-month term, the price would be approximately 97.09 (calculated as: 100 / (1 + 0.06 × 0.5) = 97.09) 5. They specify the amount as 5,000 USDC 6. When the order is filled, they receive approximately 4,854.5 USDC upfront 7. At maturity, they will need to repay 5,000 USDC [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-does-the-orderbook-match-orders) How does the orderbook match orders? The orderbook matches orders based on price-time priority. The highest buy (lend) orders are matched with the lowest sell (borrow) orders. If multiple orders exist at the same price, they are matched in the order they were placed (first come, first served). ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#what-happens-if-my-order-is-not-filled-immediately) What happens if my order is not filled immediately? If your order is not filled immediately, it remains in the orderbook until it is either filled, canceled by you, or expires (if you set an expiration time). You can monitor the status of your orders in the "Open Orders" section of the platform. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#can-i-cancel-an-order-after-placing-it) Can I cancel an order after placing it? Yes, you can cancel any unfilled or partially filled order at any time. Once an order is filled, however, it becomes a position and cannot be canceled. You would need to close the position by taking an opposite position. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#whats-the-difference-between-market-and-limit-orders) What's the difference between market and limit orders? A market order is executed immediately at the best available price in the orderbook. A limit order is only executed at the specified price or better. Market orders provide immediate execution but may have price slippage, while limit orders give you price control but may not be filled immediately or at all. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-is-the-apr-calculated-from-bond-prices) How is the APR calculated from bond prices? For bonds with maturity less than 1 year: APR = (100/BondPrice - 1) × (365/DaysToMaturity) For example, a 3-month bond priced at 98.75 would have an APR of approximately 5%: (100/98.75 - 1) × (365/90) ≈ 0.05 or 5% [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------ * [Order Types](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type) * [Order Life Cycle](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition) * [Zero-Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) [PreviousCore Mechanicschevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics) [NextOrder Typechevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#examples) * [Example 1: Placing a Lend Order](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#example-1-placing-a-lend-order) * [Example 2: Placing a Borrow Order](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#example-2-placing-a-borrow-order) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#common-questions) * [How does the orderbook match orders?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-does-the-orderbook-match-orders) * [What happens if my order is not filled immediately?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#what-happens-if-my-order-is-not-filled-immediately) * [Can I cancel an order after placing it?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#can-i-cancel-an-order-after-placing-it) * [What's the difference between market and limit orders?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#whats-the-difference-between-market-and-limit-orders) * [How is the APR calculated from bond prices?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#how-is-the-apr-calculated-from-bond-prices) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Introduction | Secured Finance Docs Welcome to the Secured Finance Developer Portal, your comprehensive resource for building on top of Secured Finance's protocols. Whether you're a hackathon participant, a web2 developer exploring blockchain development, or a seasoned web3 developer, this portal provides the tools, documentation, and examples to help you integrate with our ecosystem. [hashtag](https://docs.secured.finance/developer-portal/introduction#what-youll-learn) What You'll Learn ------------------------------------------------------------------------------------------------------------- * How to query Secured Finance protocol data using our subgraphs * How to integrate with USDFC and Fixed-Rate Lending protocols using our SDKs * Best practices for building applications on top of Secured Finance * How to participate in our Bug Bounty program [hashtag](https://docs.secured.finance/developer-portal/introduction#key-components) Key Components -------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/introduction#api-reference) API Reference Our API Reference provides comprehensive documentation for querying data from our protocols using GraphQL through The Graph's subgraphs: * [Fixed-Rate Lending Subgraph](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph) - Query data from the Fixed-Rate Lending protocol > **Note:** The USDFC Subgraph is currently under development and not yet deployed. USDFC data is only available through the [USDFC SDK](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) > . ### [hashtag](https://docs.secured.finance/developer-portal/introduction#sdk-reference) SDK Reference Our SDK Reference provides detailed documentation for interacting with our protocols programmatically: * [USDFC SDK](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) - Integrate with the USDFC stablecoin protocol * [Fixed-Rate Lending SDK](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk) - Integrate with the Fixed-Rate Lending protocol ### [hashtag](https://docs.secured.finance/developer-portal/introduction#bug-bounty) Bug Bounty We maintain an active [Bug Bounty](https://docs.secured.finance/developer-portal/bug-bounty) program to incentivize security researchers to help us identify and fix vulnerabilities in our protocols. [hashtag](https://docs.secured.finance/developer-portal/introduction#getting-started) Getting Started ---------------------------------------------------------------------------------------------------------- If you're new to web3 development, we recommend starting with our [DeFi Starter Guide](https://docs.secured.finance/introduction/defi-starter-guide) to familiarize yourself with fundamental concepts. For experienced developers, you can dive directly into our API and SDK references to start building applications on top of our protocols. [hashtag](https://docs.secured.finance/developer-portal/introduction#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------- * [USDFC Stablecoin Documentation](https://docs.secured.finance/usdfc-stablecoin/overview) * [Fixed-Rate Lending Documentation](https://docs.secured.finance/fixed-rate-lending/overview) * [GitHub Repositoriesarrow-up-right](https://github.com/Secured-Finance) [PreviousFAQschevron-left](https://docs.secured.finance/fixed-rate-lending/faqs) [NextAPI Referencechevron-right](https://docs.secured.finance/developer-portal/api-reference) Last updated 10 months ago * [What You'll Learn](https://docs.secured.finance/developer-portal/introduction#what-youll-learn) * [Key Components](https://docs.secured.finance/developer-portal/introduction#key-components) * [API Reference](https://docs.secured.finance/developer-portal/introduction#api-reference) * [SDK Reference](https://docs.secured.finance/developer-portal/introduction#sdk-reference) * [Bug Bounty](https://docs.secured.finance/developer-portal/introduction#bug-bounty) * [Getting Started](https://docs.secured.finance/developer-portal/introduction#getting-started) * [Related Resources](https://docs.secured.finance/developer-portal/introduction#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Managing Collateral Effectively | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#prerequisites) Prerequisites ----------------------------------------------------------------------------------------------------------------------------------------- * An active Trove with FIL collateral * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) * Connected wallet with FIL for additional collateral (if adding) [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#overview) Overview ------------------------------------------------------------------------------------------------------------------------------- Managing your collateral effectively is crucial for maintaining a healthy Trove and avoiding liquidation. This guide will show you how to add or withdraw collateral, and how to determine the optimal collateral ratio for your risk tolerance. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-1-access-your-trove) Step 1: Access Your Trove ---------------------------------------------------------------------------------------------------------------------------------------------------------------- First, you need to access your existing Trove in the USDFC application. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Connect your wallet if not already connected 3. Go to the "Trove" section on the USDFC Dashboard page 4. Review your current collateral amount, debt, and collateral ratio ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-f40a5ebb9c2cca79f7f056e867e9786541df98bf%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=d7862155&sv=2) Trove dashboard showing current position details [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-2-select-adjust-trove) Step 2: Select "Adjust Trove" ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- To manage your collateral, you need to adjust your Trove. 1. Click on the "Adjust" button 2. This will open the Trove adjustment interface ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-ef5e5d54f5f634d2ba9003f350f1db4dfd92d02c%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=4a8bbf66&sv=2) "Adjust Trove" interface [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-3-add-or-withdraw-collateral) Step 3: Add or Withdraw Collateral ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Now you can add more collateral or withdraw some of your existing collateral. ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#to-add-collateral) To Add Collateral: 1. In the adjustment interface, locate the "Collateral" input field 2. Increase the amount of FIL from your current value 3. The system will automatically calculate your new collateral ratio 4. Adding collateral increases your collateral ratio and reduces liquidation risk ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-f7f7e72d7c4fc2e57c87bc8e3728aa01ae9a0c88%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=78afdc5f&sv=2) Screenshot of the interface for adding collateral ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#to-withdraw-collateral) To Withdraw Collateral: 1. In the adjustment interface, locate the "Collateral" input field 2. Decrease the amount of FIL from your current value 3. The system will automatically calculate your new collateral ratio 4. Ensure your new collateral ratio remains above the minimum required (110%) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-9216c0240f8c7ba246f6ff18dc0e3509bf9606a0%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=810710af&sv=2) Screenshot of the interface for withdrawing collateral [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-4-review-transaction-details) Step 4: Review Transaction Details ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Before confirming, review all transaction details carefully. 1. Check the collateral adjustment amount 2. Verify your new collateral ratio 3. Understand how this affects your liquidation risk 4. Review any fees that will be applied [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-5-confirm-and-execute) Step 5: Confirm and Execute -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Once you're satisfied with the details, you can proceed with the adjustment. 1. Click the "Confirm" button 2. Confirm the transaction in your wallet 3. Wait for the transaction to be processed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-f1ff214e5cb748a268b80bf4c5823dded8edd75b%252FScreenshot%25202025-05-11%2520at%25208.06.11.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=ebc5f834&sv=2) Screenshot of the wallet confirmation screen [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-6-verify-the-adjustment) Step 6: Verify the Adjustment ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ After the transaction is confirmed, verify that your collateral was adjusted successfully. 1. Check that your Trove details have been updated with the new collateral amount 2. Verify your new collateral ratio 3. If withdrawing collateral, confirm that the FIL has been added to your wallet balance ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-cba70f89c6b76fc1bd6cdc8863d9050eb0427b10%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=ada467fb&sv=2) Screenshot showing updated Trove details [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#understanding-collateral-ratios) Understanding Collateral Ratios ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#key-collateral-ratio-thresholds) Key Collateral Ratio Thresholds Threshold Value Description Minimum Collateral Ratio (MCR) 110% The absolute minimum ratio required to avoid liquidation Recovery Mode Threshold 150% When the system enters Recovery Mode if the Total Collateral Ratio falls below this Recommended Safe Ratio 200%+ A conservative ratio that provides a good buffer against price fluctuations ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#calculating-your-liquidation-price) Calculating Your Liquidation Price To calculate the FIL price at which your Trove would reach the minimum collateral ratio (110%): Liquidation Price\=Debt in USDFC×1.1Collateral in FIL\\text{Liquidation Price} = \\frac{\\text{Debt in USDFC} \\times 1.1}{\\text{Collateral in FIL}}Liquidation Price\=Collateral in FILDebt in USDFC×1.1​ \[Image: Visual representation of the liquidation price calculation\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#strategies-for-collateral-management) Strategies for Collateral Management --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#conservative-strategy-low-risk) Conservative Strategy (Low Risk) * Maintain a collateral ratio of 200% or higher * Add collateral proactively when FIL price starts to decline * Smaller USDFC minting relative to collateral value ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#balanced-strategy-medium-risk) Balanced Strategy (Medium Risk) * Maintain a collateral ratio between 150% and 200% * Monitor FIL price regularly and adjust as needed * Balance between capital efficiency and safety ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#aggressive-strategy-high-risk) Aggressive Strategy (High Risk) * Maintain a collateral ratio between 110% and 150% * Requires very active monitoring and quick reactions to price changes * Maximizes capital efficiency but has higher liquidation risk \[Image: Visual comparison of different collateral management strategies\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#next-steps) Next Steps ----------------------------------------------------------------------------------------------------------------------------------- * [Monitor your position](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) regularly to stay informed about your Trove's health * Consider [depositing USDFC into the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) to earn rewards * Learn about [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) and how it affects your Trove [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#troubleshooting) Troubleshooting --------------------------------------------------------------------------------------------------------------------------------------------- * **Cannot Withdraw Collateral**: Your withdrawal might push your collateral ratio below the minimum requirement * **Transaction Failed**: Ensure you have enough FIL for gas fees * **Collateral Not Showing**: Refresh the page or check your transaction history [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------------------------- **Q: How often should I adjust my collateral?** A: This depends on your risk tolerance and FIL price volatility. More volatile markets require more frequent adjustments. **Q: What happens if FIL price drops suddenly?** A: If the price drop causes your collateral ratio to fall below the minimum requirement (110%), your Trove may be liquidated. **Q: Can I add collateral without minting more USDFC?** A: Yes, you can add collateral without changing your debt amount to increase your collateral ratio. **Q: Is there a fee for adjusting my collateral?** A: Adding collateral only incurs gas fees. Withdrawing collateral may incur both gas fees and a small protocol fee. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#related-topics) Related Topics ------------------------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Liquidation](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/liquidation) * [Collateral Ratioarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/usdfc-stablecoin/getting-started/broken-reference/README.md) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousMinting USDFC Step-by-Stepchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/minting-usdfc-step-by-step) [NextMonitoring Your Positionchevron-right](https://docs.secured.finance/usdfc-stablecoin/getting-started/monitoring-your-position) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#overview) * [Step 1: Access Your Trove](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-1-access-your-trove) * [Step 2: Select "Adjust Trove"](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-2-select-adjust-trove) * [Step 3: Add or Withdraw Collateral](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-3-add-or-withdraw-collateral) * [To Add Collateral:](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#to-add-collateral) * [To Withdraw Collateral:](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#to-withdraw-collateral) * [Step 4: Review Transaction Details](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-4-review-transaction-details) * [Step 5: Confirm and Execute](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-5-confirm-and-execute) * [Step 6: Verify the Adjustment](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#step-6-verify-the-adjustment) * [Understanding Collateral Ratios](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#understanding-collateral-ratios) * [Key Collateral Ratio Thresholds](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#key-collateral-ratio-thresholds) * [Calculating Your Liquidation Price](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#calculating-your-liquidation-price) * [Strategies for Collateral Management](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#strategies-for-collateral-management) * [Conservative Strategy (Low Risk)](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#conservative-strategy-low-risk) * [Balanced Strategy (Medium Risk)](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#balanced-strategy-medium-risk) * [Aggressive Strategy (High Risk)](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#aggressive-strategy-high-risk) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Terms of Use | Secured Finance Docs file-pdf 256KB [Secured Finance - Terms of Use\_20250220.pdf](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-51e9aaaa0eb2e8b9bedd31b3c13895a64654e51f%2FSecured%20Finance%20-%20Terms%20of%20Use_20250220.pdf?alt=media) PDF downloadDownload[arrow-up-right-from-squareOpen](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-51e9aaaa0eb2e8b9bedd31b3c13895a64654e51f%2FSecured%20Finance%20-%20Terms%20of%20Use_20250220.pdf?alt=media) [PreviousRisk Disclaimerchevron-left](https://docs.secured.finance/resources/legal/risk-disclaimer) [NextPrivacy Policychevron-right](https://docs.secured.finance/resources/legal/privacy-policy) Last updated 4 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Bug Bounty | Secured Finance Docs [hashtag](https://docs.secured.finance/developer-portal/bug-bounty#bug-bounty-program) **Bug Bounty Program** ------------------------------------------------------------------------------------------------------------------ **USDFC Bug Bounty:** [https://r.xyz/bug-bounty/programs/usdfc-bug-bounty-by-secured-financearrow-up-right](https://r.xyz/bug-bounty/programs/usdfc-bug-bounty-by-secured-finance) [PreviousUSDFC SDKchevron-left](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) [NextOverviewchevron-right](https://docs.secured.finance/community/community) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Bridge | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#prerequisites) Prerequisites --------------------------------------------------------------------------------------------------------------------------------- * A connected wallet with assets to transfer * Basic understanding of blockchain networks * Access to the Secured Finance platform [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#overview) Overview ----------------------------------------------------------------------------------------------------------------------- The [**Bridge tab**arrow-up-right](https://app.secured.finance/bridge/) lets you easily transfer assets between different blockchain networks directly within the Secured Finance platform. Powered by **Axelar**, it provides a simple and secure way to perform cross-chain swaps without the need for external exchanges. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#what-you-can-do-with-the-bridge) What You Can Do with the Bridge --------------------------------------------------------------------------------------------------------------------------------------------------------------------- * **Cross-Chain Swaps**: Exchange tokens from one blockchain network to another (e.g., swap USDC on Ethereum for FIL on the Filecoin network) * **Obtain Native Tokens**: Acquire native tokens required for transaction fees on other networks, such as FIL for the Filecoin network or ETH for Ethereum * **Expand Your Portfolio**: Access assets and opportunities available on multiple blockchain networks [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-1-connect-your-wallet) Step 1: Connect Your Wallet ------------------------------------------------------------------------------------------------------------------------------------------------------------ 1. Navigate to the [Bridge tabarrow-up-right](https://app.secured.finance/bridge/) 2. Click **Connect Wallet** at the top right corner 3. Select your wallet provider (MetaMask, WalletConnect, etc.) 4. Approve the connection request in your wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-2-select-networks-and-tokens) Step 2: Select Networks and Tokens -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. In the **From Network** dropdown, choose the blockchain and token you are swapping from (e.g., Ethereum and USDC) 2. In the **To Network** dropdown, select the destination blockchain and token you want to receive (e.g., Filecoin and FIL) 3. Ensure both networks are supported by your wallet ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fbridge-interface.png&width=768&dpr=3&quality=100&sign=6bc842cf&sv=2) Bridge Interface [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-3-enter-the-amount) Step 3: Enter the Amount ------------------------------------------------------------------------------------------------------------------------------------------------------ 1. Specify the amount of the token you wish to swap in the input field 2. Review the estimated amount you will receive after fees 3. Ensure you have sufficient balance in your wallet [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-4-approve-token-use) Step 4: Approve Token Use -------------------------------------------------------------------------------------------------------------------------------------------------------- 1. If this is your first time using this token with the bridge, click **Give Permission to Use Token** 2. Confirm the approval transaction in your wallet 3. Wait for the approval transaction to be confirmed on the blockchain [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-5-review-and-confirm) Step 5: Review and Confirm ---------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Check the transaction details, including: * Estimated time for completion * Network fees * Exchange rate 2. Click **Swap** to initiate the transfer 3. Confirm the transaction in your wallet 4. Wait for the transaction to be processed [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-6-verify-receipt) Step 6: Verify Receipt -------------------------------------------------------------------------------------------------------------------------------------------------- 1. Once completed, check your wallet on the destination network 2. Confirm the arrival of your tokens 3. The transaction history will be available in the Bridge tab circle-info Need more detailed guidance? Here is the step-by-step Medium article: [**How to Obtain Filecoin Using Cross-Chain Swap**arrow-up-right](https://medium.com/secured-finance/how-to-obtain-filecoin-using-cross-chain-swap-4364eeeacbbe) . [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#next-steps) Next Steps --------------------------------------------------------------------------------------------------------------------------- After successfully bridging assets, you might want to: * [Deposit your assets as collateralarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/borrowing-assets.md) * [Start lending your assetsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/lending-assets.md) * [Explore trading opportunitiesarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/trading/README.md) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#troubleshooting) Troubleshooting ------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#transaction-pending-for-too-long) Transaction Pending for Too Long If your transaction has been pending for an extended period: * Check the network status for congestion * Verify the transaction status on the blockchain explorer * Contact support if the issue persists after 30 minutes ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#tokens-not-received) Tokens Not Received If you don't see your tokens in the destination wallet: * Ensure you're connected to the correct network in your wallet * Check the transaction status on Axelar Explorer * Allow up to 15 minutes during periods of high network congestion * Verify that your wallet supports the token you're receiving ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#insufficient-gas-fees) Insufficient Gas Fees If you encounter gas fee errors: * Ensure you have enough native tokens (ETH, FIL, etc.) to cover gas fees * Try reducing the amount you're swapping to leave room for gas fees * Consider bridging during off-peak hours when gas fees are lower [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#technical-details) Technical Details ----------------------------------------------------------------------------------------------------------------------------------------- The Bridge feature utilizes **Axelar's cross-chain technology** to ensure secure and efficient asset transfers between supported networks. The process involves: 1. Locking your tokens in a smart contract on the source chain 2. Generating proof of this lock 3. Verifying the proof on the destination chain 4. Minting or releasing equivalent tokens on the destination chain This process typically completes within a few minutes but may vary based on network conditions. [PreviousPortfoliochevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio) [NextPointschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#overview) * [What You Can Do with the Bridge](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#what-you-can-do-with-the-bridge) * [Step 1: Connect Your Wallet](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-1-connect-your-wallet) * [Step 2: Select Networks and Tokens](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-2-select-networks-and-tokens) * [Step 3: Enter the Amount](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-3-enter-the-amount) * [Step 4: Approve Token Use](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-4-approve-token-use) * [Step 5: Review and Confirm](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-5-review-and-confirm) * [Step 6: Verify Receipt](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#step-6-verify-receipt) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#troubleshooting) * [Transaction Pending for Too Long](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#transaction-pending-for-too-long) * [Tokens Not Received](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#tokens-not-received) * [Insufficient Gas Fees](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#insufficient-gas-fees) * [Technical Details](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge#technical-details) sun-brightdesktopmoon sun-brightdesktopmoon --- # ZC Bond Collateral | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#overview) Overview -------------------------------------------------------------------------------------------------------------------- At Secured Finance, we offer our users the innovative opportunity to use Zero Coupon Bond (ZC) as collateral for borrowing. This feature allows participants to leverage yield spread trading while enjoying the benefits of lending and borrowing on our platform. However, it's important to understand the specific conditions and risks associated with using ZC as collateral. circle-info Users' ZC bonds will be automatically used as collateral until the usage hits 80%. After that, cash collateral will be used. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#what-youll-learn) What You'll Learn ------------------------------------------------------------------------------------------------------------------------------------- * How Zero-Coupon Bonds can be used as collateral for borrowing * How collateral valuation and utilization works with ZC Bonds * How the Loan-to-Value (LTV) calculation adjusts for ZC Bond collateral * The liquidation process and risk management for ZC Bond collateral [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#key-components) Key Components -------------------------------------------------------------------------------------------------------------------------------- * [**Collateral Valuation**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#collateral-valuation) : How ZC Bonds are valued as collateral * [**ZC Collateral Utilization**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#zc-collateral-utilization) : How the system prioritizes ZC Bonds as collateral * [**Liquidation Process**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#liquidation-process-with-zc-collateral) : How liquidation works with ZC Bond collateral * [**Risk Management**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#risk-management) : Important considerations when using ZC Bonds as collateral * [**Case Study**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study) : Practical examples of using ZC Bonds as collateral ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#collateral-valuation) **Collateral Valuation** When leveraging Zero Coupon Bonds (ZCs) as collateral on our platform, the valuation haircut is strategically set at 20% for loans in the same currency as the ZC. Conversely, for loans in a currency different from that of the ZC, a 100% haircut is currently applied. circle-info We are actively exploring adjustments to this policy, aiming to reduce the haircut for different currency borrowings in the future. Factors such as liquidity, volatility, and correlation between currencies will guide these adjustments. Importantly, these potential changes may also be subject to community voting, allowing our users to have a direct impact on future collateral valuation policies. This nuanced approach to collateral valuation is essential for users to understand as they devise their trading strategies and manage their collateral assets effectively, with the added dimension of community-driven governance enhancing the platform's adaptability and responsiveness to user needs. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#understanding-collateral-utilization-ratio-and-ltv-with-zero-coupon-bonds) Understanding Collateral Utilization Ratio and LTV with Zero Coupon Bonds Leveraging Zero Coupon Bonds (ZCs) as collateral on our platform requires an understanding of both the collateral utilization ratio and the Loan-to-Value (LTV) ratio, especially for loans in the same currency as the ZC. Our approach aims to maximize the efficiency of your assets while maintaining a prudent risk profile. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#zc-collateral-utilization) **ZC Collateral Utilization** When you secure a loan in the same currency as your ZC, our system implements a specialized collateral utilization strategy. If you're borrowing against a ZC that's denominated in the same currency, the platform prioritizes this ZC as your primary collateral. This prioritization allows for the ZC to be utilized first, up to 80% of its Present Value (PV), before any cash collateral is considered. This method ensures that your ZC assets are leveraged effectively, enhancing your borrowing capabilities. Our platform display the ZC utilization ratio for each currency by the formulaic below. ZC Utilization\=ObligationTotal ZC\\text{ZC Utilization} = \\frac{\\text{Obligation}}{\\text{Total ZC}}ZC Utilization\=Total ZCObligation​ #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#adjusted-loan-to-value-ltv-calculation-with-zc-collateral) **Adjusted Loan-to-Value (LTV) Calculation with ZC Collateral** The standard formula for calculating the Loan-to-Value (LTV) ratio is: LTV\=ObligationCash CollateralLTV = \\frac{\\text{Obligation}}{\\text{Cash Collateral}}LTV\=Cash CollateralObligation​ However, when the obligation currency matches the currency of the ZC you own, the LTV calculation adjusts to incorporate the ZC collateral. The adjusted formula becomes: LTV (with ZC collateral)\=ObligationCash Collateral+Consumed ZC Collateral\\text{LTV (with ZC collateral)} = \\frac{\\text{Obligation}}{\\text{Cash Collateral} + \\text{Consumed ZC Collateral}}LTV (with ZC collateral)\=Cash Collateral+Consumed ZC CollateralObligation​ In this formula, ZC Collateral is considered alongside cash collateral. We aggregate the cash and the Consumed ZC amount to cover the obligation. The system is designed to cover 125% of the obligation and utilize up to 80% of the total ZC amount. > Even without pledging any Cash Collateral, you can still borrow in the same currency to engage in Yield Spread Strategy. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#liquidation-process-with-zc-collateral) **Liquidation Process with ZC collateral** In the event of a liquidation trigger, liquidators have the flexibility to choose the currency of both the obligation and the collateral, which may include the ZC. It's important to note that even if the Loan-to-Value (LTV) threshold is breached due to fluctuations in **one currency**, your position may be subject to liquidation in **another currency** along with the collateral. This mechanism underscores the importance of vigilant collateral management. Users must be aware that the liquidation process can lead to scenarios where the collateral, including ZC, is liquidated in a currency different from the one that triggered the LTV threshold. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#risk-management) **Risk Management** Utilizing ZC as collateral offers a unique avenue for capitalizing on yield spreads. However, it comes with its set of risks, primarily due to price fluctuations and the potential for liquidation in a different currency. We urge our users to exercise caution and continuously monitor their collateral positions to mitigate risks and avoid unintended liquidations. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------------- * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [PreviousDiscount Factorchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor) [NextZC Collateral Case Studychevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#key-components) * [Collateral Valuation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#collateral-valuation) * [Understanding Collateral Utilization Ratio and LTV with Zero Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#understanding-collateral-utilization-ratio-and-ltv-with-zero-coupon-bonds) * [Liquidation Process with ZC collateral](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#liquidation-process-with-zc-collateral) * [Risk Management](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#risk-management) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Advanced Topics | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics#overview) Overview ------------------------------------------------------------------------------------------------- This section covers advanced concepts and mechanisms of the Fixed-Rate Lending Protocol that build upon the core functionality. These topics provide deeper insights into how the protocol maintains stability, handles edge cases, and implements sophisticated economic mechanisms. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics#what-youll-learn) What You'll Learn ------------------------------------------------------------------------------------------------------------------ * How Market Dynamics like Auto-Rolling and Itayose price discovery work * How the On-Chain Orderbook is implemented using Red-Black Tree data structures * How Safety Measures like Circuit Breaker protect the protocol * How Zero-Coupon Bond Collateral functions within the system * Advanced economic concepts like APR vs. APY and Discount Factors [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics#key-components) Key Components ------------------------------------------------------------------------------------------------------------- * [**Market Dynamics**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) : Advanced features like Auto-Rolling and Itayose price discovery * [**Orderbook Deep Dive**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) : Technical implementation of the on-chain orderbook * [**Safety Measures**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) : Protective mechanisms like Circuit Breaker * [**ZC Bond Collateral**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral) : Using Zero-Coupon Bonds as collateral * [**Economic Concepts**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy) : Advanced financial concepts like APR vs. APY and Discount Factors [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------- * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) * [FAQs](https://docs.secured.finance/fixed-rate-lending/faqs) [PreviousProtocol Feeschevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees) [NextAPR vs APYchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Getting Started | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#overview) Overview ------------------------------------------------------------------------------------------------- The Getting Started section provides comprehensive tutorials and guides to help users understand and navigate the Fixed-Rate Lending Protocol. Whether you're new to DeFi or an experienced user, these resources will help you make the most of the platform's features and capabilities. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#what-youll-learn) What You'll Learn ------------------------------------------------------------------------------------------------------------------ * How to set up your wallet and connect to the platform * How to deposit assets and manage collateral * How to lend and borrow assets at fixed rates * How to manage your positions effectively * How to navigate the platform's interface and features [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#key-components) Key Components ------------------------------------------------------------------------------------------------------------- * [**Lending Assets**](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) : Step-by-step guide to lending assets on the platform * [**Borrowing Assets**](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets) : Comprehensive tutorial on borrowing with collateral * [**Managing Positions**](https://docs.secured.finance/fixed-rate-lending/getting-started/managing-positions) : Learn how to monitor and adjust your positions * [**Platform Guide**](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide) : Detailed overview of the platform's interface and features * [Trading](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading) : Guide to the trading interface * [Markets](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets) : Information on available markets * [Portfolio](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/portfolio) : Managing your assets and positions * [Bridge](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge) : Moving assets between blockchains * [Points](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points) : Earning and using platform points [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#quick-start-guides) Quick Start Guides --------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#how-to-deposit) How to Deposit ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-76d49046f7c6b56938623f9694b26dede95c314f%252FDeposit-x1.7mp4-ezgif.com-video-to-gif-converter.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=24309c25&sv=2) How to Deposit 1. Go to Secured Finance WebApps and open [Portfolio Tabarrow-up-right](https://app.secured.finance/portfolio/) 2. Connect Your Wallet 3. Click the Deposit Button!!! ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#how-to-provide-liquidity-on-orderbook) How to Provide Liquidity on Orderbook ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-53113e37050ee8d046bdc47c4b5314005e019358%252FLPonOrderbookx1.5-ezgif.com-video-to-gif-converter.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=82213c39&sv=2) How to Provide Liquidity on Orderbook 1. Go to Secured Finance [Trading Appsarrow-up-right](https://app.secured.finance/) 2. Set the Condition * Choose Currency and Maturity * Lend or Borrow * Limit order or Market order * Price (APR) * Order Amount 3. Click 'Place Order'!!! [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#defi-apps-onboarding-guide) DeFi Apps Onboarding Guide ------------------------------------------------------------------------------------------------------------------------------------- This guide will walk you through the steps you need to take to start using DeFi apps. You'll learn how to set up your MetaMask wallet, connect it to DeFi apps, and get test ETH from Sepolia faucets. 1. [Setting up MetaMask Walletarrow-up-right](https://blog.secured.finance/setting-up-metamask-wallet-417336bfc9ce) 2. [Connecting Your Walletarrow-up-right](https://blog.secured.finance/connecting-your-wallet-c7d3c624d364) 3. [Getting Test ETH from Goerli Faucetsarrow-up-right](https://blog.secured.finance/getting-test-eth-from-goerli-faucets-c29cce5a17b0) (We have moved to [Sepoliaarrow-up-right](https://blog.secured.finance/introducing-secured-finance-to-sepolia-4c93c8c3d79c) !) 4. [Getting Test ETH from Sepolia Faucetsarrow-up-right](https://blog.secured.finance/getting-test-eth-from-sepolia-faucets-5aafd96ccdbe) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#secured-finance-testnet-user-guide) Secured Finance Testnet User Guide ----------------------------------------------------------------------------------------------------------------------------------------------------- This guide offers a concise walkthrough of the platform, covering key aspects from preparing test tokens and managing collateral to executing transactions. It also delves into advanced trading strategies that are unique to Secured Finance. 1. [Preparing Test Tokens for Practicearrow-up-right](https://blog.secured.finance/preparing-test-tokens-to-play-bd93c7232dde) 2. [Collateral Managementarrow-up-right](https://blog.secured.finance/collateral-management-e82fa98c53f0) 3. [Trading at Itayose (Pre-Open) Order Bookarrow-up-right](https://blog.secured.finance/trading-at-pre-open-order-book-itayose-f9ae35663667) 4. [Placing Limit Orderarrow-up-right](https://blog.secured.finance/placing-limit-order-aeb81431af6f) 5. [Add/Reduce or Unwind Positionarrow-up-right](https://blog.secured.finance/add-reduce-or-unwind-position-266633e74978) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------- * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) : Understand the fundamental concepts of the protocol * [Advanced Topics](https://docs.secured.finance/fixed-rate-lending/advanced-topics) : Explore advanced features and technical details * [Blogarrow-up-right](https://blog.secured.finance/) : Additional tutorials and platform updates [PreviousConcept Paperchevron-left](https://docs.secured.finance/fixed-rate-lending/overview/concept-paper) [NextLending Assetschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/getting-started#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/getting-started#key-components) * [Quick Start Guides](https://docs.secured.finance/fixed-rate-lending/getting-started#quick-start-guides) * [How to Deposit](https://docs.secured.finance/fixed-rate-lending/getting-started#how-to-deposit) * [How to Provide Liquidity on Orderbook](https://docs.secured.finance/fixed-rate-lending/getting-started#how-to-provide-liquidity-on-orderbook) * [DeFi Apps Onboarding Guide](https://docs.secured.finance/fixed-rate-lending/getting-started#defi-apps-onboarding-guide) * [Secured Finance Testnet User Guide](https://docs.secured.finance/fixed-rate-lending/getting-started#secured-finance-testnet-user-guide) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/getting-started#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # SDK Reference | Secured Finance Docs Secured Finance provides JavaScript SDKs to interact with our protocols programmatically. This section documents how to use these SDKs to integrate with our protocols in your applications. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#what-youll-learn) What You'll Learn -------------------------------------------------------------------------------------------------------------- * How to integrate with the USDFC stablecoin protocol * How to integrate with the Fixed-Rate Lending protocol * Examples of common SDK operations * Best practices for using our SDKs [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#key-components) Key Components --------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#sdks) SDKs Secured Finance maintains SDKs for each of its protocols: * [USDFC SDK](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) - For interacting with the USDFC stablecoin protocol * [Fixed-Rate Lending SDK](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk) - For interacting with the Fixed-Rate Lending protocol ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#features) Features Our SDKs provide comprehensive functionality for interacting with our protocols: * **Read Operations**: Query protocol state, user positions, and market data * **Write Operations**: Execute transactions such as creating positions, placing orders, and managing collateral * **Event Handling**: Subscribe to protocol events for real-time updates * **Type Safety**: Fully typed interfaces for improved developer experience [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#getting-started) Getting Started ----------------------------------------------------------------------------------------------------------- If you're new to our SDKs, check out the individual SDK documentation pages for installation instructions and basic usage examples. If you're already familiar with JavaScript development, you can jump directly to the specific SDK documentation. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------- * [API Reference](https://docs.secured.finance/developer-portal/api-reference) * [GitHub Repositoriesarrow-up-right](https://github.com/Secured-Finance) * [NPM Packagesarrow-up-right](https://www.npmjs.com/org/secured-finance) [PreviousQuery Exampleschevron-left](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples) [NextFixed-Rate Lending SDKchevron-right](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk) Last updated 10 months ago * [What You'll Learn](https://docs.secured.finance/developer-portal/sdk-reference#what-youll-learn) * [Key Components](https://docs.secured.finance/developer-portal/sdk-reference#key-components) * [SDKs](https://docs.secured.finance/developer-portal/sdk-reference#sdks) * [Features](https://docs.secured.finance/developer-portal/sdk-reference#features) * [Getting Started](https://docs.secured.finance/developer-portal/sdk-reference#getting-started) * [Related Resources](https://docs.secured.finance/developer-portal/sdk-reference#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Secured Finance Points (SFP) v2 | Secured Finance Docs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-38be2fc76427b6e8297ac982c7fca4e595a6ba3b%252FPoints%2520V2.jpg%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=38f18a0&sv=2) [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#what-is-secured-finance-points-sfp-v2) What is Secured Finance Points (SFP) v2? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Secured Finance Points (SFP) v2 is a simplified and user-friendly reward system designed to enhance user experience while reflecting individual contributions to the Secured Finance Protocol. These electronic points serve as a versatile metric to quantify user engagement, determine community rankings, and allocate rewards in a transparent and equitable manner. By streamlining the system, SFP v2 ensures a seamless and rewarding experience for all participants. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#when-is-the-sfp-launch) **When is the SFP launch?** -------------------------------------------------------------------------------------------------------------------------------------------------- The point system pre-launch phase started on the Filecoin blockchain on **June 19, 2024**, at 12:00 AM (UTC). The global launch followed on **June 28, 2024**, at 12:00 AM (UTC), expanding to Ethereum, Arbitrum, Avalanche, and Polygon zkEVM. The updated **v2 system** will be implemented starting **December 27, 2024** at 12:00 AM(UTC). Accumulated points will remain intact, and new points will be added to the existing totals. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#sfp-and-sfc) SFP and SFC ----------------------------------------------------------------------------------------------------------------------- **SFP**: Non-transferable points with no economic value, representing user activities and contributions. **SFC**: Governance tokens distributed periodically, using SFP as a reference for reward calculations. * Initially, **1% of the total SFC supply** is allocated for airdrops. * This allocation can increase to: * **2%** if the protocol's TVL reaches **$50M**. * **3%** if TVL reaches **$100M**. Original contributors from early campaigns will be rewarded separately with SFC tokens, acknowledging their foundational support. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#how-to-earn-sfp) How to earn SFP? -------------------------------------------------------------------------------------------------------------------------------- SFP can be earned through various activities within the Secured Finance ecosystem: * Increasing TVL. * Providing order-book liquidity. * Introducing new users via referrals. * Logging in daily to the platform. Visit the [**Points Dashboard**arrow-up-right](https://app.secured.finance/points/) to track your points, rankings, and referral activit [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#points-dashboard-page) Points Dashboard Page ------------------------------------------------------------------------------------------------------------------------------------------- The [Points Dashboardarrow-up-right](https://app.secured.finance/points) is designed to monitor earned points from various activities and quickly identify tasks for user contributions from active quests. Users can see their points, ranking, a referral link, and active quests on the dashboard. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-219dfc336da347a3f5c680a5849cf75389720a3e%252FScreenshot%25202024-12-27%2520at%25202.06.59%25E2%2580%25AFPM.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=5ff255be&sv=2) Points Dashboard and Leaderboard [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#points-calculations) Points Calculations --------------------------------------------------------------------------------------------------------------------------------------- Secured Finance has introduced a points system to quantify and reward user contributions to the ecosystem's success. Points can be earned through five primary activities: Deposits, Limit Orders, Active Positions, Referrals, and Daily Login. As new products and features are added, additional ways to earn points may also emerge. The points accumulated are directly tied to future airdrops. circle-info Points are given by 12 hour observations, with fractional points rounded (0.4 -> 0, 0.5 -> 1). ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-1.-deposit-points) **1\. Deposit Points**: * **Purpose**: Rewards users for deposits, which provide the foundation for protocol liquidity. * **Earning Method**: **1 point per $1 deposited per 24 hours**. ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-2.-limit-order-points) **2\. Limit Order Points**: * **Purpose**: Incentivizes users to provide order-book liquidity and improve market efficiency. * **Earning Method**: **2 points per $1 per 24 hours**, for orders placed within **20% of the Mark Price**. * **Eligibility**: No points are awarded for orders placed beyond 20% of the Mark Price. circle-info Limit order between 64.00 to 96.00 will be eligible for the points when the mark prcie is 80.00 (picture below) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-0234dbd528bf734b2848024c404b57b5a66157cf%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=dadbb26&sv=2) Example case for Mark Price of 80.00 ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-3.-active-position-points) **3\. Active Position Points**: * **Purpose**: Rewards users for maintaining active positions, which contribute to ecosystem growth. * **Earning Method**: **2 points per $1 per 24 hours**, irrespective of position duration. ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-4.-referral-points) 4\. Referral Points: * **Purpose**: Encourages user referrals to grow the community. * **Referrer Benefits**: * Earn **5%** of the points earned by referred users. * **New User Benefits**: * Receive **50 welcome points** when joining via a referral link. * Earn a **5% bonus** on all points earned. ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-5.-daily-login-points) 5\. Daily Login Points: * **Purpose**: Encourages regular engagement with the platform. * **Earning Method**: **10 points per day** for logging in and connecting your wallet. [PreviousSecured Finance Coin (SFC)chevron-left](https://docs.secured.finance/community/tokenomics/secured-finance-coin-sfc) [NextSecured Finance Points (SFP) v1chevron-right](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1) Last updated 1 year ago * [What is Secured Finance Points (SFP) v2?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#what-is-secured-finance-points-sfp-v2) * [When is the SFP launch?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#when-is-the-sfp-launch) * [SFP and SFC](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#sfp-and-sfc) * [How to earn SFP?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#how-to-earn-sfp) * [Points Dashboard Page](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#points-dashboard-page) * [Points Calculations](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#points-calculations) * [1\. Deposit Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-1.-deposit-points) * [2\. Limit Order Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-2.-limit-order-points) * [3\. Active Position Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-3.-active-position-points) * [4\. Referral Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-4.-referral-points) * [5\. Daily Login Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2#id-5.-daily-login-points) sun-brightdesktopmoon sun-brightdesktopmoon --- # Redeeming USDFC | Secured Finance Docs [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#prerequisites) Prerequisites ------------------------------------------------------------------------------------------------------------------------- * USDFC tokens in your wallet * Access to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) * Connected wallet with enough FIL for gas fees * Understanding of repayment with trove adjustments * Understanding of redemption mechanics and fees [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#overview) Overview --------------------------------------------------------------------------------------------------------------- Redemption is a process that allows you to exchange your USDFC for FIL collateral at face value (1 USDFC = $1 worth of FIL). This mechanism helps maintain the USDFC peg to the US dollar. This guide will walk you through the redemption process and help you understand when redemption is beneficial. circle-exclamation Repayment is adjusting your trove. However, the redemption is adjusting 3rd party's lowest collateral trove. To avoid getting redemption, please watch 'Debt in front' amount and increase the collateral ratio. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-1-access-the-redemption-feature) Step 1: Access the Redemption Feature ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ First, you need to navigate to the redemption section in the USDFC application. 1. Navigate to the [USDFC applicationarrow-up-right](https://app.usdfc.net/) 2. Connect your wallet if not already connected 3. Locate the "Redemption" page in the "More" tab in the USDFC application ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-9ebbee1f41d9839af273a4d9075bd3004e6ff4ac%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=cdf4562f&sv=2) The Redemption page location in the "More" tab [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-2-review-redemption-information) Step 2: Review Redemption Information ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Before proceeding, review the current redemption information. 1. Check the current redemption fee (variable based on the base rate) 2. Understand which Troves will be affected by your redemption 3. Review the current FIL price and calculate how much FIL you'll receive ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-3a6efebb537d34eabdd700b5c4f4915fc6e4e8b0%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=6be9149a&sv=2) Screenshot of the redemption information page [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-3-enter-redemption-amount) Step 3: Enter Redemption Amount ------------------------------------------------------------------------------------------------------------------------------------------------------------ Now you can specify how much USDFC you want to redeem. 1. Enter the amount of USDFC you want to redeem 2. The system will calculate the amount of FIL you will receive based on the current FIL price 3. Review the redemption fee that will be applied 4. Understand which Troves will be affected (redemptions start from the lowest collateral ratio Troves) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-117c26a6f53008250d2be7ab4be49474cb2d4805%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=b35c707b&sv=2) The lowest Collateral Ratio Troves get redeemed [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-4-review-transaction-details) Step 4: Review Transaction Details ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Before confirming, review all transaction details carefully. 1. Check the USDFC amount you're redeeming 2. Verify the FIL amount you'll receive 3. Review the redemption fee 4. Understand the gas costs for the transaction ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-8142bae874d4ca249a82d09c5bb2d46ce59e0f15%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=109c6fd&sv=2) The Redemption section shows all relevant details [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-5-confirm-and-execute-redemption) Step 5: Confirm and Execute Redemption -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Once you're satisfied with the details, you can proceed with the redemption. 1. Click the "Confirm" button 2. Confirm the transaction in your wallet 3. Wait for the transaction to be processed on the blockchain ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-7460de32d935328e6e6ad6f431a1d7c73c135daa%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=7fa6a56f&sv=2) Screenshot showing updated wallet balances after redemption \[Image: Screenshot of the confirmation screen with the "Redeem" button highlighted\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-6-verify-redemption) Step 6: Verify Redemption ------------------------------------------------------------------------------------------------------------------------------------------------ After the transaction is confirmed, verify that your redemption was successful. 1. Check that your USDFC balance has decreased by the redeemed amount 2. Verify that the FIL has been added to your wallet balance 3. Review the transaction details in your wallet history or on a blockchain explorer ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-278924cb0e19dd2159519691b3fe835dcf0e4c57%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=c4f3e162&sv=2) Lowest Collateral Ratio Trove's FIL Collateral and USDFC Debt was reduced [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#understanding-redemption-mechanics) Understanding Redemption Mechanics ------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#how-redemption-works) How Redemption Works 1. When you redeem USDFC, the system identifies Troves starting from the lowest collateral ratio 2. Your USDFC is used to repay the debt of these Troves 3. In return, you receive an equivalent value of FIL collateral (minus the redemption fee) 4. This process continues until your redemption amount is fulfilled or no more Troves can be redeemed from ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#redemption-fee) Redemption Fee The redemption fee is variable and depends on the current base rate: Redemption Fee\=Base Rate+Redemption Fee Multiplier\\text{Redemption Fee} = \\text{Base Rate} + \\text{Redemption Fee Multiplier}Redemption Fee\=Base Rate+Redemption Fee Multiplier The base rate increases with each redemption and decays over time, which helps prevent large-scale redemptions that could destabilize the system. \[Image: Graph showing how the base rate changes with redemptions\] ### [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#when-to-redeem) When to Redeem Redemption is most beneficial in the following scenarios: 1. When USDFC is trading below its $1 peg (arbitrage opportunity) 2. When you want to exit the USDFC system entirely 3. When you believe FIL price will increase and want to acquire it at the current price \[Image: Decision flowchart for when to consider redemption\] [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#next-steps) Next Steps ------------------------------------------------------------------------------------------------------------------- * Consider [depositing USDFC into the Stability Pool](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) as an alternative to redemption * Learn about [managing collateral effectively](https://docs.secured.finance/usdfc-stablecoin/getting-started/managing-collateral-effectively) if you have your own Trove * Explore other ways to use your USDFC in the ecosystem [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#troubleshooting) Troubleshooting ----------------------------------------------------------------------------------------------------------------------------- * **Transaction Failed**: Ensure you have enough FIL for gas fees * **Cannot Redeem**: There may not be enough Troves available for redemption, or the system might be in Recovery Mode * **High Redemption Fee**: The base rate might be elevated due to recent redemptions; consider waiting for it to decay [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------- **Q: Can I redeem any amount of USDFC?** A: Yes, but smaller amounts may not be cost-effective due to gas fees and the redemption fee. **Q: Which Troves are affected by my redemption?** A: Redemptions start from the Troves with the lowest collateral ratios and move upward. **Q: Is there a waiting period for redemption?** A: No, redemptions can be processed immediately, but the redemption fee increases with each redemption to prevent large-scale redemptions in a short period. **Q: Can redemptions be blocked?** A: Yes, redemptions are disabled during Recovery Mode to protect the system's stability. [hashtag](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#related-topics) Related Topics --------------------------------------------------------------------------------------------------------------------------- * [The Trove System](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/the-trove-system) * [Redemption](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/redemption) * [Protocol Fees](https://docs.secured.finance/usdfc-stablecoin/core-mechanics/protocol-fees) * [Recovery Mode](https://docs.secured.finance/usdfc-stablecoin/advanced-topics/recovery-mode) [PreviousUsing the Stability Poolchevron-left](https://docs.secured.finance/usdfc-stablecoin/getting-started/using-the-stability-pool) [NextCore Mechanicschevron-right](https://docs.secured.finance/usdfc-stablecoin/core-mechanics) Last updated 9 months ago * [Prerequisites](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#prerequisites) * [Overview](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#overview) * [Step 1: Access the Redemption Feature](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-1-access-the-redemption-feature) * [Step 2: Review Redemption Information](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-2-review-redemption-information) * [Step 3: Enter Redemption Amount](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-3-enter-redemption-amount) * [Step 4: Review Transaction Details](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-4-review-transaction-details) * [Step 5: Confirm and Execute Redemption](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-5-confirm-and-execute-redemption) * [Step 6: Verify Redemption](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#step-6-verify-redemption) * [Understanding Redemption Mechanics](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#understanding-redemption-mechanics) * [How Redemption Works](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#how-redemption-works) * [Redemption Fee](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#redemption-fee) * [When to Redeem](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#when-to-redeem) * [Next Steps](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#next-steps) * [Troubleshooting](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#troubleshooting) * [Common Questions](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#common-questions) * [Related Topics](https://docs.secured.finance/usdfc-stablecoin/getting-started/redeeming-usdfc#related-topics) sun-brightdesktopmoon sun-brightdesktopmoon --- # Fixed Maturity | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#overview) Overview ------------------------------------------------------------------------------------------------------------------------------- Secured Finance's Loan Market Platform operates on a Fixed Maturity Standard, with up to eight distinct order books each representing a unique time horizon. These range from 3 months to 2 years, with a maturity gap of three months. Each order book exists until its maturity, with the duration shortening day by day. All currencies adhere to the same "Maturity". [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------------------------------- The Fixed Maturity Standard provides a structured approach to loan terms with eight distinct orderbooks representing different time horizons: ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2Ffixed-rate-lending%2F.gitbook%2Fassets%2Ffixedmaturity.gif&width=768&dpr=3&quality=100&sign=a03918aa&sv=2) Fixed Maturity Standard of 8 distinct order books ranging from 3 months to 2 years. The maturity of our Loan Market is set on the **last Friday of the contract month** every March, June, September, and December. This convention aligns with the listed future market, providing maximum utility to our users for reference and hedging purposes. circle-info For instance, "SEP23" on our order book system refers to the contract month of September 2023, with a maturity ending on the last Friday, 29th September 2023. Similarly, "DEC24" would represent the contract month of December 2024 within the order book with a maturity of 27th December 2024. To keep the orderbooks current, at Maturity, we will deactivate the orderbook that is expiring each quarter and start a new orderbook with the Itayose process. This new orderbook is added to the farthest term, currently the 2-year order book. For more details, please refer to the 'Orderbook Life Cycle' section. circle-info What happens to your loan position? No worries. Matured Loan position will be reinvested through our platform using our [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) feature. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Number of Orderbooks Total number of active orderbooks at any time 8 Maturity Range Time range covered by the orderbooks 3 months to 2 years Maturity Gap Time between consecutive maturities 3 months Maturity Date When loans in an orderbook mature Last Friday of Mar/Jun/Sep/Dec Contract Naming How contracts are named in the system MMM+YY (e.g., SEP23, DEC24) [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#examples) Examples ------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#example-1-lending-across-multiple-maturities) Example 1: Lending Across Multiple Maturities A user wants to diversify their lending strategy across different time horizons: 1. They deposit 3,000 USDC into the platform 2. They allocate 1,000 USDC to the 3-month maturity (JUN24) 3. They allocate 1,000 USDC to the 6-month maturity (SEP24) 4. They allocate 1,000 USDC to the 9-month maturity (DEC24) 5. This creates a "ladder" strategy that provides liquidity at regular intervals 6. When the JUN24 position matures, it will auto-roll to the new 2-year maturity (JUN26) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#example-2-navigating-orderbook-transitions) Example 2: Navigating Orderbook Transitions A borrower has an active loan in the SEP23 orderbook approaching maturity: 1. As the maturity date (September 29, 2023) approaches, they receive notifications 2. On maturity day, their position is automatically handled by the Auto-Rolling feature 3. The SEP23 orderbook is deactivated and a new orderbook (SEP25) is created 4. Their position is rolled into the next available maturity with similar duration 5. The borrower can view their new position details in the platform interface [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#what-happens-if-i-want-to-exit-before-maturity) What happens if I want to exit before maturity? If you want to exit your position before maturity, you can take an opposite position in the same maturity orderbook. For example, if you initially lent in the DEC24 orderbook, you can borrow in the same DEC24 orderbook to close your position. Market conditions at the time will determine whether you realize a gain or loss. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#how-are-new-orderbooks-created) How are new orderbooks created? New orderbooks are created through the Itayose process, which is a price discovery mechanism. When the shortest-term orderbook matures, a new orderbook is created for the longest term (currently 2 years out). This maintains a consistent set of eight active orderbooks at all times. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#can-i-choose-which-maturity-my-position-auto-rolls-into) Can I choose which maturity my position auto-rolls into? By default, positions auto-roll according to the protocol's rules, typically into the next available maturity. However, you can manually close your position before maturity and open a new position in your preferred maturity orderbook if you want more control over the rollover process. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#why-use-quarterly-maturities-instead-of-monthly-or-weekly) Why use quarterly maturities instead of monthly or weekly? Quarterly maturities (Mar/Jun/Sep/Dec) align with traditional financial markets and futures contracts, providing better liquidity and price discovery. This standardization also reduces fragmentation of liquidity across too many orderbooks, which could lead to thinner markets and wider spreads. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------------------- * [Zero-Coupon Standard](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) * [Orderbook Mechanicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/order-book-system.md) * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) * [New Market Listing and Delisting](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting) [PreviousZero-Coupon Bondschevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) [NextCollateralizationchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#examples) * [Example 1: Lending Across Multiple Maturities](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#example-1-lending-across-multiple-maturities) * [Example 2: Navigating Orderbook Transitions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#example-2-navigating-orderbook-transitions) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#common-questions) * [What happens if I want to exit before maturity?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#what-happens-if-i-want-to-exit-before-maturity) * [How are new orderbooks created?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#how-are-new-orderbooks-created) * [Can I choose which maturity my position auto-rolls into?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#can-i-choose-which-maturity-my-position-auto-rolls-into) * [Why use quarterly maturities instead of monthly or weekly?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#why-use-quarterly-maturities-instead-of-monthly-or-weekly) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Auto-Rolling | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#overview) Overview ------------------------------------------------------------------------------------------------------------------------------ Auto-Rolling is an innovative feature in the Fixed-Rate Lending Protocol that streamlines the reinvestment process for users. In traditional finance, bond redemption at maturity requires manual reinvestment, which can be cumbersome. Secured Finance has integrated this auto-roll feature into its protocol, automatically reinvesting matured loans into the nearest 3-month bucket, offering several key advantages. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#what-youll-learn) What You'll Learn ----------------------------------------------------------------------------------------------------------------------------------------------- * How Auto-Rolling mitigates reinvestment risk * How the automatic reinvestment process works * How Auto-Rolling contributes to cost efficiency * How this feature supports continuous growth in the protocol [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#key-components) Key Components ------------------------------------------------------------------------------------------------------------------------------------------ * [**Price Discovery**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling) : How prices are determined during the auto-rolling process * **Reinvestment Mechanism**: The process of automatically reinvesting matured positions * **Close-to-Mid Pricing**: The pricing strategy used for auto-rolled positions [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#benefits-of-auto-rolling) Benefits of Auto-Rolling -------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#mitigation-of-reinvestment-risk) Mitigation of Reinvestment Risk Reinvestment risk, the possibility of not finding similar reinvestment conditions at maturity, is a common concern with fixed-term investments. The auto-roll feature mitigates this risk by rolling over positions to the nearest market at a close-to-mid price. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#cost-efficiency) Cost Efficiency By eliminating the need to find another counterparty on the order book for reinvestment manually, the auto-roll feature reduces operational costs. This not only results in cost savings for users but also helps maintain the total value locked (TVL) in the protocol. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#continuous-growth) Continuous Growth The auto-roll feature ensures a seamless reinvestment process, fostering continuous growth for users and enhancing the overall value proposition of the Secured Finance platform. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-22663a0cea9bddf61b8caf4ef5d04ed6248fbaea%252Fautoroll.gif%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=5e5aed72&sv=2) Auto-Roll: Automatic reinvestment of matured loans into the nearest 3-month bucket In essence, the auto-roll feature is designed to provide an easy, efficient, and smooth reinvestment experience, contributing to the overall user-friendliness of the Secured Finance platform. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------------------ * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Price Discovery for Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling) * [New Market Listing and Delisting](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting) [PreviousMarket Dynamicschevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) [NextPrice Discovery for Auto-Rollingchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#key-components) * [Benefits of Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#benefits-of-auto-rolling) * [Mitigation of Reinvestment Risk](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#mitigation-of-reinvestment-risk) * [Cost Efficiency](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#cost-efficiency) * [Continuous Growth](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#continuous-growth) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Fixed-Rate Lending SDK | Secured Finance Docs The Fixed-Rate Lending SDK is a comprehensive toolkit for developers to integrate and interact with the Secured Finance Fixed-Rate Lending protocol. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#overview) Overview -------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending protocol provides a platform for fixed-rate lending and borrowing through an order book system. The SDK provides a programmatic interface to interact with the protocol, allowing developers to build applications that leverage Fixed-Rate Lending functionality. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending SDK is built on top of viem and provides a type-safe interface to interact with the Fixed-Rate Lending smart contracts. It abstracts away the complexity of direct contract interactions and provides a more developer-friendly API. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#installation) Installation ---------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending SDK packages are hosted on GitHub Packages registry, not the public NPM registry. You'll need to configure your `.npmrc` file to access them: Copy # Add this to your .npmrc file @secured-finance:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN # Then install the individual packages npm install @secured-finance/sf-client npm install @secured-finance/sf-graph-client npm install @secured-finance/sf-core For more details on setting up authentication for GitHub Packages, see the [GitHub documentationarrow-up-right](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages) . [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#key-components) Key Components -------------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending SDK consists of several packages: ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-client) sf-client The core package for interacting with the Fixed-Rate Lending protocol. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-graph-client) sf-graph-client Utilities for querying the Fixed-Rate Lending subgraph. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-core) sf-core Core components used across different Secured Finance projects. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#basic-usage) Basic Usage -------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#connecting-to-the-protocol) Connecting to the Protocol ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#reading-protocol-state) Reading Protocol State ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#order-operations) Order Operations ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#collateral-management) Collateral Management ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#position-management) Position Management [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#advanced-usage) Advanced Usage -------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#using-the-graph-client) Using the Graph Client ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#price-calculations) Price Calculations [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#faq) FAQ ---------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-do-i-handle-transaction-errors) How do I handle transaction errors? The SDK throws descriptive error objects that contain information about the failure. Wrap your transactions in try-catch blocks to handle errors gracefully. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-do-i-convert-between-unit-price-and-apr) How do I convert between unit price and APR? The conversion between Zero-Coupon Bond prices and APR varies depending on the maturity period. For detailed information, refer to the [official documentation on ZC Bond Price to APR conversion](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) . The calculation is implemented in the Price Calculations section above. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#what-networks-does-the-sdk-support) What networks does the SDK support? The SDK supports all networks where the Fixed-Rate Lending protocol is deployed, including Ethereum, Arbitrum, and Filecoin. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------------- * [Fixed-Rate Lending Protocol Documentation](https://docs.secured.finance/fixed-rate-lending/overview) * [Fixed-Rate Lending Subgraph Documentation](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph) * [GitHub Repositoryarrow-up-right](https://github.com/Secured-Finance/sf-sdk) * [NPM Packagearrow-up-right](https://www.npmjs.com/package/@secured-finance/sf-sdk) [PreviousSDK Referencechevron-left](https://docs.secured.finance/developer-portal/sdk-reference) [NextUSDFC SDKchevron-right](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) Last updated 9 months ago * [Overview](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#overview) * [How It Works](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-it-works) * [Installation](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#installation) * [Key Components](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#key-components) * [sf-client](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-client) * [sf-graph-client](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-graph-client) * [sf-core](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#sf-core) * [Basic Usage](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#basic-usage) * [Connecting to the Protocol](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#connecting-to-the-protocol) * [Reading Protocol State](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#reading-protocol-state) * [Order Operations](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#order-operations) * [Collateral Management](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#collateral-management) * [Position Management](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#position-management) * [Advanced Usage](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#advanced-usage) * [Using the Graph Client](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#using-the-graph-client) * [Price Calculations](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#price-calculations) * [FAQ](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#faq) * [How do I handle transaction errors?](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-do-i-handle-transaction-errors) * [How do I convert between unit price and APR?](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#how-do-i-convert-between-unit-price-and-apr) * [What networks does the SDK support?](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#what-networks-does-the-sdk-support) * [Related Resources](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk#related-resources) sun-brightdesktopmoon Copy import { SecuredFinanceClient } from "@secured-finance/sf-client"; Copy import { GraphClient } from "@secured-finance/sf-graph-client"; Copy import { Currency, Token } from "@secured-finance/sf-core"; Copy import { SecuredFinanceClient } from "@secured-finance/sf-client"; import { createPublicClient, createWalletClient, http } from "viem"; import { filecoin } from "viem/chains"; // Connect to the protocol async function connectToProtocol() { // Create viem clients const publicClient = createPublicClient({ chain: filecoin, transport: http() }); const walletClient = createWalletClient({ chain: filecoin, transport: http() }); // Create the Secured Finance client const client = new SecuredFinanceClient(); await client.init(publicClient, walletClient); return client; } Copy import { Currency } from "@secured-finance/sf-core"; // Get supported currencies async function getSupportedCurrencies(client) { const currencies = await client.getCurrencies(); console.log("Supported currencies:", currencies); return currencies; } // Get lending markets async function getLendingMarkets(client, currency) { const maturities = await client.getMaturities(currency); console.log("Available maturities:", maturities); const orderBookDetails = await client.getOrderBookDetailsPerCurrency(currency); console.log("Order book details:", orderBookDetails); return { maturities, orderBookDetails }; } // Get order book async function getOrderBook(client, currency, maturity) { const orderBookDetail = await client.getOrderBookDetail(currency, maturity); console.log("Order book detail:", orderBookDetail); const lendOrders = await client.getLendOrderBook(currency, maturity, 0, 10); console.log("Lend orders:", lendOrders); const borrowOrders = await client.getBorrowOrderBook(currency, maturity, 0, 10); console.log("Borrow orders:", borrowOrders); return { orderBookDetail, lendOrders, borrowOrders }; } // Get user positions async function getUserPositions(client, account) { const positions = await client.getPositions(account); console.log("User positions:", positions); return positions; } Copy import { Currency } from "@secured-finance/sf-core"; import { OrderSide, WalletSource } from "@secured-finance/sf-client"; // Place a lend order async function placeLendOrder(client, currency, maturity, amount, unitPrice) { const tx = await client.placeOrder( currency, maturity, OrderSide.LEND, amount, WalletSource.METAMASK, unitPrice ); console.log("Lend order placed:", tx); return tx; } // Place a borrow order async function placeBorrowOrder(client, currency, maturity, amount, unitPrice) { const tx = await client.placeOrder( currency, maturity, OrderSide.BORROW, amount, WalletSource.METAMASK, unitPrice ); console.log("Borrow order placed:", tx); return tx; } // Cancel an order async function cancelOrder(client, currency, maturity, orderId) { const tx = await client.cancelLendingOrder(currency, maturity, orderId); console.log("Order cancelled:", tx); return tx; } Copy // Deposit collateral async function depositCollateral(client, currency, amount) { const tx = await client.depositCollateral(currency, amount); console.log("Collateral deposited:", tx); return tx; } // Get protocol deposit amount async function getProtocolDepositAmount(client) { const depositAmount = await client.getProtocolDepositAmount(); console.log("Protocol deposit amount:", depositAmount); return depositAmount; } Copy // Unwind a position async function unwindPosition(client, currency, maturity) { const tx = await client.unwindPosition(currency, maturity); console.log("Position unwound:", tx); return tx; } // Get total present value async function getTotalPresentValue(client) { const presentValue = await client.getTotalPresentValueInBaseCurrency(); console.log("Total present value:", presentValue); return presentValue; } Copy import { GraphClient, useQuery } from "@secured-finance/sf-graph-client"; import { useEffect, useState } from "react"; // Create a graph client for a specific network const graphClient = new GraphClient({ uri: "https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latest" }); // Example 1: Simple query using the GraphClient directly async function queryLendingMarkets() { try { // Define the query document const { lendingMarkets } = await graphClient.query({ lendingMarkets: { id: true, currency: { id: true, symbol: true, decimals: true }, maturity: true, isReady: true } }); console.log("Lending markets:", lendingMarkets); return lendingMarkets; } catch (error) { console.error("Error querying lending markets:", error); return []; } } // Example 2: Using the useQuery hook in a React component function LendingMarketsComponent() { // Define the query document const queryDocument = { lendingMarkets: { id: true, currency: { id: true, symbol: true }, maturity: true, isReady: true } }; // Execute the query const { data, loading, error } = useQuery(queryDocument, { client: graphClient, variables: {}, fetchPolicy: "network-only" }); // Handle loading and error states if (loading) return
Loading...
; if (error) return
Error: {error.message}
; // Render the data return (

Available Lending Markets

); } Copy import { getUTCMonthYear } from "@secured-finance/sf-core"; // Convert unit price to APR function unitPriceToAPR(unitPrice, maturity) { const now = Math.floor(Date.now() / 1000); const secondsToMaturity = maturity - now; const secondsPerYear = 365 * 24 * 60 * 60; // 31,536,000 const yearsToMaturity = secondsToMaturity / secondsPerYear; // Different calculation methods based on maturity if (yearsToMaturity < 1) { // For bonds with maturity less than 1 year (linear calculation) return ((10000 / unitPrice) - 1) * (secondsPerYear / secondsToMaturity) * 100; } else { // For bonds with maturity greater than 1 year (annual compounding) return (Math.pow(10000 / unitPrice, 1 / yearsToMaturity) - 1) * 100; } } // Format maturity date function formatMaturity(maturity) { return getUTCMonthYear(maturity, true); } // Calculate order estimation async function calculateOrderEstimation(client, currency, maturity, account, side, amount, unitPrice) { const estimation = await client.getOrderEstimation( currency, maturity, account, side, amount, unitPrice ); console.log("Order estimation:", estimation); return estimation; } Copy try { await client.placeOrder( currency, maturity, OrderSide.LEND, amount, WalletSource.METAMASK, unitPrice ); } catch (error) { if (error.message.includes("InsufficientDepositAmount")) { console.error("Insufficient deposit amount. Deposit more collateral."); } else { console.error("Transaction failed:", error); } } sun-brightdesktopmoon --- # Market Dynamics | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#overview) Overview ----------------------------------------------------------------------------------------------------------------- Market Dynamics in the Fixed-Rate Lending Protocol encompass the mechanisms that facilitate efficient price discovery, market transitions, and continuous operation. These features ensure that the protocol can adapt to changing market conditions while maintaining stability and predictability. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#what-youll-learn) What You'll Learn ---------------------------------------------------------------------------------------------------------------------------------- * How Auto-Rolling enables continuous investment without manual intervention * How new markets are listed and delisted in an orderly fashion * How Itayose price discovery ensures fair pricing when new markets open * How market transitions are managed to maintain liquidity [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#key-components) Key Components ----------------------------------------------------------------------------------------------------------------------------- * [**Auto-Rolling**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) : The mechanism that automatically reinvests funds at maturity * [**Market Listing and Delisting**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting) : The process for introducing new markets and retiring old ones * [**Itayose Price Discovery**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) : The algorithm for determining fair prices when new markets open [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------- * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) [PreviousZC Collateral Case Studychevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study) [NextAuto-Rollingchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Orderbook Deep Dive | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#overview) Overview --------------------------------------------------------------------------------------------------------------------- In traditional orderbook systems, achieving a full on-chain implementation is considered challenging due to the significant amount of data reference and updates, which can lead to high [gas costsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/resources/knowledge-base/gas-cost.md) . However, **Secured Finance has successfully implemented an on-chain orderbook system.** Particularly, gas-intensive processes such as creating open orders, executing market orders, and auto-rolling result in increasing gas costs proportional to the data volume, according to Solidity's characteristics. In some cases, these processes may even approach Ethereum's block gas limit, potentially causing execution issues. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#the-key-points-of-gas-cost-for-on-chain-orderbook) The key points of Gas cost for On-chain orderbook: * Creating open orders incurs increasing [gas costsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/resources/knowledge-base/gas-cost.md) as the data volume on the orderbook grows. * Executing [market ordersarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/platform-guide/trading/order-type.md) results in escalating gas costs proportional to the number of matched open orders, potentially leading to execution challenges in certain cases. * [Auto-rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) faces mounting gas costs proportional to the number of positions subject to auto-rolling, potentially leading to execution challenges in certain scenarios. These challenges prompted Secured Finance to address them effectively and enable a practical gas cost for the full on-chain orderbook system. To achieve this, we introduced red-black trees, lazy evaluation, and the concept of Genesis Value. These solutions ensure the smooth operation of the on-chain orderbook system, optimizing gas costs and enhancing the overall efficiency and performance of the platform. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#what-youll-learn) What You'll Learn -------------------------------------------------------------------------------------------------------------------------------------- * How the Red-Black Tree data structure enables efficient orderbook operations * How Lazy Evaluation reduces gas costs for on-chain operations * How Compound Factors and Genesis Values are used for price calculations * How Orderbook Rotation works during market transitions [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#key-components) Key Components --------------------------------------------------------------------------------------------------------------------------------- * [**Red-Black Tree**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree) : The self-balancing binary search tree that powers the orderbook * [**Lazy Evaluation**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) : The technique that minimizes gas costs for orderbook operations * [**Compound Factor**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor) : The mechanism for calculating time-value adjustments * [**Genesis Value**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value) : The initial value representation for assets and obligations * [**Orderbook Rotation**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation) : The process for transitioning between market periods [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------- * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [PreviousEmergency Global Settlementchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement) [NextOrderbook Rotationchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#overview) * [The key points of Gas cost for On-chain orderbook:](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#the-key-points-of-gas-cost-for-on-chain-orderbook) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#key-components) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # USDFC Logo | Secured Finance Docs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-abc86fab8066f375701dc707397b802836ee1450%252FUSDFC%2520Circle%2520Icon.svg%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=6d68df78&sv=2) USDFC Circle Icon.svg ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-1e13f38a791c705917746f593caab2b58acee263%252FSymbol%2520Color%2520Light%2520Background%2520%284%29.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=b7a38b30&sv=2) USDFC Circle Icon 200 x 200.png ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-c2ebaf5b8bdb2df365cfffadb07952003d692703%252FSymbol%2520Color%2520Light%2520Background%2520%283%29.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=48824824&sv=2) USDFC Circle Icon 472 x 472.png ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-aecb027a1e7b9a34369ba145439b5b4f4671271b%252Foption%252001%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=8372d445&sv=2) USDFC Square Icon 400 x 400.png ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-51a83d08d36df119582231de964f61754e31eb08%252FColor%2520Light%2520Background.svg%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=52a5f12a&sv=2) USDFC Light Background.svg file-pdf 3MB [USDFC Brand Sheet.pdf](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-5f4e0f81ae7b113dd5e14d97b541e6b95dce0614%2FUSDFC%20Brand%20Sheet.pdf?alt=media&token=31c2f97c-792b-4b01-bd12-0461a5beb427) PDF downloadDownload[arrow-up-right-from-squareOpen](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-5f4e0f81ae7b113dd5e14d97b541e6b95dce0614%2FUSDFC%20Brand%20Sheet.pdf?alt=media&token=31c2f97c-792b-4b01-bd12-0461a5beb427) USDFC Brand Sheet [PreviousSecured Finance Logochevron-left](https://docs.secured.finance/resources/media-kit/brand-assets) [NextLegalchevron-right](https://docs.secured.finance/resources/legal) Last updated 10 months ago sun-brightdesktopmoon sun-brightdesktopmoon --- # Fixed-Rate Lending Subgraph | Secured Finance Docs The Fixed-Rate Lending Subgraph indexes data from the Secured Finance Fixed-Rate Lending protocol, enabling developers to query historical and current data using GraphQL. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#overview) Overview ------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending protocol provides a platform for fixed-rate lending and borrowing through an order book system. The subgraph allows you to query information about orders, lending markets, transactions, positions, and other protocol activities. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending Subgraph continuously indexes events emitted by the Fixed-Rate Lending smart contracts. This data is organized into entities that can be queried using GraphQL, providing real-time access to protocol data without requiring direct interaction with the blockchain. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#subgraph-endpoints) Subgraph Endpoints --------------------------------------------------------------------------------------------------------------------------------------------- For the complete list of subgraph endpoints, please refer to the [API Reference](https://docs.secured.finance/developer-portal/api-reference#subgraph-endpoints) page. You can access the Fixed-Rate Lending Subgraph through these endpoints: * Ethereum Mainnet: [https://api.studio.thegraph.com/query/64582/sf-prd-mainnet/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-mainnet/version/latest) * Ethereum Sepolia: [https://api.studio.thegraph.com/query/64582/sf-prd-sepolia/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-sepolia/version/latest) * Arbitrum One: [https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-one/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-one/version/latest) * Arbitrum Sepolia: [https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latest) > **Note:** The Filecoin subgraph endpoints are currently under development. Please check back later for updated URLs. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#key-entities) Key Entities --------------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending Subgraph schema includes these primary entities: ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transaction) Transaction Represents a transaction on the Fixed-Rate Lending protocol. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#user) User Represents users who interact with the Fixed-Rate Lending protocol. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#order) Order Represents an order in the order book. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#lendingmarket) LendingMarket Represents a lending market for a specific currency and maturity. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#liquidation) Liquidation Records details of a liquidation event. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transfer) Transfer Records details of a deposit or withdrawal. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#deposit) Deposit Records details of a user's deposit. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#dailyvolume) DailyVolume Records daily trading volume for a lending market. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#protocol) Protocol Records protocol-wide statistics. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#protocolvolumebycurrency) ProtocolVolumeByCurrency Records total volume by currency for the protocol. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#takervolumebycurrency) TakerVolumeByCurrency Records taker volume by currency for a user. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transactioncandlestick) TransactionCandleStick Records price candles for transactions. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#takervolumebyintervalandcurrency) TakerVolumeByIntervalAndCurrency Records taker volume by interval and currency. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#examples) Examples ------------------------------------------------------------------------------------------------------------------------- See the [Query Examples](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples) page for sample queries to get started. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#interactive-documentation) Interactive Documentation ----------------------------------------------------------------------------------------------------------------------------------------------------------- You can interact with the Fixed-Rate Lending Subgraph directly through GraphQL using The Graph's Playground by visiting the subgraph endpoints listed above. For interactive API documentation embedded directly in this documentation, please refer to the [API Reference](https://docs.secured.finance/developer-portal/api-reference#interactive-api-documentation) page. [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#faq) FAQ --------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-do-i-query-all-active-orders-for-a-specific-market) How do I query all active orders for a specific market? Use the orders entity with filters: ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-can-i-monitor-new-lending-markets) How can I monitor new lending markets? Subscribe to lending market events: ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-do-i-calculate-apr-from-unit-prices) How do I calculate APR from unit prices? The unit price in the Fixed-Rate Lending protocol represents a percentage of par value. To convert to APR: APR\=(10000unitPrice−1)×365daysToMaturity×100%APR = \\left(\\frac{10000}{unitPrice} - 1\\right) \\times \\frac{365}{daysToMaturity} \\times 100\\%APR\=(unitPrice10000​−1)×daysToMaturity365​×100% [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------------- * [Fixed-Rate Lending Protocol Documentationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/developer-portal/fixed-rate-lending/overview/README.md) * [Fixed-Rate Lending SDK Documentationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/developer-portal/api-reference/sdk-reference/fixed-rate-lending-sdk.md) * [GitHub Repositoryarrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph) [PreviousAPI Referencechevron-left](https://docs.secured.finance/developer-portal/api-reference) [NextQuery Exampleschevron-right](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples) Last updated 10 months ago * [Overview](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#overview) * [How It Works](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-it-works) * [Subgraph Endpoints](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#subgraph-endpoints) * [Key Entities](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#key-entities) * [Transaction](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transaction) * [User](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#user) * [Order](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#order) * [LendingMarket](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#lendingmarket) * [Liquidation](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#liquidation) * [Transfer](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transfer) * [Deposit](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#deposit) * [DailyVolume](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#dailyvolume) * [Protocol](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#protocol) * [ProtocolVolumeByCurrency](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#protocolvolumebycurrency) * [TakerVolumeByCurrency](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#takervolumebycurrency) * [TransactionCandleStick](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#transactioncandlestick) * [TakerVolumeByIntervalAndCurrency](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#takervolumebyintervalandcurrency) * [Examples](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#examples) * [Interactive Documentation](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#interactive-documentation) * [FAQ](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#faq) * [How do I query all active orders for a specific market?](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-do-i-query-all-active-orders-for-a-specific-market) * [How can I monitor new lending markets?](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-can-i-monitor-new-lending-markets) * [How do I calculate APR from unit prices?](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#how-do-i-calculate-apr-from-unit-prices) * [Related Resources](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#related-resources) sun-brightdesktopmoon Copy type Transaction @entity { id: ID! currency: Bytes! maturity: BigInt! side: Int! executionPrice: BigInt! user: User! executionType: TransactionExecutionType! futureValue: BigInt! amount: BigInt! feeInFV: BigInt! averagePrice: BigDecimal! lendingMarket: LendingMarket! order: Order! createdAt: BigInt! blockNumber: BigInt! txHash: Bytes! } enum TransactionExecutionType { Maker Taker } Copy type User @entity { id: ID! # wallet address createdAt: BigInt! transactionCount: BigInt! transactions: [Transaction!]! @derivedFrom(field: "user") orderCount: BigInt! orders: [Order!]! @derivedFrom(field: "user") liquidationCount: BigInt! liquidations: [Liquidation!]! @derivedFrom(field: "user") transferCount: BigInt! transfers: [Transfer!]! @derivedFrom(field: "user") deposits: [Deposit!]! @derivedFrom(field: "user") takerVolumesByCurrency: [TakerVolumeByCurrency!]! @derivedFrom(field: "user") } Copy type Order @entity { id: ID! orderId: BigInt! user: User! currency: Bytes! side: Int! maturity: BigInt! inputUnitPrice: BigInt! inputAmount: BigInt! filledAmount: BigInt! status: OrderStatus! statusUpdatedAt: BigInt! lendingMarket: LendingMarket! isPreOrder: Boolean! type: OrderType! transactions: [Transaction!]! @derivedFrom(field: "order") isCircuitBreakerTriggered: Boolean! createdAt: BigInt! blockNumber: BigInt! txHash: Bytes! } enum OrderType { Market Limit Unwind } enum OrderStatus { Open PartiallyFilled Filled Killed Cancelled } Copy type LendingMarket @entity { id: ID! currency: Bytes! maturity: BigInt! isActive: Boolean! transactions: [Transaction!]! @derivedFrom(field: "lendingMarket") orders: [Order!]! @derivedFrom(field: "lendingMarket") volume: BigInt! dailyVolume: [DailyVolume!]! @derivedFrom(field: "lendingMarket") openingUnitPrice: BigInt! lastLendUnitPrice: BigInt! lastBorrowUnitPrice: BigInt! offsetAmount: BigInt! } Copy type Liquidation @entity { id: ID! collateralCurrency: Bytes! debtCurrency: Bytes! debtMaturity: BigInt! debtAmount: BigInt! user: User! timestamp: BigInt! blockNumber: BigInt! txHash: Bytes! } Copy type Transfer @entity { id: ID! user: User! currency: Bytes! amount: BigInt! transferType: TransferType! timestamp: BigInt! blockNumber: BigInt! txHash: Bytes! } enum TransferType { Deposit Withdraw } Copy type Deposit @entity { id: ID! user: User! currency: Bytes! amount: BigInt! } Copy type DailyVolume @entity { id: ID! # currency-maturity-date(yyyy-mm-dd) currency: Bytes! maturity: BigInt! day: String! # dd-mm-yyyy volume: BigInt! timestamp: BigInt! lendingMarket: LendingMarket! } Copy type Protocol @entity { id: ID! # 1 totalUsers: BigInt! volumesByCurrency: [ProtocolVolumeByCurrency!]! @derivedFrom(field: "protocol") } Copy type ProtocolVolumeByCurrency @entity { id: ID! # currency protocol: Protocol! currency: Bytes! totalVolume: BigInt! } Copy type TakerVolumeByCurrency @entity { id: ID! # user-currency user: User! currency: Bytes! totalVolume: BigInt! totalVolumesByInterval: [TakerVolumeByIntervalAndCurrency!]! @derivedFrom(field: "takerVolumesByCurrency") } Copy type TransactionCandleStick @entity { id: ID! # A composite ID, e.g., "currency-maturity-interval-epochTime" interval: BigInt! # interval in seconds currency: Bytes! maturity: BigInt! timestamp: BigInt! # The start time of the interval open: BigInt! close: BigInt! high: BigInt! low: BigInt! average: BigDecimal! volume: BigInt! volumeInFV: BigInt! lendingMarket: LendingMarket! } Copy type TakerVolumeByIntervalAndCurrency @entity { id: ID! # Composite ID, e.g., "user-currency-interval-createdAt" takerVolumesByCurrency: TakerVolumeByCurrency! currency: Bytes! interval: BigInt! createdAt: BigInt! # The start time of the interval volume: BigInt! # Total transaction volume for the interval updatedAt: BigInt! # Timestamp when the record was last updated } Copy { orders( where: { lendingMarket: "0x123...", status_in: [Open, PartiallyFilled] } ) { id user { id } side inputAmount inputUnitPrice status } } Copy subscription { lendingMarket(orderBy: maturity, orderDirection: desc) { id currency maturity isActive lastLendUnitPrice lastBorrowUnitPrice } } sun-brightdesktopmoon --- # Price Discovery for Auto-Rolling | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#overview) Overview --------------------------------------------------------------------------------------------------------------------------------------------------------------- The auto-rolling price discovery mechanism is a critical component of Secured Finance's platform. It ensures that the pricing for the quarterly roll is calculated accurately and fairly, preventing potential price manipulation. This mechanism is designed to adapt to varying market conditions, ranging from normal and liquid conditions to less liquid or extreme situations with no liquidity. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- The price discovery mechanism operates in different ways depending on the market conditions, ensuring fair and accurate pricing in all scenarios. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#normal-and-liquid-condition) Normal and Liquid Condition In a normal and liquid market condition, we observe the transactions that occur within the 6-hour window before maturity. The roll price is calculated based on the volume-weighted average price of these transactions. This method ensures that the roll price accurately reflects the market conditions and transaction volumes during this period. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#less-liquid-condition) Less Liquid Condition In a less liquid market condition, where no transactions occur during the 6-hour window before maturity, we set the roll price based on the 'Mark Price'. This price is adjusted for duration to ensure that it accurately reflects the time value of the financial instrument. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#extreme-condition) Extreme Condition In an extreme market condition, where no transactions have occurred for the last 3 months, we use the price of the previous roll. This method ensures that the roll price is still determined based on market data, even in situations of extremely low liquidity. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#special-case-only-for-the-initial-roll) Special Case (Only for the Initial Roll) In the special case of the initial roll, if no transaction occurs on the 2nd order book until the first roll, we use the opening price of our product launch, adjusted for duration. This method ensures that the initial roll price is still based on market data, even if no transactions have occurred. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Observation Window Time period before maturity used for price calculation in liquid conditions 6 hours Price Calculation Method (Liquid) Method used to calculate price in liquid conditions Volume-weighted average price Price Calculation Method (Less Liquid) Method used when no transactions occur in observation window Mark Price adjusted for duration Price Calculation Method (Extreme) Method used when no transactions occur for extended period Previous roll price Initial Roll Price Method used for the first roll with no transaction history Opening price adjusted for duration [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#examples) Examples --------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-1-normal-and-liquid-market-condition) Example 1: Normal and Liquid Market Condition Consider a 3-month USDC-ETH Zero-Coupon Bond approaching maturity on June 30th: 1. During the 6-hour window before maturity (12:00-18:00 UTC on June 30th), the following transactions occur: * 10,000 USDC worth of bonds traded at 99.20 * 25,000 USDC worth of bonds traded at 99.15 * 15,000 USDC worth of bonds traded at 99.25 2. The volume-weighted average price is calculated: 3. The auto-roll price for the new September 30th bonds is set at 99.19, reflecting the fair market value based on actual trading activity. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-2-less-liquid-market-condition) Example 2: Less Liquid Market Condition For a 3-month USDC-FIL Zero-Coupon Bond approaching maturity: 1. No transactions occur during the 6-hour window before maturity 2. The current Mark Price for the bond is 98.50 3. The duration adjustment factor is calculated based on the time to maturity of the new bonds (3 months) 4. If the duration adjustment factor is 0.995, the auto-roll price would be: 5. The new bonds begin trading at 98.01, reflecting the Mark Price adjusted for the new duration ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-3-extreme-market-condition) Example 3: Extreme Market Condition For a thinly traded 3-month USDC-WBTC Zero-Coupon Bond: 1. No transactions have occurred in the last 3 months 2. The previous roll price (from the last maturity date) was 97.80 3. The auto-roll price is set at 97.80, maintaining continuity with the last known market-determined price 4. This ensures that even in extremely illiquid conditions, the roll price has some basis in market history ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-4-initial-roll-with-no-transaction-history) Example 4: Initial Roll with No Transaction History When launching a new 3-month USDC-AVAX Zero-Coupon Bond market: 1. The initial offering price at launch was 95.00 2. No transactions occur on the second orderbook (for the next maturity date) before the first roll 3. The duration adjustment factor for the new bonds is 0.998 4. The auto-roll price is calculated as: 5. The new bonds begin trading at 94.81, providing a fair starting point based on the initial launch price [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#why-use-different-price-discovery-methods-based-on-market-conditions) Why use different price discovery methods based on market conditions? Different price discovery methods are used for several reasons: 1. **Market Efficiency**: In liquid markets, actual transaction prices provide the most accurate reflection of market sentiment 2. **Manipulation Prevention**: Volume-weighted averaging prevents single transactions from unduly influencing the roll price 3. **Continuity**: In less liquid conditions, using Mark Price or previous roll prices ensures continuity and prevents arbitrary pricing 4. **Adaptability**: The tiered approach allows the protocol to adapt to varying market conditions across different assets 5. **Fairness**: Each method is designed to produce the most fair and representative price given the available market data ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-does-the-6-hour-observation-window-protect-against-manipulation) How does the 6-hour observation window protect against manipulation? The 6-hour observation window provides several protections: 1. **Extended Duration**: The lengthy window makes it costly to manipulate prices throughout the entire period 2. **Volume Weighting**: Larger trades have more impact on the final price, making manipulation more expensive 3. **Transparency**: All participants know when the observation window occurs, allowing for fair participation 4. **Market Depth**: The window captures a broader sample of market activity, diluting the impact of any single trade 5. **Predictability**: The consistent methodology prevents arbitrary pricing decisions ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#what-happens-if-theres-a-sudden-market-shock-during-the-observation-window) What happens if there's a sudden market shock during the observation window? During market shocks in the observation window: 1. **Volume Weighting**: The methodology still applies, with larger trades having more influence 2. **Market Forces**: The price discovery reflects genuine market sentiment, even if volatile 3. **No Circuit Breakers**: The observation window does not have special circuit breakers, as it's capturing market consensus 4. **Risk Management**: Users aware of the upcoming roll can manage their positions accordingly 5. **Subsequent Trading**: After the roll, normal market mechanisms including circuit breakers apply to the new bonds ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-is-the-duration-adjustment-calculated-for-less-liquid-conditions) How is the duration adjustment calculated for less liquid conditions? The duration adjustment is calculated as follows: 1. **Time Value Principle**: Accounts for the time value of money between different maturity periods 2. **Yield Curve Consideration**: Incorporates the current shape of the yield curve 3. **Risk Premium**: Includes adjustments for term premium between different durations 4. **Market Conditions**: Takes into account current market conditions and volatility 5. **Consistency**: Ensures consistent pricing between bonds of different maturities ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#can-users-predict-or-influence-the-auto-roll-price) Can users predict or influence the auto-roll price? Users have limited ability to influence the auto-roll price: 1. **Transparent Mechanism**: The methodology is transparent, but requires significant capital to meaningfully impact 2. **Economic Disincentives**: Attempting to manipulate prices typically results in unfavorable execution for the manipulator 3. **Volume Requirements**: The volume-weighted approach requires substantial trading to shift the average price 4. **Market Forces**: Other participants can counter manipulation attempts if prices deviate from fair value 5. **Multiple Methods**: The fallback methods for less liquid markets are resistant to direct manipulation [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics) * [Mark to Marketarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/liquidation/mark-to-market.md) * [Orderbook Rotationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/orderbook-deep-dive/orderbook-rotation.md) [PreviousAuto-Rollingchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) [NextNew Market Listing and Delistingchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-it-works) * [Normal and Liquid Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#normal-and-liquid-condition) * [Less Liquid Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#less-liquid-condition) * [Extreme Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#extreme-condition) * [Special Case (Only for the Initial Roll)](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#special-case-only-for-the-initial-roll) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#examples) * [Example 1: Normal and Liquid Market Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-1-normal-and-liquid-market-condition) * [Example 2: Less Liquid Market Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-2-less-liquid-market-condition) * [Example 3: Extreme Market Condition](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-3-extreme-market-condition) * [Example 4: Initial Roll with No Transaction History](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#example-4-initial-roll-with-no-transaction-history) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#common-questions) * [Why use different price discovery methods based on market conditions?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#why-use-different-price-discovery-methods-based-on-market-conditions) * [How does the 6-hour observation window protect against manipulation?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-does-the-6-hour-observation-window-protect-against-manipulation) * [What happens if there's a sudden market shock during the observation window?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#what-happens-if-theres-a-sudden-market-shock-during-the-observation-window) * [How is the duration adjustment calculated for less liquid conditions?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#how-is-the-duration-adjustment-calculated-for-less-liquid-conditions) * [Can users predict or influence the auto-roll price?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#can-users-predict-or-influence-the-auto-roll-price) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling#related-resources) sun-brightdesktopmoon Copy VWAP = (10,000 × 99.20 + 25,000 × 99.15 + 15,000 × 99.25) / (10,000 + 25,000 + 15,000) VWAP = (992,000 + 2,478,750 + 1,488,750) / 50,000 VWAP = 4,959,500 / 50,000 = 99.19 Copy Auto-Roll Price = 98.50 × 0.995 = 98.01 Copy Auto-Roll Price = 95.00 × 0.998 = 94.81 sun-brightdesktopmoon --- # Secured Finance Logo | Secured Finance Docs circle-info This page is evolving. Additional assets will be added as required. Welcome to Secured Finance's comprehensive logo usage guide. Our logo is a visual representation of our brand's identity, and its consistent application is crucial in conveying a cohesive brand identity. This guide offers detailed instructions to ensure our logo is used correctly and consistently. * * * [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#primary-logo-versions) Primary Logo Versions ------------------------------------------------------------------------------------------------------------------------- The Secured Finance logo has been meticulously designed with two primary versions to ensure adaptability across various backgrounds: ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-18c4412d313f324ec331f2a9f0077b2e843dfacc%252Flogo-primary-light-bg.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=442ceea4&sv=2) **Dark Version** Crafted for light backgrounds, this version retains the logo's clarity and ensures it doesn't get lost amidst lighter shades. **Usage:** Ideal for light backgrounds like whites, pastels, or soft shades. ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-ffa3b9c5576707568756345c7d8eea00f3ed394e%252Flogo-primary-dark-bg.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=77f6ac0b&sv=2) **Light Version** This version has been optimized for dark backgrounds, ensuring that the logo remains vibrant and stands out. **Usage:** Primarily for dark backgrounds, such as deep blues, blacks, or rich colors. ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#color-specification) **Color Specification** Ensure that the colors are accurately represented in all applications to maintain brand consistency. _Note for Printing:_ When using Pantone colors, ensure accurate representation. If specific Pantone shades are unavailable or unsuitable for a particular print medium, use the provided alternate Pantone colors or consult the Hex, CMYK, and RGB references. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b975604ee47d6d50558d374b2844d4dae26dfcd2%252Fsf-color.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=2867b785&sv=2) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-573f2701d5de9b605dff005cda1cfa92a430b1ba%252Funiverseblue.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=c464e1e5&sv=2) ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-f014c83b84fbb00f570d96e1162e3b640cc98f87%252Fstarblue.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=829b9035&sv=2) * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#reverse-version) **Reverse Version** For situations where full-color production isn't feasible, the reverse version of the logo is recommended. ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-c530ebba589bb6ccedd024e31172309063e58eac%252Fmonochromatic-dark.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=95ce99d9&sv=2) **Monochromatic Dark Version** **Color**: Knockout Black **Description**: This version is optimized for light backgrounds, ensuring the logo remains distinct and clear. ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-9120b84c46dec3d66c5f7299c69068dba4bc89e7%252Fmonochromatic-light.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=3b11bbd6&sv=2) **Monochromatic Light Version** **Color:** Knockout White **Description**: Crafted for darker backgrounds, this version ensures the logo stands out prominently. * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#s-logo) **S Logo** The "S Logo" is a distilled representation of the Secured Finance brand, encapsulating its essence in a compact form. Designed with a sphere encompassing a prominent "S", this logo variant is tailored for applications where space is limited or where a simplified brand mark is required. Its minimalist design ensures immediate recognition, making it ideal for app icons, favicons, and other digital touchpoints where clarity and quick brand recall are paramount. **Centering the S Logo:** The "S Logo" is a unique blend of the letter "S" and an accentuating sphere. When positioning the logo, the centering should be based around the "S" as it's the primary element, with the sphere serving as a complementary accent. This means that the visual weight and focus should be on the "S", ensuring it occupies the central position in any design or application. ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-9adc3320f23b6a70addecd8ecb008367e4ecd6a5%252FS-logo-light-bg.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=9f87e3d6&sv=2) **S Logo Dark Version** ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-35bd4cd17beeed7fc158c17100a0a7fa825cdf61%252FS-logo-dark-bg.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=1af884cb&sv=2) **S Logo Light Version** * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#co-branding) Co-Branding In collaborative or partnership scenarios with Secured Finance, our brand's distinctiveness and recognition are paramount. * For co-branding efforts, the preferred choice is the full horizontal wordmark logo of Secured Finance. This extended layout ensures our brand name remains clearly visible and maintains its prominence, even when placed alongside other logos. * It's essential that the Secured Finance logo stands its ground. It should neither be overshadowed nor dominated by other entity logos. The goal is to achieve equal prominence, reflecting a true collaborative spirit while upholding our brand's integrity. ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-8476566df750529104ad95ecfb65edacb75acc6d%252Foxford.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=d0cb55f5&sv=2) Collaboration Example 1 ![Cover](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-fefe487a53efed57b0ea07ae0b09927a5fd8a531%252Fethglobal.png%3Falt%3Dmedia&width=752&dpr=3&quality=100&sign=34ac60ea&sv=2) Collaboration Example 2 * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#positioning-and-clear-space) **Positioning and Clear Space** To maintain the logo's integrity and readability: * Ensure a minimum area of isolation around the Secured Finance logo. This space should be equivalent to the height of the 'S' in the Secured Finance signature. Always respect this space for clarity and prominence. * Avoid placing the logo too close to other text, graphics, or images. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-8f89d1be17aaba2bd132eff47a312a7a09086b18%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=c0172a39&sv=2) Clear Space Guideline * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#colour-palette-and-colour-ratio-guideline) Colour Palette and Colour Ratio Guideline Ensure that the colours are adhered to when designing marketing assets. The colours can be mixed in different combinations, but care should be taken to ensure that secondary colours that are meant to be highlights are used sparingly. Main brand colour: Star Blue #5162FF Main background colour: Universe Blue (Black) #002133 ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-9583996ed8825a7ab0858e19880000ebdc6bf863%252Fcolour%2520guide%25201.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=f9f04542&sv=2) Colour Palette: This is the guide to show exactly which hues can be used. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-c397fa8822333176ff8feba614476607ba20a817%252Fcolour%2520guide%25202.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=8648cd0d&sv=2) Colour Ratio: This is the guide to show the proportion of hues that should be used relative to one another. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-4771a97ac9ab25027a3ec8b64442c4fef83f0ac0%252Fcolour%2520guide%25203.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=128ff508&sv=2) Backgrounds: This is the guide to show which hues can be used on backgrounds on marketing assets. * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#download-the-brand-asset-pack) Download the brand asset pack **Includes:** Secured Finance logos in dark and light versions and a variety of formats print and online usage. file-archive 1MB [SecuredFinance\_Logo-Assets\_092923.zip](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-3156fdf97ee9308cf059a6534a654ccfef47fe96%2FSecuredFinance_Logo-Assets_092923.zip?alt=media&token=d5bec0c5-7c61-4cd4-a122-5c9c884d88fc) archive downloadDownload[arrow-up-right-from-squareOpen](https://2995566130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5n2yKWdxy0II5Sd3ZIQL%2Fuploads%2Fgit-blob-3156fdf97ee9308cf059a6534a654ccfef47fe96%2FSecuredFinance_Logo-Assets_092923.zip?alt=media&token=d5bec0c5-7c61-4cd4-a122-5c9c884d88fc) #### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#maintaining-the-integrity-of-the-secured-finance-logo) Maintaining the integrity of the Secured Finance Logo circle-exclamation **Usage guidelines - please read before use** When applying the Secured Finance logo please follow these simple rules: * **Separation:** Do not separate the sphere from the text from the logo. * **Distortion:** Do not stretch, condense, skew, rotate, or otherwise distort the logo. * **Scale:** Do not selectively scale or change the proportions of any element of the logo. * **Color:** Do not recolor the logo. * **Font:** Do not redraw the logo using another typeface for the wordmark. * **Contrast:** Use sufficient contrast when placing the logo over a background image. * **Legibility:** Ensure the logo is legible (re. size and surrounding space) * **Outline:** Don't add an outline/stroke to the logo * **Background:** Use the correct color (full color, knockout, or one color) for light vs. dark backgrounds ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#file-format-guide) File format guide chevron-rightSVG[hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#svg) SVGs (Scalable Vector Graphics) can be scaled up or down in size without any loss of detail. Often used for logos, icons and vector based illustrations. **When to use:** * **Websites/Apps** - ensure branding looks perfect on all screens * **Illustrations** - small file sizes and easily editable * **Animation** - SVGs can be animated chevron-rightPNG[hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#png) PNGs (Portable Network Graphics) are raster based images. PNGs can be saved at as hi-res images but increasing the size of a PNG will reduce the overall quality of the image. A benefit of using PNGs (instead of JPGs) is that they support transparent and semi-transparent backgrounds. **When to use:** * When a SVG cannot be uploaded eg. on 3rd party apps chevron-rightEPS / PDF[hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#eps-pdf) These formats are used for print and in Adobe apps. All these formats are vector based and scalable. **When to use:** * **EPS** - often requested by printers especially for swag printing * **PDF** - a format that's independent of software, hardware or OS. Fonts can be embedded in PDFs. Best format for providing print-ready files * * * ### [hashtag](https://docs.secured.finance/resources/media-kit/brand-assets#conclusion) **Conclusion** Thank you for adhering to these guidelines. By doing so, you help maintain the strength and consistency of the Secured Finance brand. If you have any questions or need further clarification, please contact [\[email protected\]envelope](https://docs.secured.finance/cdn-cgi/l/email-protection#08676e6e616b616964487b6d6b7d7a6d6c256e616669666b6d266b6765) . [PreviousMedia Kitchevron-left](https://docs.secured.finance/resources/media-kit) [NextUSDFC Logochevron-right](https://docs.secured.finance/resources/media-kit/usdfc-logo) Last updated 1 year ago * [Primary Logo Versions](https://docs.secured.finance/resources/media-kit/brand-assets#primary-logo-versions) * [Color Specification](https://docs.secured.finance/resources/media-kit/brand-assets#color-specification) * [Reverse Version](https://docs.secured.finance/resources/media-kit/brand-assets#reverse-version) * [S Logo](https://docs.secured.finance/resources/media-kit/brand-assets#s-logo) * [Co-Branding](https://docs.secured.finance/resources/media-kit/brand-assets#co-branding) * [Positioning and Clear Space](https://docs.secured.finance/resources/media-kit/brand-assets#positioning-and-clear-space) * [Colour Palette and Colour Ratio Guideline](https://docs.secured.finance/resources/media-kit/brand-assets#colour-palette-and-colour-ratio-guideline) * [Download the brand asset pack](https://docs.secured.finance/resources/media-kit/brand-assets#download-the-brand-asset-pack) * [File format guide](https://docs.secured.finance/resources/media-kit/brand-assets#file-format-guide) * [Conclusion](https://docs.secured.finance/resources/media-kit/brand-assets#conclusion) sun-brightdesktopmoon sun-brightdesktopmoon --- # Tokenization | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#overview) Overview ------------------------------------------------------------------------------------------------------------- Our protocol allows Zero Coupon Bonds (Lending positions) to be tokenized as ERC20 standard tokens, which is called `ZCToken`, and withdrawn from the platform. This tokenization enables greater flexibility for users, allowing them to transfer their lending positions to other wallets or potentially trade them on secondary markets. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------------- The tokenization process involves converting lending positions into standard ERC20 tokens that can be withdrawn from the platform and later redeposited if desired. There are two main flows in this process: ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-withdrawal-flow) Token Withdrawal Flow When a user wants to withdraw their lending position as a token: ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-0268a78d30b8d9ba9b6f4bf9307833baae97eb06%252FZCToken%2520mint.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=5f6818fc&sv=2) ZC Token Minting Process ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-deposit-flow) Token Deposit Flow When a user wants to deposit their ZC token back into the platform: ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b88f80dfad9a1e3ebb362fb7b097dc47e74a5015%252FZCToken%2520burn.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=86d75599&sv=2) ZC Token Burning Process ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-types) Token Types Each ZC token has a maturity, but if the maturity is 0, it becomes a ZC perpetual token. Generally ZC tokens are minted from `FutureValueVault` but ZC perpetual tokens are minted from `GenesisValueVault`. Please check the [Genesis Value page](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value) for the reference. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-naming-conventions) Token Naming Conventions **ZC Token Names and Symbols (example as March 2024 expiry):** Asset ZC Token Name ZC Token Symbol ZC Perpetual Token Name ZC Perpetual Token Symbol ETH ZC ETH MAR2024 zcETH-2024-03 ZC ETH zcETH WBTC ZC WBTC MAR2024 zcWBTC-2024-03 ZC WBTC zcWBTC USDC ZC USDC MAR2024 zcUSDC-2024-03 ZC USDC zcUSDC axlFIL ZC axlFIL MAR2024 zcaxlFIL-2024-03 ZC axlFIL zcaxlFIL **Metamask Symbol Name Convention (max 11 chars, example as March 2024 expiry):** Asset ZC Token Name Metamask Symbol ETH ZC ETH MAR2024 zcETH24M WBTC ZC WBTC MAR2024 zcWBTC24M USDC ZC USDC MAR2024 zcUSDC24M axlFIL ZC axlFIL MAR2024 zcxFIL24M FIL ZC FIL MAR2024 zcFIL24M Month abbreviations: MAR = M; JUN = J; SEP = S; DEC = D [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Token Standard The token standard used for ZC tokens ERC20 Token Decimals Number of decimal places supported by ZC tokens 18 Maturity Format How maturity is represented in token names MMMYYYY (e.g., MAR2024) Symbol Format Format for token symbols zc\[ASSET\]-YYYY-MM Metamask Symbol Format Shortened format for Metamask display zc\[ASSET\]YYM Perpetual Token Maturity Maturity value for perpetual tokens 0 Minting Source (ZC Tokens) Contract that mints standard ZC tokens FutureValueVault Minting Source (Perpetual) Contract that mints perpetual ZC tokens GenesisValueVault [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#examples) Examples ------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-1-withdrawing-a-lending-position-as-a-zc-token) Example 1: Withdrawing a Lending Position as a ZC Token Alice has lent 1,000 USDC in the JUN2025 market and wants to transfer this position to another wallet: 1. Alice navigates to the "My Positions" section in the protocol interface 2. She selects her 1,000 USDC lending position in the JUN2025 market 3. She clicks "Withdraw as Token" and confirms the transaction 4. The protocol mints a "ZC USDC JUN2025" token (zcUSDC-2025-06) to Alice's wallet 5. The token represents Alice's right to receive 1,000 USDC plus interest at maturity 6. Alice can now transfer this token to any other Ethereum wallet ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-2-depositing-a-zc-token-back-into-the-protocol) Example 2: Depositing a ZC Token Back into the Protocol Bob has received a "ZC ETH SEP2024" token from a friend and wants to manage it within the protocol: 1. Bob navigates to the "Deposit" section in the protocol interface 2. He selects the "Deposit ZC Token" option 3. He selects his "ZC ETH SEP2024" token from his wallet 4. He confirms the transaction 5. The protocol burns the ZC token and credits Bob's account with the corresponding lending position 6. Bob can now view and manage this position within the protocol interface ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-3-using-zc-perpetual-tokens) Example 3: Using ZC Perpetual Tokens Charlie wants to create a more flexible lending position that isn't tied to a specific maturity: 1. Charlie deposits 5 ETH into the GenesisValueVault 2. The protocol mints "ZC ETH" perpetual tokens (zcETH) to Charlie's wallet 3. These tokens represent a standardized lending position without a fixed maturity date 4. Charlie can transfer these tokens to other users or use them in other DeFi protocols 5. When Charlie wants to redeem the underlying value, he can deposit the tokens back into the GenesisValueVault [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#what-is-the-difference-between-zc-tokens-and-zc-perpetual-tokens) What is the difference between ZC tokens and ZC perpetual tokens? ZC tokens have a specific maturity date (e.g., ZC ETH MAR2024) and represent a lending position that will mature on that date. ZC perpetual tokens (e.g., ZC ETH) do not have a specific maturity date and represent a standardized lending position that can be redeemed at any time. ZC tokens are minted from the FutureValueVault, while ZC perpetual tokens are minted from the GenesisValueVault. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#can-i-trade-zc-tokens-on-secondary-markets) Can I trade ZC tokens on secondary markets? Yes, ZC tokens are standard ERC20 tokens that can be transferred to any Ethereum wallet and potentially traded on secondary markets or used in other DeFi protocols. However, the liquidity of these tokens on secondary markets may vary depending on market conditions and the specific token. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#what-happens-to-my-zc-token-at-maturity) What happens to my ZC token at maturity? When a ZC token reaches its maturity date, it can be redeemed for the underlying asset plus any accrued interest. The protocol will handle the redemption process when you deposit the token back into the platform. Alternatively, if you participate in Auto-Rolling, your position can be automatically rolled over to a new maturity. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#how-do-i-add-zc-tokens-to-my-metamask-wallet) How do I add ZC tokens to my Metamask wallet? ZC tokens should appear automatically in your Metamask wallet after they are minted. However, if they don't appear, you can add them manually: 1. Click "Import tokens" in Metamask 2. Enter the token contract address (available from the protocol interface) 3. The token symbol and decimals should auto-populate 4. Click "Add Custom Token" Note that Metamask has a character limit for token symbols, so the symbols may appear slightly different (e.g., "zcETH24M" instead of "zcETH-2024-03"). ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#can-i-partially-withdraw-my-lending-position-as-a-zc-token) Can I partially withdraw my lending position as a ZC token? Yes, you can withdraw any portion of your lending position as a ZC token. The protocol will mint tokens representing the exact amount you choose to withdraw, and the remaining portion will stay in your account within the protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------- * [Standardization](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization) * [Zero-Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds) * [Order Book System](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Genesis Value](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value) * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) [PreviousCollateralizationchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/collateralization) [NextLiquidationchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#how-it-works) * [Token Withdrawal Flow](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-withdrawal-flow) * [Token Deposit Flow](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-deposit-flow) * [Token Types](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-types) * [Token Naming Conventions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#token-naming-conventions) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#examples) * [Example 1: Withdrawing a Lending Position as a ZC Token](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-1-withdrawing-a-lending-position-as-a-zc-token) * [Example 2: Depositing a ZC Token Back into the Protocol](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-2-depositing-a-zc-token-back-into-the-protocol) * [Example 3: Using ZC Perpetual Tokens](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#example-3-using-zc-perpetual-tokens) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#common-questions) * [What is the difference between ZC tokens and ZC perpetual tokens?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#what-is-the-difference-between-zc-tokens-and-zc-perpetual-tokens) * [Can I trade ZC tokens on secondary markets?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#can-i-trade-zc-tokens-on-secondary-markets) * [What happens to my ZC token at maturity?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#what-happens-to-my-zc-token-at-maturity) * [How do I add ZC tokens to my Metamask wallet?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#how-do-i-add-zc-tokens-to-my-metamask-wallet) * [Can I partially withdraw my lending position as a ZC token?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#can-i-partially-withdraw-my-lending-position-as-a-zc-token) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/tokenization#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # APR vs APY | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#overview) Overview ------------------------------------------------------------------------------------------------------------ APR (Annual Percentage Rate) and APY (Annual Percentage Yield) are two common measures of interest rates that are used in the DeFi loan and deposit markets. While they may seem similar, there are key differences between them, particularly in how they account for compounding interest. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------- The difference between APR and APY lies in how they account for compounding: 1. **APR (Annual Percentage Rate)** is a simple interest rate calculated by multiplying the periodic rate by the number of periods in a year. It does not account for compounding effects. 2. **APY (Annual Percentage Yield)** accounts for compounding by calculating the effective annual rate of return. It represents the actual return you would receive after accounting for the effects of compounding. The mathematical relationship between APR and APY is: APY\=(1+APRn)n−1APY = \\left(1 + \\frac{APR}{n}\\right)^n - 1APY\=(1+nAPR​)n−1 Where n is the number of compounding periods per year. circle-info The use of APY is widespread in DeFi projects because of the variable nature of their quoted interest, leading to the representation of compounded interest. APY assumes that the current variable rate remains constant for the next 365 days and compounds daily. Moreover, fixed-term projects that depend on variable rates as their underlying interest rate also utilize APY. However, adhering to the prevailing market conventions, our protocol naturally displays APR rather than APY. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------ Parameter Description Relevance to Protocol Compounding Frequency How often interest is compounded N/A for Zero-Coupon Bonds Term Length Duration of the investment Determines the fixed rate period Nominal Rate Stated interest rate before compounding Used in APR calculations Effective Rate Actual yield after accounting for compounding Equivalent to APY Day Count Convention Method of calculating days for interest accrual Actual/365 used in protocol Reinvestment Assumption Assumption about reinvesting proceeds Auto-rolling handles reinvestment Market Convention Standard way rates are quoted in a market Protocol follows fixed-income market conventions [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#what-is-apy) What is APY? ------------------------------------------------------------------------------------------------------------------- APY stands for Annual Percentage Yield, which is a measure of the interest earned on a deposit or investment over a year, taking into account the effect of **compounding** interest. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-about-apr) How about APR? ----------------------------------------------------------------------------------------------------------------------- APR is the interest rate that is charged on a loan or credit card balance. It is the annual rate of interest that is applied to the outstanding balance on the loan, expressed as a percentage. The APR does **not** take **compounding** into account. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#examples) Examples ------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-1-comparing-apr-and-apy-for-a-6-month-loan) Example 1: Comparing APR and APY for a 6-Month Loan Bob lends 100 USD with a fixed rate of 10% for 6 months. How much will he earn after 6 months? #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#with-10-apr) With 10% APR: ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-c27fed504b6fd6df9c9ba645f64d9363434d5eec%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=bc90610c&sv=2) APR Calculation for 6-Month Loan He earns 5% interest for 6 months (half of the annual 10% rate), and his future value will be 105 USD, meaning he earns 5 dollars. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#with-10-apy) With 10% APY: In case this 10% APY is compounded every 6 months, the relationship between 10% APY and the equivalent APR 'r' would be: ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-b8e753f8d912a2d7aa6a1306dd7be0ecdee3be94%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=3e786215&sv=2) APY to APR Conversion Formula Hence his 100 USD will grow to 104.88 USD, meaning he earns 4.88 dollars. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-2-different-compounding-frequencies) Example 2: Different Compounding Frequencies Let's examine how different compounding frequencies affect the effective yield on a 12% APR loan of 1,000 USD for one year: Compounding Frequency Calculation Final Amount Effective APY Annual (1×) 1,000 × (1 + 0.12) 1,120.00 USD 12.00% Semi-annual (2×) 1,000 × (1 + 0.12/2)² 1,123.60 USD 12.36% Quarterly (4×) 1,000 × (1 + 0.12/4)⁴ 1,125.51 USD 12.55% Monthly (12×) 1,000 × (1 + 0.12/12)¹² 1,126.83 USD 12.68% Daily (365×) 1,000 × (1 + 0.12/365)³⁶⁵ 1,127.47 USD 12.75% Continuous 1,000 × e^(0.12) 1,127.50 USD 12.75% This example demonstrates that more frequent compounding results in a higher effective yield (APY) for the same stated APR. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-3-converting-between-apr-and-apy) Example 3: Converting Between APR and APY To convert between APR and APY: **From APR to APY:** Where n is the number of compounding periods per year. **From APY to APR:** For example, with monthly compounding (n=12): * A 12% APR yields an APY of (1 + 0.12/12)^12 - 1 = 12.68% * A 12% APY corresponds to an APR of 12 × ((1 + 0.12)^(1/12) - 1) = 11.39% [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#why-does-the-fixed-rate-lending-protocol-use-apr-instead-of-apy) Why does the Fixed-Rate Lending Protocol use APR instead of APY? The Fixed-Rate Lending Protocol uses APR for several reasons: 1. **Market Convention**: Fixed-rate markets traditionally quote rates as APR, making it easier for traditional finance participants to understand 2. **Simplicity**: APR provides a straightforward calculation without the complexity of compounding assumptions 3. **Transparency**: With fixed terms, the exact return is known upfront without needing to make assumptions about reinvestment 4. **Consistency**: Using APR allows for direct comparison between different maturity periods 5. **Zero-Coupon Bond Structure**: Our protocol uses Zero-Coupon Bonds which naturally align with APR calculations ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-do-i-compare-rates-between-protocols-that-use-different-conventions) How do I compare rates between protocols that use different conventions? To compare rates between protocols: 1. **Identify the Convention**: Determine whether each protocol quotes rates as APR or APY 2. **Convert to the Same Basis**: Use the conversion formulas to convert all rates to either APR or APY 3. **Consider Compounding Frequency**: Take into account how often interest is compounded in each protocol 4. **Account for Term Length**: For fixed-term protocols, consider the duration of the investment 5. **Factor in Additional Rewards**: Some protocols offer additional token rewards that aren't reflected in the quoted rates ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#does-compounding-frequency-matter-for-zero-coupon-bonds) Does compounding frequency matter for Zero-Coupon Bonds? For Zero-Coupon Bonds: 1. **No Periodic Payments**: Zero-Coupon Bonds don't make periodic interest payments, so traditional compounding doesn't apply 2. **Implicit Compounding**: The discount at which the bond is purchased implicitly accounts for the time value of money 3. **APR Representation**: The yield is typically expressed as an APR based on the purchase price and face value 4. **Single Payment at Maturity**: Investors receive the full face value at maturity, with no reinvestment decisions needed 5. **Direct Comparison**: This structure allows for direct comparison of rates across different maturity periods ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#what-happens-if-i-withdraw-before-maturity-in-a-fixed-rate-protocol) What happens if I withdraw before maturity in a fixed-rate protocol? If you withdraw before maturity: 1. **Market Price Exposure**: You'll need to sell your position at the current market price, which may be higher or lower than your entry price 2. **Yield Calculation Changes**: Your actual yield will be determined by the price at which you sell, not the original APR 3. **No Guaranteed Rate**: The guaranteed rate only applies if you hold until maturity 4. **Potential Slippage**: Depending on market liquidity, you may experience slippage when exiting your position 5. **Transaction Costs**: Additional fees may apply when closing a position early ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-does-inflation-affect-apr-and-apy) How does inflation affect APR and APY? Inflation affects both APR and APY in similar ways: 1. **Real Returns**: To calculate real returns, subtract the inflation rate from the nominal APR or APY 2. **Purchasing Power**: Higher inflation reduces the purchasing power of your returns 3. **Fixed vs. Variable Rates**: Fixed rates provide certainty but may not adjust for changing inflation 4. **Term Premium**: Longer-term fixed rates typically include a premium to account for inflation uncertainty 5. **Inflation-Protected Options**: Some protocols offer inflation-protected options that adjust returns based on inflation metrics [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------ * [Discount Factor](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor) * [ZC Bond Price to APR](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) [PreviousAdvanced Topicschevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics) [NextZC Bond Price to APRchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#key-parameters) * [What is APY?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#what-is-apy) * [How about APR?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-about-apr) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#examples) * [Example 1: Comparing APR and APY for a 6-Month Loan](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-1-comparing-apr-and-apy-for-a-6-month-loan) * [Example 2: Different Compounding Frequencies](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-2-different-compounding-frequencies) * [Example 3: Converting Between APR and APY](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#example-3-converting-between-apr-and-apy) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#common-questions) * [Why does the Fixed-Rate Lending Protocol use APR instead of APY?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#why-does-the-fixed-rate-lending-protocol-use-apr-instead-of-apy) * [How do I compare rates between protocols that use different conventions?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-do-i-compare-rates-between-protocols-that-use-different-conventions) * [Does compounding frequency matter for Zero-Coupon Bonds?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#does-compounding-frequency-matter-for-zero-coupon-bonds) * [What happens if I withdraw before maturity in a fixed-rate protocol?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#what-happens-if-i-withdraw-before-maturity-in-a-fixed-rate-protocol) * [How does inflation affect APR and APY?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#how-does-inflation-affect-apr-and-apy) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy#related-resources) sun-brightdesktopmoon Copy APY = (1 + APR/n)^n - 1 Copy APR = n × ((1 + APY)^(1/n) - 1) sun-brightdesktopmoon --- # Discount Factor | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#overview) Overview ----------------------------------------------------------------------------------------------------------------- The discount factor in bond trading is the mathematical factor used to convert a series of future cash flows into a present value. The discount factor is useful as it allows investors to compare bonds of different maturities and features as they can convert all cash flow streams into a present value. This also helps investors compare each bond's expected return more accurately in traditional finance. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------- The zero-coupon(ZC) bond price on our platform equals the Discount Factor times 100(our ZC bond is redeemable at 100 at maturity). Using the ZC bond price, you can easily calculate your Present Value(PV) and Future Value(FV). ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-d88cabfca2a4cbb3143e1b1ad53a9d9b59524be0%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=af1a786f&sv=2) The discount factor is calculated using the formula: Discount Factor\=1(1+r)t\\text{Discount Factor} = \\frac{1}{(1 + r)^t}Discount Factor\=(1+r)t1​ Where: * r is the interest rate per period * t is the number of periods until maturity For Zero-Coupon bonds, the price is directly related to the discount factor: ZC Bond Price\=Discount Factor×100\\text{ZC Bond Price} = \\text{Discount Factor} \\times 100ZC Bond Price\=Discount Factor×100 [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#key-parameters) Key Parameters ----------------------------------------------------------------------------------------------------------------------------- Parameter Description Impact on Discount Factor Interest Rate The rate used to discount future cash flows Higher rates → Lower discount factor Time to Maturity Time remaining until the bond matures Longer maturity → Lower discount factor Compounding Frequency How often interest is compounded More frequent → Lower discount factor Risk Premium Additional return required for taking risk Higher premium → Lower discount factor Face Value The amount paid at maturity (100 on our platform) No direct impact on discount factor Market Price Current trading price of the bond Determines the implied discount factor [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#examples) Examples ----------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-1-basic-discount-factor-calculation) Example 1: Basic Discount Factor Calculation Let's calculate the discount factor for a 3-month Zero-Coupon Bond with an annual interest rate of 5%: 1. Convert the annual rate to the appropriate period (quarterly in this case): 5% / 4 = 1.25% per quarter 2. Apply the discount factor formula: 3. Calculate the ZC Bond price: 4. This means a bond with face value of 100 would trade at 98.77 today ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-2-calculating-future-value-from-present-value) Example 2: Calculating Future Value from Present Value Bob buys a 1,000 FIL notional of the ZC bond at 96.90 today, it will be redeemable at 1,000 / 96.90 \* 100 = 1,032 FIL at maturity. Let's break down this calculation: 1. The ZC Bond price is 96.90, meaning the discount factor is 0.9690 2. Bob's present value investment is 1,000 FIL 3. To calculate the future value at maturity: 4. Bob will receive 1,032 FIL at maturity, representing a return of 32 FIL (3.2%) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-3-comparing-bonds-with-different-maturities) Example 3: Comparing Bonds with Different Maturities An investor wants to compare two Zero-Coupon Bonds: * Bond A: 3-month maturity, price of 98.50 * Bond B: 6-month maturity, price of 97.00 1. Calculate the discount factor for each bond: 2. Calculate the implied quarterly interest rates: 3. Convert to annualized rates: 4. Bond B offers a slightly higher annualized yield, but requires a longer commitment [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-does-the-discount-factor-relate-to-interest-rates) How does the discount factor relate to interest rates? The discount factor and interest rates are inversely related: 1. **Inverse Relationship**: As interest rates increase, discount factors decrease, and vice versa 2. **Mathematical Connection**: The discount factor is calculated as 1/(1+r)^t, where r is the interest rate 3. **Market Interpretation**: Higher interest rates mean future cash flows are worth less today 4. **Price Impact**: When interest rates rise, Zero-Coupon bond prices fall 5. **Yield Calculation**: The yield of a Zero-Coupon bond can be derived from its discount factor ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#why-do-zero-coupon-bonds-trade-at-a-discount-to-face-value) Why do Zero-Coupon bonds trade at a discount to face value? Zero-Coupon bonds trade at a discount because: 1. **Time Value of Money**: Money today is worth more than the same amount in the future 2. **Interest Compensation**: The discount represents the interest earned over the bond's life 3. **No Interim Payments**: Unlike coupon bonds, all returns come from the difference between purchase price and face value 4. **Risk Premium**: The discount also compensates for risks like default and inflation 5. **Market Forces**: Supply and demand dynamics in the bond market also affect the size of the discount ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-can-i-use-discount-factors-to-compare-investment-opportunities) How can I use discount factors to compare investment opportunities? Discount factors help compare investments by: 1. **Standardization**: Converting future cash flows to present value creates a common basis for comparison 2. **Risk Assessment**: Different discount factors can be applied based on the risk profile of each investment 3. **Maturity Comparison**: Allows comparison of investments with different time horizons 4. **Yield Calculation**: Enables calculation of yields for comparison with other investment types 5. **Opportunity Cost**: Helps quantify what you're giving up by choosing one investment over another ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-do-discount-factors-change-as-a-bond-approaches-maturity) How do discount factors change as a bond approaches maturity? As a bond approaches maturity: 1. **Convergence to Par**: The discount factor gradually increases toward 1.0 2. **Price Appreciation**: The bond price increases toward its face value (100) 3. **Reduced Volatility**: Price sensitivity to interest rate changes decreases 4. **Time Decay**: The effect of time value of money diminishes 5. **Yield Compression**: The yield to maturity converges with the current market rate for the remaining time period ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#what-factors-affect-the-discount-factor-besides-interest-rates) What factors affect the discount factor besides interest rates? Several factors influence discount factors: 1. **Credit Risk**: Higher default risk leads to larger discounts (smaller discount factors) 2. **Liquidity Premium**: Less liquid bonds require higher yields, resulting in smaller discount factors 3. **Term Premium**: Longer maturities typically have additional premiums, affecting the discount factor 4. **Market Sentiment**: Risk appetite in the market can influence discount rates 5. **Inflation Expectations**: Higher expected inflation leads to larger discounts on nominal cash flows [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------- * [APR vs APY](https://docs.secured.finance/fixed-rate-lending/advanced-topics/apr-vs-apy) * [ZC Bond Price to APR](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) [PreviousZC Bond Price to APRchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) [NextZC Bond Collateralchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#examples) * [Example 1: Basic Discount Factor Calculation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-1-basic-discount-factor-calculation) * [Example 2: Calculating Future Value from Present Value](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-2-calculating-future-value-from-present-value) * [Example 3: Comparing Bonds with Different Maturities](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#example-3-comparing-bonds-with-different-maturities) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#common-questions) * [How does the discount factor relate to interest rates?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-does-the-discount-factor-relate-to-interest-rates) * [Why do Zero-Coupon bonds trade at a discount to face value?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#why-do-zero-coupon-bonds-trade-at-a-discount-to-face-value) * [How can I use discount factors to compare investment opportunities?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-can-i-use-discount-factors-to-compare-investment-opportunities) * [How do discount factors change as a bond approaches maturity?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#how-do-discount-factors-change-as-a-bond-approaches-maturity) * [What factors affect the discount factor besides interest rates?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#what-factors-affect-the-discount-factor-besides-interest-rates) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor#related-resources) sun-brightdesktopmoon Copy Discount Factor = 1 / (1 + 0.0125)^1 = 0.9877 Copy ZC Bond Price = 0.9877 × 100 = 98.77 Copy Future Value = Present Value × (100 / ZC Bond Price) Future Value = 1,000 × (100 / 96.90) = 1,032 FIL Copy Discount Factor A = 98.50 / 100 = 0.9850 Discount Factor B = 97.00 / 100 = 0.9700 Copy For Bond A (1 quarter): r = (1/0.9850)^(1/1) - 1 = 1.52% per quarter For Bond B (2 quarters): r = (1/0.9700)^(1/2) - 1 = 1.54% per quarter Copy Bond A: 1.52% × 4 = 6.08% annual rate Bond B: 1.54% × 4 = 6.16% annual rate sun-brightdesktopmoon --- # Case Study: Order Status & Transition | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#overview) Overview -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This case study explores the entire spectrum of order statuses through detailed examples, incorporating our platform's price range limit mechanism, [the Circuit Breakerarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/circuit-breaker/README.md) , for practical understanding. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- circle-info For an in-depth understanding of the loan lifecycle, please visit the '[Order Life Cycle](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle) ' section. The chart below illustrates how different order types (Market, Overlapping Limit, and Non-Overlapping Limit) interact with various order statuses throughout their lifecycle. This chart, combined with the Order Life Cycle explanation, provides a comprehensive understanding of how orders progress through the system and how exceptional cases are handled. When using this chart: 1. First identify your order type (column) 2. Then follow the possible statuses (rows) that apply to your order type 3. Note that some statuses are marked as "Not applicable" for certain order types 4. Pay attention to "Final" statuses which represent the end of an order's lifecycle 5. Combined states (like "Partially Filled & Blocked") indicate orders that were partially executed before reaching a terminal state This chart works in conjunction with the Circuit Breaker mechanism, which prevents extreme price movements by limiting the range within which orders can execute. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#understanding-order-status-transitions) Understanding Order Status Transitions The chart below serves as a comprehensive guide to understanding how orders move through different states in the Fixed-Rate Lending Protocol. Each order type follows a specific path through the system: * **Market Orders**: These are intended for immediate execution and typically transition directly to "Filled" status if there's sufficient liquidity. If there's partial liquidity, they may become "Partially Filled" before reaching a terminal state like "Killed" or "Blocked". * **Overlapping Limit Orders**: These orders match with existing orders in the orderbook and can be executed immediately. They may be "Filled" completely, "Partially Filled" (with the remainder staying open), or transition to "Cancelled" or "Expired" states if the user cancels them or they reach maturity. * **Non-Overlapping Limit Orders**: These orders don't match with existing orders and remain "Open" in the orderbook. They can later transition to "Partially Filled", "Filled", "Cancelled", or "Expired" states depending on market conditions and user actions. The exceptional cases are handled through specific status transitions: * Orders that would execute outside the Circuit Breaker price range become "Blocked" * Orders that can't be filled due to insufficient liquidity become "Killed" * Orders that reach maturity without being filled become "Expired" By understanding these transitions, users can better predict how their orders will behave under different market conditions and take appropriate actions to manage their positions. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#key-parameters) Key Parameters -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Order Statuses Possible states an order can be in Open, Partially Filled, Filled, Killed, Blocked, Cancelled, Expired Final Statuses Order states that cannot transition further Filled, Killed, Blocked, Cancelled, Expired Circuit Breaker Range Price range within which orders can be executed ±2% from last price (in example) Order Types Types of orders that can be placed Market, Limit (Overlapping and Non-Overlapping) Order Sides Sides of the orderbook Buy (Lend), Sell (Borrow) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#order-status-and-order-types) Order Status and Order Types Status \\ Order Type Market Order Overlapping Limit Order Limit Order **Open** Not applicable; enters immediate execution Rare; unless no overlapping order Waits for the market to reach the limit price **Partially Filled** Only used as a combined state; no remaining orders (ex. Partially Filled & Blocked) Partial execution if not enough liquidity; remains until further filled or terminated If the market reaches the limit price but not fully executable due to liquidity, stays until more activity **Filled (Final)** Immediately fully executed at current market prices with sufficient liquidity Fully executed once the market fully meets the limit price Fully executed once the market fully meets the limit price **Killed (Final)** Removed if cannot be fully executed due to lack of liquidity Not applicable; remains in the market as Partially Filled or Open Not applicable; remains in the market as Partially Filled or Open **Blocked (Final)** Removed if cannot be fully executed due to circuit breakers Not applicable; remains in the market as Partially Filled or Open Not applicable; remains in the market as Partially Filled or Open **Cancelled (Final)** Not applicable as they are executed immediately Can be canceled before execution or after being Partially Filled Can be canceled at any point before being fully executed **Expired (Final)** Not applicable as they are executed immediately Expires if not executed within a specific timeframe after being Partially Filled Expires if the set timing (ex. maturity) passes without full execution ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#orderbook-scenario) Orderbook Scenario Our scenario unfolds within the bounds of an order book, structured around three key order types: 'Market Order', 'Overlapping Limit Order', and 'Non-Overlapping Limit Order'. Let's consider the following order book setup: [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#examples) Examples -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#market-orders) Market Orders #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#filled) Filled * **Example**: Buy 10 at market. * **Transition**: Order is **Filled** purchasing 10 units at 91. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#partially-filled-and-killed) Partially Filled & Killed * **Example**: Buy 20 at market. * **Transition**: Order is **Partially Filled** with 10 units at 91, remaining 10 units are **Killed** due to lack of liquidity up to the upper limit. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#partially-filled-and-blocked) Partially Filled & Blocked * **Example**: Sell 10 at market. * **Transition**: Order is **Partially Filled** with 5 units at 89, remaining 5 units are **Blocked** then **Killed** due to no liquidity at the lower limit. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#overlapping-limit-orders) Overlapping Limit Orders #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#filled-1) Filled * **Example**: Buy 10 at 91. * **Transition**: Order is **Filled** with 10 units at 91. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#partially-filled) Partially Filled * **Example**: Buy 15 at 93. * **Transition**: Order is **Partially Filled** with 10 units at 93. Remaining 5 units are kept open at 93 but cannot be executed until the market moves and the circuit breaker price is adjusted to allow execution. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#canceled) Canceled * **Example**: After being partially filled, cancel the remaining order. * **Transition**: Remaining order is **Canceled**. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#expired) Expired * **Example**: Buy 15 at 91; remaining 5 units are kept open. Then no fill and lending market matures. * **Transition**: Order **Expires** after the maturity time passes. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#non-overlapping-limit-orders) Non-Overlapping Limit Orders #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#open) Open * **Example**: Buy 10 at 89. * **Transition**: Order is **Open**, awaiting a match. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#partially-filled-1) Partially Filled * **Example**: Buy 10 at 89 (total 15 **Open** on the orderbook), then another trader sells 10 at 89. * **Transition**: Order is **Partially Filled** with 5 units at 89, 5 units remain open. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#canceled-1) Canceled * **Example**: After being partially filled, cancel the remaining order. * **Transition**: Remaining order is **Canceled**. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#expired-1) Expired * **Example**: Buy 10 at 89, no fill and lending market matures. * **Transition**: Order **Expires** after the maturity time passes. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#what-happens-to-my-order-if-its-partially-filled) What happens to my order if it's partially filled? When an order is partially filled, the filled portion becomes a position, while the unfilled portion remains in the orderbook as an open order. You can choose to leave it open, cancel it, or wait for it to be filled. For market orders, the unfilled portion may be killed or blocked depending on market conditions and circuit breaker limits. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#why-would-my-market-order-get-blocked) Why would my market order get blocked? Market orders can be blocked when they would execute at a price outside the circuit breaker limits. This is a safety mechanism to prevent extreme price movements and protect the market from manipulation. When a market order is blocked, the unfilled portion is killed and removed from the orderbook. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#can-i-modify-an-order-thats-already-in-the-orderbook) Can I modify an order that's already in the orderbook? No, you cannot modify an existing order. If you want to change the price or amount, you'll need to cancel your existing order and place a new one with the updated parameters. This ensures price-time priority is maintained fairly in the orderbook. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#whats-the-difference-between-an-order-being-killed-versus-blocked) What's the difference between an order being killed versus blocked? * **Killed**: An order is killed when there's insufficient liquidity to fill it completely. This typically happens with market orders when there are no more matching orders in the orderbook. * **Blocked**: An order is blocked when its execution would violate the circuit breaker price limits. This is a safety mechanism to prevent extreme price volatility. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#what-happens-to-my-orders-when-a-market-matures) What happens to my orders when a market matures? Any open or partially filled orders in a market that reaches maturity will automatically expire. This means they are removed from the orderbook and will not be executed. Any filled portions of orders have already become positions and will be subject to the auto-rolling mechanism. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- * [Order Life Cycle](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle) * [Order Types](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-type) * [Orderbook Mechanicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/order-book-system.md) * [Circuit Breakerarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/circuit-breaker/README.md) [PreviousOrder Life Cyclechevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle) [NextStandardizationchevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#how-it-works) * [Understanding Order Status Transitions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#understanding-order-status-transitions) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#key-parameters) * [Order Status and Order Types](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#order-status-and-order-types) * [Orderbook Scenario](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#orderbook-scenario) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#examples) * [Market Orders](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#market-orders) * [Overlapping Limit Orders](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#overlapping-limit-orders) * [Non-Overlapping Limit Orders](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#non-overlapping-limit-orders) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#common-questions) * [What happens to my order if it's partially filled?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#what-happens-to-my-order-if-its-partially-filled) * [Why would my market order get blocked?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#why-would-my-market-order-get-blocked) * [Can I modify an order that's already in the orderbook?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#can-i-modify-an-order-thats-already-in-the-orderbook) * [What's the difference between an order being killed versus blocked?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#whats-the-difference-between-an-order-being-killed-versus-blocked) * [What happens to my orders when a market matures?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#what-happens-to-my-orders-when-a-market-matures) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition#related-resources) sun-brightdesktopmoon Copy Price | Amount ------------- 93 | 0 92 | 0 <- Upper Circuit Breaker Limit 91 | 10 90 -- Last Price 89 | 5 88 | 0 <- Lower Circuit Breaker Limit 87 | 10 sun-brightdesktopmoon --- # New Market Listing and Delisting | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#overview) Overview -------------------------------------------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending Protocol maintains a dynamic marketplace by carefully managing the introduction of new markets and the retirement of existing ones. Secured Finance aims to provide a diverse range of loan assets to its users while ensuring orderly transitions. This page outlines the processes for both listing new assets and delisting existing ones. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#what-youll-learn) What You'll Learn ------------------------------------------------------------------------------------------------------------------------------------------------------------------- * How new markets are introduced using the Itayose method * How pre-open orders facilitate fair price discovery * How orderbooks expand over time for newly listed assets * How assets are delisted in an orderly fashion * How loan expiry and redemption work during the delisting process [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#key-components) Key Components -------------------------------------------------------------------------------------------------------------------------------------------------------------- * [**Itayose Method**](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) : The fair price discovery mechanism used when listing new markets * **Pre-Open Orders**: The process for placing orders before a market officially opens * **Orderbook Expansion**: How orderbooks grow over time for newly listed assets * **Delisting Process**: The orderly retirement of markets [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#listing-process) Listing Process ---------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#itayose-method) Itayose Method The Itayose method is used for fair price discovery when listing new markets. For more details, see the [Itayose Fair Price Discovery](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) page. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#pre-open-orders) Pre-Open Orders Seven days before the launch of new tenor periods for a newly listed asset, users can place pre-open 'limit orders' on one side of the orderbook. The orderbook is frozen one hour before the market opens, preventing any further actions like placing, amending, or canceling orders. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#orderbook-expansion) Orderbook Expansion Initially, four orderbooks are opened, representing approximately a 1-year duration. Every week, an additional 3-month orderbook is added, eventually expanding to eight orderbooks to cover a 2-year duration, aligning with other assets on the platform. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#delisting-process) Delisting Process -------------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#auto-rolling-cessation) Auto-Rolling Cessation The first step in the delisting process is to stop the [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) feature for the asset in question. This means that matured loans will not be automatically reinvested into the nearest 3-month bucket. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#loan-expiry) Loan Expiry Loans for the delisted asset will be allowed to expire naturally, without any forced liquidation or closure. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#repayment-and-liquidation) Repayment and Liquidation After the loan's maturity, borrowers have a one-week window to repay their debt. Failure to do so will result in the liquidation of the borrower's collateral, ensuring lenders can recover their funds and maintain protocol stability. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#asset-redemption) Asset Redemption Finally, after the 7-day repayment period, lenders can redeem their entire asset along with the accrued interest. circle-info **Trading will still be available for those who wish to unwind or clean up their positions even under the delisting process.** By following these procedures, Secured Finance ensures a smooth transition for both listing and delisting assets, maintaining the integrity and stability of the marketplace. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------------------------------------------- * [Market Dynamics](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) * [Itayose Fair Price Discovery](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) [PreviousPrice Discovery for Auto-Rollingchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling/price-discovery-for-auto-rolling) [NextItayose - Fair Price Discoverychevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#what-youll-learn) * [Key Components](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#key-components) * [Listing Process](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#listing-process) * [Itayose Method](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#itayose-method) * [Pre-Open Orders](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#pre-open-orders) * [Orderbook Expansion](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#orderbook-expansion) * [Delisting Process](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#delisting-process) * [Auto-Rolling Cessation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#auto-rolling-cessation) * [Loan Expiry](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#loan-expiry) * [Repayment and Liquidation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#repayment-and-liquidation) * [Asset Redemption](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#asset-redemption) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/new-market-listing-and-delisting#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Points | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#prerequisites) Prerequisites --------------------------------------------------------------------------------------------------------------------------------- * A connected wallet * Access to the Secured Finance platform * Basic understanding of the platform's features [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#overview) Overview ----------------------------------------------------------------------------------------------------------------------- The [**Points system**arrow-up-right](https://app.secured.finance/points/) rewards you for your contributions to the Secured Finance Protocol. By engaging in various activities on the platform, you can accumulate points that reflect your involvement and support. These points may be used for governance, rewards, or other benefits within the ecosystem. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-1-accessing-the-points-dashboard) Step 1: Accessing the Points Dashboard ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1. Navigate to the [Secured Finance platformarrow-up-right](https://app.secured.finance/) 2. Connect your wallet if not already connected 3. Click on the "Points" tab in the main navigation 4. The dashboard will load with your current points balance and activity history [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-2-understanding-how-to-earn-points) Step 2: Understanding How to Earn Points -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- You can earn SFP through several activities: 1. **Deposits** * Earn points by depositing assets into the platform * Points are calculated based on the value and duration of your deposits 2. **Limit Orders** * Provide liquidity to the order book by placing limit orders * Earn points for improving market efficiency * Higher points for orders that remain in the book longer 3. **Active Positions** * Maintain active trading positions to drive ecosystem growth * Points are awarded based on position size and duration 4. **Referrals** * Invite new users to the platform * Earn a percentage of the points they earn * Access your unique referral link in the Points Dashboard 5. **Daily Login** * Earn points by logging in and connecting your wallet daily * Consecutive logins may provide bonus points [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-3-tracking-your-progress) Step 3: Tracking Your Progress ------------------------------------------------------------------------------------------------------------------------------------------------------------------ The Points Dashboard provides several tools to monitor your progress: 1. Check your total points balance at the top of the dashboard 2. View a breakdown of points earned by activity type 3. Track your historical point accumulation through the activity log 4. See your ranking on the community leaderboard ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Fgithub.com%2FSecured-Finance%2Fsecured-finance-docs%2Fblob%2Fmain%2F.gitbook%2Fassets%2Fpoints-dashboard.png&width=768&dpr=3&quality=100&sign=91dc013a&sv=2) Points Dashboard [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-4-participating-in-quests) Step 4: Participating in Quests -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Quests are special challenges that offer additional point rewards: 1. Navigate to the "Quests" section of the Points Dashboard 2. Browse available quests and their requirements 3. Complete quest objectives to earn bonus points 4. Track your quest progress in the dashboard [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-5-using-your-referral-link) Step 5: Using Your Referral Link ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- To invite others and earn referral points: 1. Find your unique referral link in the "Referrals" section 2. Share this link with potential users 3. When they sign up and start earning points, you'll receive a percentage 4. Monitor your referral earnings in the dashboard [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#next-steps) Next Steps --------------------------------------------------------------------------------------------------------------------------- After understanding the Points system, you might want to: * [Start lending assetsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/lending-assets.md) to earn more points * [Place limit ordersarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/getting-started/trading/README.md) to provide liquidity and earn points * [Learn about tokenomicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/community-and-support/tokenomics/secured-finance-points-sfp-v2/README.md) to understand the long-term value of points [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#troubleshooting) Troubleshooting ------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#points-not-showing-up) Points Not Showing Up If your points aren't appearing after an activity: * Points may take a few minutes to be calculated and credited * Ensure your wallet is properly connected * Check that the activity meets the minimum requirements for point rewards * Refresh the page and try again ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#referral-not-working) Referral Not Working If your referrals aren't being tracked: * Ensure the person you referred used your exact referral link * Check that they completed the registration process * Referral points may only be awarded after the referred user earns their first points * Contact support if issues persist ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#quest-progress-not-updating) Quest Progress Not Updating If your quest progress isn't updating: * Some quests may have specific conditions that must be met * Quest progress may update on a delay * Try completing the action again * Refresh the page to see if progress has updated [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#more-information) More Information --------------------------------------------------------------------------------------------------------------------------------------- For detailed information on the SFP system, including point calculations and reward structures, please visit our [Secured Finance Points (SFP)arrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/community-and-support/tokenomics/secured-finance-points-sfp-v2/README.md) page. [PreviousBridgechevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge) [NextCampaignchevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/campaign) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#overview) * [Step 1: Accessing the Points Dashboard](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-1-accessing-the-points-dashboard) * [Step 2: Understanding How to Earn Points](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-2-understanding-how-to-earn-points) * [Step 3: Tracking Your Progress](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-3-tracking-your-progress) * [Step 4: Participating in Quests](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-4-participating-in-quests) * [Step 5: Using Your Referral Link](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#step-5-using-your-referral-link) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#troubleshooting) * [Points Not Showing Up](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#points-not-showing-up) * [Referral Not Working](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#referral-not-working) * [Quest Progress Not Updating](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#quest-progress-not-updating) * [More Information](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/points#more-information) sun-brightdesktopmoon sun-brightdesktopmoon --- # Zero-Coupon Bonds | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#overview) Overview ---------------------------------------------------------------------------------------------------------------------------------- Zero-Coupon bonds are debt securities that do not pay interest (coupons) but are traded at a deep discount, rendering profit at maturity when the bond is redeemed for its full face value. The Secured Finance platform uses Zero-Coupon bonds as the standardized instrument for fixed-rate lending and borrowing. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------------ The Zero-Coupon standard was chosen for its cost efficiency, simplicity, and low risk. With only two cash flows involved in the transaction - the initial and final exchanges - it saves on gas and operational costs. Investors can enjoy the simplicity of not having to track or reinvest coupon payments. The frequency of transactions is minimized, reducing operational risks. Zero-Coupon bonds are traded at a discount to their face value and redeemed at full face value at maturity. On the Secured Finance platform, bonds are redeemable at 100. The platform streamlines the borrowing and lending process by allowing users to specify the desired 'Price' and 'Amount' parameters. The system instantaneously calculates the implied Annual Percentage Rate (APR), interest accrual, estimated $ value, and transaction fee upon submission. For further information on [ZC Bond Price to Yield conversion](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) , please consult the relevant materials. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Bond Par Value The value at which bonds are redeemed at maturity 100 Maximum Bond Price The maximum price allowed for bond orders 100.00 Minimum Bond Price The minimum price allowed for bond orders Varies by asset Price Precision Decimal precision for bond prices 2 decimal places Yield Calculation How yield is calculated from bond price See [ZC Bond Price to APR](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#examples) Examples ---------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#example-1-lending-with-zero-coupon-bonds) Example 1: Lending with Zero-Coupon Bonds Bob wants to lend 1,000 FIL for 1 year at a 25% APY: 1. He navigates to the lending interface and selects the 1-year maturity market 2. For a 25% APY, he sets his price at 80.00 (calculated as: 100 / (1 + 0.25) = 80) 3. He places a limit order to buy Zero-Coupon bonds at this price 4. When the order is filled, he pays 800 FIL (1,000 × 80.00 / 100) 5. At maturity, he receives 1,000 FIL, earning 200 FIL in interest 6. This represents a 25% return on his initial investment of 800 FIL ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#example-2-borrowing-with-zero-coupon-bonds) Example 2: Borrowing with Zero-Coupon Bonds Alice needs to borrow FIL for 6 months and is willing to pay a 20% APR: 1. After depositing sufficient collateral, she navigates to the borrowing interface 2. For a 20% APR on a 6-month term, the price would be approximately 90.91 (calculated as: 100 / (1 + 0.20 × 0.5) = 90.91) 3. She places a market order to sell Zero-Coupon bonds at this price 4. When the order is filled, she receives 909.1 FIL upfront (1,000 × 90.91 / 100) 5. At maturity, she will need to repay 1,000 FIL 6. The effective interest paid is 90.9 FIL on a loan of 909.1 FIL for 6 months [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#why-use-zero-coupon-bonds-instead-of-traditional-interest-bearing-loans) Why use Zero-Coupon bonds instead of traditional interest-bearing loans? Zero-Coupon bonds offer several advantages: they're simpler to implement on-chain (only two cash flows), more gas-efficient, eliminate reinvestment risk for lenders, and provide clear, upfront terms for both borrowers and lenders. The discount-to-par structure also makes yield calculations transparent and intuitive. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#how-do-i-calculate-the-yield-on-a-zero-coupon-bond) How do I calculate the yield on a Zero-Coupon bond? For bonds with maturity less than 1 year: APR = (100/BondPrice - 1) × (365/DaysToMaturity) For bonds with maturity greater than 1 year: APR = (100/BondPrice)^(1/YearsToMaturity) - 1 ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#can-i-sell-my-zero-coupon-bond-before-maturity) Can I sell my Zero-Coupon bond before maturity? Yes, you can sell your position before maturity by taking an opposite position in the market. For example, if you initially lent (bought bonds), you can exit early by borrowing (selling bonds) of the same maturity. This effectively closes your position, though market conditions at the time will determine whether you realize a gain or loss. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#what-happens-at-bond-maturity) What happens at bond maturity? At maturity, Zero-Coupon bonds reach their par value (100), but the protocol does not have automatic settlement functionality. Users must manually unwind their positions by taking the opposite action in the market. Lenders who want to receive their funds must sell their positions, and borrowers must repay their loans by buying back their positions. The protocol does not handle this settlement process automatically. circle-info What is the price range of the Zero-Coupon bond? Our platform enforces a strict constraint on the ZC bond price, capping orders at 100.00. This indicates that the protocol precludes negative yields on the corresponding assets, rendering them unfeasible for placement. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------------------------- * [Fixed Maturity](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity) * [Orderbook Mechanicsarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/core-mechanics/order-book-system.md) * [ZC Bond Price to APR](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-price-to-apr) * [Discount Factor](https://docs.secured.finance/fixed-rate-lending/advanced-topics/discount-factor) [PreviousStandardizationchevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization) [NextFixed Maturitychevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/fixed-maturity) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#examples) * [Example 1: Lending with Zero-Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#example-1-lending-with-zero-coupon-bonds) * [Example 2: Borrowing with Zero-Coupon Bonds](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#example-2-borrowing-with-zero-coupon-bonds) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#common-questions) * [Why use Zero-Coupon bonds instead of traditional interest-bearing loans?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#why-use-zero-coupon-bonds-instead-of-traditional-interest-bearing-loans) * [How do I calculate the yield on a Zero-Coupon bond?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#how-do-i-calculate-the-yield-on-a-zero-coupon-bond) * [Can I sell my Zero-Coupon bond before maturity?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#can-i-sell-my-zero-coupon-bond-before-maturity) * [What happens at bond maturity?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#what-happens-at-bond-maturity) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/standardization/zero-coupon-bonds#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Query Examples | Secured Finance Docs The Graph uses the GraphQL language to query the subgraphs. This doc will teach you how to query the Secured Finance Subgraphs by writing the GraphQL queries. You can copy and paste these queries into the [Subgraph endpoints](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph#subgraph-endpoints) . ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#tips-and-guidelines) Tips and Guidelines: * Ensure that all address values (used for id) are in lowercase format. * Be aware of the units for each asset while querying. These fields will be returned in the decimals of the asset itself(e.g., 10^18 for Ether, 10^6 for USDC). * Each results page defaults to returning 100 entries. If needed, you can increase this limit to a maximum of 1000 entries per page by passing the `first` parameter. * To query for groups of entities in the middle of a collection, use the `skip` parameter in conjunction with the `first` parameter to skip a specified number of entities starting at the beginning of the collection. * For large datasets, consider optimising queries by fetching only the necessary fields and using pagination effectively. * Use the `orderBy` parameter to sort by a specific attribute and the `orderDirection` for ascending (`asc`) or descending(`desc`) direction. * Use the `where` parameter to filter for specific properties. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#order-entity) Order Entity When a user places an order on our protocol, it is stored in the Order entity. You can check the order entity [herearrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph/blob/develop/schema.graphql#L22) . Copy { orders(where: {user: "0xe477f1adcd3b4a2e1e152f79105a18e5368f0d33"}) { orderId user { id } side currency maturity status filledAmount inputAmount inputUnitPrice type isPreOrder } } ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#transfer-entity) Transfer Entity When a user deposits or withdraws assets, it is stored in the Transfer entity. You can check the Transfer entity [herearrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph/blob/develop/schema.graphql#L170) . ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#liquidation-entity) Liquidation Entity When a user is liquidated, it is stored in the Liquidation entity. You can check the Liquidation entity [herearrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph/blob/develop/schema.graphql#L153) . ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#transaction-entity) Transaction Entity When a user takes an order or its order is taken, it is stored in the Transaction entity. You can check the Transaction entity [herearrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph/blob/develop/schema.graphql#L1) . ### [hashtag](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#user-entity) User Entity All users' information for their orders, transactions, transfers, liquidations etc. are stored in the User entity. You can check the User entity [herearrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph/blob/develop/schema.graphql#L80) . You can also add nested filtering in the queries. The below query will fetch the users and their orders list where orderId is 1. [PreviousFixed-Rate Lending Subgraphchevron-left](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph) [NextSDK Referencechevron-right](https://docs.secured.finance/developer-portal/sdk-reference) Last updated 10 months ago * [Tips and Guidelines:](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#tips-and-guidelines) * [Order Entity](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#order-entity) * [Transfer Entity](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#transfer-entity) * [Liquidation Entity](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#liquidation-entity) * [Transaction Entity](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#transaction-entity) * [User Entity](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph/query-examples#user-entity) sun-brightdesktopmoon Copy { transfers(where: {user: "0xe477f1adcd3b4a2e1e152f79105a18e5368f0d33"}) { user { id } currency amount transferType timestamp blockNumber txHash } } Copy { liquidations(where: {user: "0xe477f1adcd3b4a2e1e152f79105a18e5368f0d33"}) { user { id } collateralCurrency debtCurrency debtMaturity debtAmount timestamp blockNumber txHash } } Copy { transactions(where: {user: "0xe477f1adcd3b4a2e1e152f79105a18e5368f0d33"}) { user { id } currency maturity side executionPrice executionType futureValue amount feeInFV averagePrice lendingMarket { id } order { id orderId } createdAt blockNumber txHash } } Copy { user (id: "0xe477f1adcd3b4a2e1e152f79105a18e5368f0d33") { id createdAt transactionCount orderCount liquidationCount transferCount orders (orderBy: orderId, orderDirection: asc) { orderId currency maturity status inputAmount inputUnitPrice } transactions (skip: 20, first: 20) { currency maturity amount executionType } liquidations (where: {debtCurrency: "0x4554480000000000000000000000000000000000000000000000000000000000"}, orderBy: debtAmount, orderDirection: desc) { debtCurrency debtMaturity debtAmount } transfers (where: {transferType: Deposit}) { currency amount transferType } deposits { currency amount } takerVolumesByCurrency { currency totalVolume } } } Copy { users (where: { orders_: {orderId: 1}}) { id orders (where: {orderId: 1}) { orderId currency maturity status inputAmount inputUnitPrice type isPreOrder } } } sun-brightdesktopmoon --- # API Reference | Secured Finance Docs Secured Finance provides GraphQL APIs via The Graph protocol to query data from our smart contracts. This section documents how to use these APIs to access data from our protocols. [hashtag](https://docs.secured.finance/developer-portal/api-reference#what-youll-learn) What You'll Learn -------------------------------------------------------------------------------------------------------------- * How to query data from the Fixed-Rate Lending protocol * Examples of common queries and their responses * How to use GraphQL to build custom queries * How to use our interactive API documentation with "Test It" functionality [hashtag](https://docs.secured.finance/developer-portal/api-reference#key-components) Key Components --------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/api-reference#subgraphs) Subgraphs Secured Finance maintains subgraphs for its protocols: * [Fixed-Rate Lending Subgraph](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph) - For querying data from the Fixed-Rate Lending protocol > **Note:** The USDFC Subgraph is currently under development and not yet deployed. USDFC data is only available through the [USDFC SDK](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) > . ### [hashtag](https://docs.secured.finance/developer-portal/api-reference#available-networks) Available Networks Our subgraphs are deployed on the following networks: Protocol Ethereum Arbitrum Filecoin Fixed-Rate Lending ✅ ✅ ✅ > **Note:** The USDFC Subgraph is currently under development and not yet deployed. USDFC data is only available through the [USDFC SDK](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk) > on the Filecoin network. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference#subgraph-endpoints) Subgraph Endpoints These are Subgraph endpoint URLs for our production Mainnet and Testnet environments. You can click the URL and try some queries on the GraphQL playground. #### [hashtag](https://docs.secured.finance/developer-portal/api-reference#fixed-rate-lending-subgraph) Fixed-Rate Lending Subgraph **Ethereum** * Mainnet: [https://api.studio.thegraph.com/query/64582/sf-prd-mainnet/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-mainnet/version/latest) * Sepolia: [https://api.studio.thegraph.com/query/64582/sf-prd-sepolia/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-sepolia/version/latest) **Arbitrum** * Mainnet: [https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-one/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-one/version/latest) * Sepolia: [https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latestarrow-up-right](https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latest) **Filecoin** * Mainnet: [https://api.goldsky.com/api/public/project\_cm8i6ca9k24d601wy45zzbsrq/subgraphs/sf-filecoin-mainnet/latest/gnarrow-up-right](https://api.goldsky.com/api/public/project_cm8i6ca9k24d601wy45zzbsrq/subgraphs/sf-filecoin-mainnet/latest/gn) > **Note:** The Filecoin Calibration testnet endpoints are not provided yet. [hashtag](https://docs.secured.finance/developer-portal/api-reference#getting-started) Getting Started ----------------------------------------------------------------------------------------------------------- If you're new to GraphQL or The Graph, check out our introduction to subgraphs in the next sections. If you're already familiar with these technologies, you can jump directly to the specific subgraph documentation. The Graph is a decentralized protocol for indexing and querying blockchain data, making it easier to query the difficult-to-read data stored on the blockchain. The Graph's decentralized approach ensures resilience, eliminating the need for centralized and resource-intensive alternatives. To view the source of our subgraphs, visit our [GitHub Repositoryarrow-up-right](https://github.com/Secured-Finance/secured-finance-subgraph) . [hashtag](https://docs.secured.finance/developer-portal/api-reference#interactive-api-documentation) Interactive API Documentation --------------------------------------------------------------------------------------------------------------------------------------- We provide interactive API documentation for our Fixed-Rate Lending Subgraph using GitBook's OpenAPI integration. This allows you to explore and test the API directly from the documentation page in real-time. ### [hashtag](https://docs.secured.finance/developer-portal/api-reference#post) Query the Fixed-Rate Lending Subgraph post https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latestArbitrum Sepolia Testnetchevron-down https://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-sepolia/version/latesthttps://api.studio.thegraph.com/query/64582/sf-prd-mainnet/version/latesthttps://api.studio.thegraph.com/query/64582/sf-prd-arbitrum-one/version/latesthttps://api.studio.thegraph.com/query/64582/sf-prd-sepolia/version/latest /copy Execute a GraphQL query against the Fixed-Rate Lending Subgraph Body application/jsonchevron-down application/json querystringRequired GraphQL query to execute Example: `{ lendingMarkets( where: { isActive: true }, orderBy: maturity, orderDirection: asc, first: 10 ) { id currency maturity isActive openingUnitPrice lastLendUnitPrice lastBorrowUnitPrice volume } }` variablesobjectOptional Variables for the GraphQL query (optional) Responses chevron-right 200 Successful response application/json dataobjectOptional The data returned by the query Show propertiesplus errorsobject\[\]Optional Any errors that occurred during the query Show propertiesplus post / HTTPchevron-down HTTPcURLJavaScriptPython Get Active Lending Marketschevron-down Get Active Lending MarketsGet Order Book for a MarketGet User TransactionsGet User DepositsGet Transaction Candle Sticks for Market AnalysisGet Taker Volumes By Currency Test it 200 Successful response The interactive documentation above allows you to: 1. Explore available endpoints and operations 2. View request and response schemas 3. Try out API calls directly from the documentation using the "Test It" feature 4. See example queries and responses ### [hashtag](https://docs.secured.finance/developer-portal/api-reference#using-the-interactive-documentation) Using the Interactive Documentation 1. Browse through the available operations 2. Click on an operation to expand it 3. View the request parameters and example values 4. Click "Test It" to execute a request against the selected server 5. View the response directly in the documentation For more complex queries, you can also use The Graph's Playground interface by visiting the subgraph endpoints directly. [hashtag](https://docs.secured.finance/developer-portal/api-reference#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------- * [The Graph Documentationarrow-up-right](https://thegraph.com/docs/en/) * [GraphQL Documentationarrow-up-right](https://graphql.org/learn/) * [Secured Finance GitHub Repositoriesarrow-up-right](https://github.com/Secured-Finance) [PreviousIntroductionchevron-left](https://docs.secured.finance/developer-portal/introduction) [NextFixed-Rate Lending Subgraphchevron-right](https://docs.secured.finance/developer-portal/api-reference/fixed-rate-lending-subgraph) Last updated 9 months ago * [What You'll Learn](https://docs.secured.finance/developer-portal/api-reference#what-youll-learn) * [Key Components](https://docs.secured.finance/developer-portal/api-reference#key-components) * [Subgraphs](https://docs.secured.finance/developer-portal/api-reference#subgraphs) * [Available Networks](https://docs.secured.finance/developer-portal/api-reference#available-networks) * [Subgraph Endpoints](https://docs.secured.finance/developer-portal/api-reference#subgraph-endpoints) * [Getting Started](https://docs.secured.finance/developer-portal/api-reference#getting-started) * [Interactive API Documentation](https://docs.secured.finance/developer-portal/api-reference#interactive-api-documentation) * [POSTQuery the Fixed-Rate Lending Subgraph](https://docs.secured.finance/developer-portal/api-reference#post) * [Using the Interactive Documentation](https://docs.secured.finance/developer-portal/api-reference#using-the-interactive-documentation) * [Related Resources](https://docs.secured.finance/developer-portal/api-reference#related-resources) sun-brightdesktopmoon Copy POST /query/64582/sf-prd-arbitrum-sepolia/version/latest/ HTTP/1.1 Host: api.studio.thegraph.com Content-Type: application/json Accept: */* Content-Length: 278 { "query": "{\n lendingMarkets(\n where: { isActive: true },\n orderBy: maturity,\n orderDirection: asc,\n first: 10\n ) {\n id\n currency\n maturity\n isActive\n openingUnitPrice\n lastLendUnitPrice\n lastBorrowUnitPrice\n volume\n }\n}\n" } Copy { "data": { "lendingMarkets": [\ {\ "id": "0x123...",\ "currency": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",\ "maturity": "1735689600",\ "isActive": true,\ "openingUnitPrice": "9900",\ "lastLendUnitPrice": "9830",\ "lastBorrowUnitPrice": "9870",\ "volume": "1000000000000"\ },\ {\ "id": "0x456...",\ "currency": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",\ "maturity": "1735689600",\ "isActive": true,\ "openingUnitPrice": "9850",\ "lastLendUnitPrice": "9780",\ "lastBorrowUnitPrice": "9820",\ "volume": "500000000000"\ }\ ] } } sun-brightdesktopmoon --- # Emergency Global Settlement | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#overview) Overview --------------------------------------------------------------------------------------------------------------------------------------------- Emergency global settlement is a critical functionality designed to address unforeseen situations such as hacks or unexpected bugs that could compromise the integrity of our protocol. When this functionality is executed by an admin, all markets are immediately halted, and the protocol becomes non-operational. Subsequently, users can only redeem their positions and withdraw their tokens. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------------------------- The Emergency Global Settlement process follows a specific sequence of steps to ensure the secure resolution of all positions in the protocol: 1. Admin initiates an emergency global settlement. * All markets and the Token Vault are brought to a stop. * Caches of all price feeds are taken for reference. 2. Users execute redemptions. * The collateral token ratios in the Token Vault are calculated. * Users' total assets and positions in the Present Value (PV) are computed using the price feed caches. Based on the ratios, their assets and positions are replaced with collateral tokens. * Positions of users are reset after the replacement. 3. Users can then withdraw the replaced tokens after redeeming them. It's important to note that even users who only have deposits without positions will have their deposits replaced with collateral tokens based on the ratios in the Token Vault. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Settlement Trigger Who can initiate emergency settlement Protocol Admin only Price Feed Cache How price feeds are stored during settlement Snapshot at settlement time Redemption Window Time users have to redeem positions Unlimited (no expiration) Token Replacement How positions are converted to tokens Based on Token Vault ratios Market Status State of markets after settlement Permanently closed [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#examples) Examples --------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#example-1-emergency-settlement-process) Example 1: Emergency Settlement Process Let's illustrate the emergency global settlement process with a practical example: **Token Vault Holdings:** * Total USDC: $100,000 * Equivalent ETH Value: $200,000 _Ratio: 1 USDC to 2 USD worth of ETH_ **User's Positions and Deposits:** * ETH and FIL Lending Positions (PV value: $10,000) * ETH Deposits (Valued at $5,000) _Total Funds: $15,000_ **After Emergency Global Settlement:** * The user's lending positions and deposits are reset. * The user receives tokens worth $5,000 of USDC and ETH valued at $10,000 as per the replacement. * The user can withdraw $5,000 in USDC and $10,000 worth of ETH from their account. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#example-2-multi-asset-settlement) Example 2: Multi-Asset Settlement Consider a user with a more complex portfolio: **Token Vault Holdings:** * Total USDC: $500,000 * Total ETH Value: $300,000 * Total BTC Value: $200,000 _Ratio: 5:3:2 for USDC:ETH:BTC_ **User's Positions:** * Various lending positions across multiple maturities (Total PV: $50,000) * Deposits in multiple currencies (Total value: $25,000) **After Emergency Global Settlement:** * All positions are valued at $75,000 total * User receives approximately: * $37,500 in USDC (50% of portfolio value) * $22,500 in ETH (30% of portfolio value) * $15,000 in BTC (20% of portfolio value) * The exact distribution depends on the precise ratios in the Token Vault at settlement time circle-info Emergency global settlement acts as a vital safeguard, protecting both user funds and the overall integrity of the protocol in unforeseen circumstances. It ensures a secure and resilient DeFi ecosystem for all participants, enhancing trust and confidence in the platform. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#when-would-emergency-global-settlement-be-triggered) When would Emergency Global Settlement be triggered? Emergency Global Settlement would be triggered in the following scenarios: 1. **Critical Security Breach**: If the protocol experiences a significant hack or security vulnerability 2. **Severe Smart Contract Bug**: If a critical bug is discovered that could compromise user funds 3. **Systemic Risk**: If there's a risk of cascading failures that could affect the entire protocol 4. **Oracle Failure**: If price feeds become compromised or unreliable for an extended period 5. **Governance Decision**: If the protocol governance votes to initiate settlement due to extraordinary circumstances ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#what-happens-to-my-positions-during-emergency-global-settlement) What happens to my positions during Emergency Global Settlement? During Emergency Global Settlement: 1. All markets are immediately halted 2. Your positions are valued using the cached price feeds at the time of settlement 3. Your positions and deposits are converted to collateral tokens based on the ratios in the Token Vault 4. You can then withdraw these tokens after the redemption process 5. No new positions can be created until the protocol is restarted (if ever) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#can-i-lose-money-during-emergency-global-settlement) Can I lose money during Emergency Global Settlement? While Emergency Global Settlement is designed to be fair to all users: 1. You will receive the proportional value of your positions based on the Token Vault ratios 2. If the Token Vault has insufficient funds (e.g., due to a hack), you may receive less than your full position value 3. The settlement uses cached price feeds, which might differ slightly from market prices at that moment 4. You won't be able to maintain your exact position structure (e.g., specific lending positions) 5. There may be some slippage in value compared to normal market operations ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#how-do-i-claim-my-funds-after-emergency-global-settlement) How do I claim my funds after Emergency Global Settlement? To claim your funds after Emergency Global Settlement: 1. Connect your wallet to the protocol interface 2. Navigate to the Emergency Settlement section 3. Execute the redemption process to convert your positions to collateral tokens 4. Withdraw your collateral tokens to your wallet 5. This process can typically be completed in a single transaction ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#can-emergency-global-settlement-be-reversed) Can Emergency Global Settlement be reversed? No, Emergency Global Settlement cannot be reversed: 1. It is a one-way process designed as a last-resort safety measure 2. Once triggered, all markets remain permanently closed 3. The protocol would need to be redeployed with new contracts if operations were to resume 4. This irreversibility ensures that users can safely withdraw their funds without concerns about further protocol changes 5. It provides certainty during uncertain circumstances [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------------------------- * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) * [Circuit Breaker](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker) * [Base Price Adjustment](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment) * [Core Mechanics](https://docs.secured.finance/fixed-rate-lending/core-mechanics) [PreviousBase Price Adjustmentchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment) [NextOrderbook Deep Divechevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#examples) * [Example 1: Emergency Settlement Process](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#example-1-emergency-settlement-process) * [Example 2: Multi-Asset Settlement](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#example-2-multi-asset-settlement) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#common-questions) * [When would Emergency Global Settlement be triggered?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#when-would-emergency-global-settlement-be-triggered) * [What happens to my positions during Emergency Global Settlement?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#what-happens-to-my-positions-during-emergency-global-settlement) * [Can I lose money during Emergency Global Settlement?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#can-i-lose-money-during-emergency-global-settlement) * [How do I claim my funds after Emergency Global Settlement?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#how-do-i-claim-my-funds-after-emergency-global-settlement) * [Can Emergency Global Settlement be reversed?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#can-emergency-global-settlement-be-reversed) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Secured Finance Points (SFP) v1 | Secured Finance Docs ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-526a64ed78ad61b5c361b2faddb4c4421b6a17a7%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=be31f779&sv=2) Introducing SF Points [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#what-is-secured-finance-points-sfp) What is Secured Finance Points (SFP)? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ SFP represents electronic points that reflect users' contributions to the Secured Finance Protocol. These points can be used for various purposes, such as determining a user's rank within the community or measuring their involvement and support when calculating rewards. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#when-is-the-sfp-launch) When is the SFP launch? ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The point system pre-launch phase started on the Filecoin blockchain on June 19, 2024, at 12:00 AM (UTC). The global launch followed on June 28, 2024, at 12:00 AM (UTC), expanding to Ethereum, Arbitrum, Avalanche, and Polygon zkEVM. [Herearrow-up-right](https://medium.com/secured-finance/introducing-secured-finance-points-sfp-a02d3c7cafb9) 's the announcement on the Medium blog. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#sfp-and-sfc) SFP and SFC ----------------------------------------------------------------------------------------------------------------------------------------------------- SFP is an electronic point without economic value and cannot be transferred. At TGE and periodically thereafter, SFP serves as a reference for community activities to determine the distribution of SFC rewards. The SFP to SFC ratio will be calculated and announced before each distribution. Initially, 1% of the total SFC supply is allocated for airdrops. This can increase to 2% if the protocol's TVL reaches $50M, and up to 3% if TVL reaches $100M. Original contributors from early campaigns will be rewarded separately, such as through SFC, based on their contribution level, acknowledging their early support and participation in the ecosystem. [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#how-to-earn-sfp) How to earn SFP? -------------------------------------------------------------------------------------------------------------------------------------------------------------- Users can earn SFP through various activities within the Secured Finance Ecosystem, such as increasing TVL, providing order-book liquidity, and introducing new users. The easiest way to earn SFP points is by joining active quests featured on our dedicated [Points Dashboardarrow-up-right](https://app.secured.finance/points) . Oftentimes, we feature specific quests with special incentive points via a dedicated [Campaign pagearrow-up-right](https://app.secured.finance/campaign) . [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#points-dashboard-page) Points Dashboard Page ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The [Points Dashboardarrow-up-right](https://app.secured.finance/points) is designed to monitor earned points from various activities and quickly identify tasks for user contributions from active quests. Users can see their points, ranking, a referral link, and active quests on the dashboard. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-60df89de0aedec665e74ce3917c95150fddd0e26%252FScreenshot%25202024-06-17%2520at%25202.18.32.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=9eba7db3&sv=2) Points, Leaderboard, and Quests on the Point Dashboard Page [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#points-calculations) Points Calculations --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance has introduced a points system to quantify and reward user contributions to the ecosystem's success. Points can be earned through five primary activities: Deposits, Limit Orders, Active Positions, Referrals, and Daily Login. As new products and features are added, additional ways to earn points may also emerge. The points accumulated are directly tied to future airdrops. circle-info Points are given by 12 hour observations, with fractional points rounded (0.4 -> 0, 0.5 -> 1). ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-1.-deposit-points) **1\. Deposit Points**: Any user with current deposits on Secured Finance has been earning points. The more you deposit, the more points you earn. The longer you deposit, the more points you earn. * **Earning Method**: 1 point per $1 deposited per 24 hours. ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-2.-limit-order-points) **2\. Limit Order Points**: Limit orders provide liquidity to Secured Finance and improve market efficiency. Limit Order points are awarded based on the amount placed in the order book and its distance to the Mark Price. * **Earning Method:** Up to 2 points per $1 per 24 hours, based on the order’s proximity to the Mark Price. * **Slippage Distance Adjustment**: Orders within 2% of the Mark Price receive full points, while points decrease for orders placed further away, with no points awarded for orders beyond 15% from the Mark Price. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2Flh7-us.googleusercontent.com%2Fdocsz%2FAD_4nXe3Tfbr1UfxXuC37yQRV2EbmAuJpprBHMcEbfcePmKrSPEkXo8EmST3c6ww5hUQt4p5vMzu2CHmow5Equ7D1YQ_B5o7PP5Qv6CElXqSLj5g1LlGYP6HU72WQO_x19YTXTfZ4TsT2hGaZvELHEaaQKhuFtX1gucjUoD-wYjY%3Fkey%3Dp3bFlswsYeqjm9PQRzr6GA&width=768&dpr=3&quality=100&sign=2490b422&sv=2) ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-3.-active-position-points) **3\. Active Position Points**: Active positions drive the growth of the Secured Finance ecosystem. Active Position points are awarded based on the amount and duration of positions held by users. * **Earning Method**: 2-3 points per $1 per 24 hours, based on duration of the position. * **Duration Adjustment**: Between 1-1.5, where 1 is for the minimum duration (0 years) and linearly increased by duration to 1.5 for the maximum duration (2 years). ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-4.-referral-points) 4\. Referral Points: Users can earn points by referring new users. The referring user earns 15% of the points their referred users earn. Additionally, referred users receive a welcome bonus and a percentage increase in their points earnings. * **Referrer Benefits**: Earn 15% of the points earned by referred users. * **New User Benefits**: * 500 welcome points. * 5% bonus on all points earned. ### [hashtag](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-5.-daily-login-points) 5\. Daily Login Points: Users can earn 10 points daily by logging in, visiting, and connecting their wallet to our web application. Additional incentives may be rewarded for consecutive login days. * **Earning Method**: 10 points per day, visiting and connecting wallet to our web application. [PreviousSecured Finance Points (SFP) v2chevron-left](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2) [NextSupport & Contactschevron-right](https://docs.secured.finance/community/support-and-contacts) Last updated 1 year ago * [What is Secured Finance Points (SFP)?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#what-is-secured-finance-points-sfp) * [When is the SFP launch?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#when-is-the-sfp-launch) * [SFP and SFC](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#sfp-and-sfc) * [How to earn SFP?](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#how-to-earn-sfp) * [Points Dashboard Page](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#points-dashboard-page) * [Points Calculations](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#points-calculations) * [1\. Deposit Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-1.-deposit-points) * [2\. Limit Order Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-2.-limit-order-points) * [3\. Active Position Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-3.-active-position-points) * [4\. Referral Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-4.-referral-points) * [5\. Daily Login Points:](https://docs.secured.finance/community/tokenomics/secured-finance-points-sfp-v2/secured-finance-points-sfp-v1#id-5.-daily-login-points) sun-brightdesktopmoon sun-brightdesktopmoon --- # Risk Disclaimer | Secured Finance Docs [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#secured-finance-risk-disclosure-and-legal-disclaimer) Secured Finance — Risk Disclosure and Legal Disclaimer ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Last Updated: October 2025 * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-1.-overview) 1\. Overview Secured Finance (“SF”) is an **open-source, decentralized, and self-custodial protocol** that enables users to lend and borrow digital assets through autonomous smart contracts. All transactions occur directly on-chain; users retain full control of their wallets and private keys. A reference web interface provides a convenient access point to these contracts, but no centralized server or intermediary controls the protocol. For details on governance, terms of service, and data practices, please refer to the [Terms of Use](https://docs.secured.finance/resources/legal/terms-of-use) and [Privacy Policy](https://docs.secured.finance/resources/legal/privacy-policy) . * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-2.-non-custodial-and-self-directed-use) 2\. Non-Custodial and Self-Directed Use SF never holds, manages, or transfers user assets. Users interact directly with smart contracts using their own cryptographic keys and execute transactions solely on their own behalf. The protocol has no ability to retrieve, freeze, or alter assets. Accordingly, all actions taken through SF are performed at the sole discretion and responsibility of the user. * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-3.-data-and-privacy) 3\. Data and Privacy The **protocol itself** does not collect, store, or process any personal information. The **website interface** may process limited technical data (such as IP address or cookies) solely for functionality, security, and analytics, as described in the [Privacy Policy](https://docs.secured.finance/resources/legal/privacy-policy) . No personally identifiable information is required to interact with the smart contracts. * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-4.-compliance-and-access-controls) 4\. Compliance and Access Controls The reference interface is **hosted in a distributed manner on IPFS**, ensuring there are no centralized servers controlling access. To reduce potential misuse, the IPFS gateway provider applies **geo-based access restrictions** that block requests originating from comprehensively sanctioned jurisdictions. These constitute _reasonable technical controls_ aligned with international compliance standards, though no system can guarantee absolute exclusion. Users are responsible for ensuring that their interaction with the protocol complies with the laws and regulations applicable in their own jurisdiction. * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-5.-risks-and-limitations) 5\. Risks and Limitations Using decentralized protocols involves inherent risks. By accessing or using SF, you acknowledge and accept the following non-exhaustive list: * **Smart Contract Risk**: The code may contain vulnerabilities or logic errors that could result in the loss of funds. * **Market and Liquidation Risk**: Asset prices are volatile; collateral may be liquidated automatically and irreversibly. * **Oracle or Data Feed Risk**: Incorrect or delayed price information may impact loan positions or settlements. * **Liquidity Risk**: Certain tokens — particularly tokenized real-world assets — may have limited liquidity or delayed liquidation. * **Governance Risk**: DAO proposals may change parameters or protocol features without advance notice. * **Regulatory Risk**: New or changing regulations may restrict access or impact usage of the protocol. * **Operational Risk**: External infrastructure such as gateways, RPC endpoints, or third-party services may become temporarily unavailable. Blockchain transactions are **final and irreversible**. SF cannot refund, reverse, or recover lost assets. * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-6.-no-guarantee-or-advice) 6\. No Guarantee or Advice SF is provided on an “**as-is**” and “**as-available**” basis, without any warranties — express or implied — of reliability, accuracy, or suitability for any purpose. Nothing in this document constitutes financial, legal, or tax advice. Users should conduct their own due diligence and seek independent professional advice before engaging in any transaction. * * * ### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#id-7.-jurisdiction-and-updates) 7\. Jurisdiction and Updates SF operates globally as open-source software and does not target or solicit users in any specific jurisdiction. This disclaimer is informational and does not constitute a legal opinion or regulatory filing. SF may update this page periodically to reflect evolving legal or technical circumstances; users are encouraged to review the latest version before using the protocol. * * * #### [hashtag](https://docs.secured.finance/resources/legal/risk-disclaimer#summary) Summary Secured Finance is a decentralized, self-custodial protocol. You interact directly with smart contracts using your own wallet and keys. No centralized servers or intermediaries hold your assets or data. Reasonable geo-based access restrictions are applied at the gateway level to deter sanctioned access, but no system is perfect. Use of the protocol is entirely at your own risk and responsibility. [PreviousLegalchevron-left](https://docs.secured.finance/resources/legal) [NextTerms of Usechevron-right](https://docs.secured.finance/resources/legal/terms-of-use) Last updated 4 months ago * [Secured Finance — Risk Disclosure and Legal Disclaimer](https://docs.secured.finance/resources/legal/risk-disclaimer#secured-finance-risk-disclosure-and-legal-disclaimer) * [1\. Overview](https://docs.secured.finance/resources/legal/risk-disclaimer#id-1.-overview) * [2\. Non-Custodial and Self-Directed Use](https://docs.secured.finance/resources/legal/risk-disclaimer#id-2.-non-custodial-and-self-directed-use) * [3\. Data and Privacy](https://docs.secured.finance/resources/legal/risk-disclaimer#id-3.-data-and-privacy) * [4\. Compliance and Access Controls](https://docs.secured.finance/resources/legal/risk-disclaimer#id-4.-compliance-and-access-controls) * [5\. Risks and Limitations](https://docs.secured.finance/resources/legal/risk-disclaimer#id-5.-risks-and-limitations) * [6\. No Guarantee or Advice](https://docs.secured.finance/resources/legal/risk-disclaimer#id-6.-no-guarantee-or-advice) * [7\. Jurisdiction and Updates](https://docs.secured.finance/resources/legal/risk-disclaimer#id-7.-jurisdiction-and-updates) sun-brightdesktopmoon sun-brightdesktopmoon --- # Supported Currencies | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#prerequisites) Prerequisites ------------------------------------------------------------------------------------------------------------------------------------------------------- * Basic understanding of digital assets and cryptocurrencies * Access to the Secured Finance platform * Familiarity with blockchain networks (helpful but not required) [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#overview) Overview --------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance supports a carefully selected range of digital assets for lending and borrowing, tailored to meet the needs of diverse users across multiple blockchains. This guide provides an overview of the assets currently supported on our platform and their unique characteristics. [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-1-understanding-available-assets) Step 1: Understanding Available Assets -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Secured Finance supports five major digital assets for lending and borrowing: 1. **Filecoin (FIL)** * Native token of the decentralized storage network Filecoin * Available on: Filecoin (FVM), Ethereum * Used for payments and transactions within the Filecoin ecosystem 2. **USD for Filecoin Community (USDFC)** * A stablecoin pegged to the US dollar for the Filecoin Community * Available exclusively on the FVM for lending/borrowing and collateral * Provides price stability for Filecoin ecosystem participants 3. **Ethereum (ETH)** * Native token of Ethereum, powering smart contracts and dApps * Available on: Ethereum, Arbitrum * Core DeFi asset with widespread adoption 4. **USD Coin (USDC)** * A stablecoin pegged to the US dollar * Available on: Ethereum, Arbitrum * Offers price stability for lending and borrowing 5. **Wrapped Bitcoin (WBTC)** * Wrapped version of Bitcoin for use within the Ethereum ecosystem * Available on: Ethereum, Arbitrum * Brings Bitcoin's value and liquidity to DeFi protocols [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-2-checking-asset-availability-by-blockchain) Step 2: Checking Asset Availability by Blockchain ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Different assets are available on different blockchains. Use this table to determine which assets you can use on each network: **Blockchain** **Available Assets** **Ethereum** WBTC, ETH, USDC, FIL (as axlFIL) **Arbitrum** WBTC, ETH, USDC **Filecoin (FVM)** FIL, iFIL and pFIL (Liquid Staking Tokens), USDFC [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-3-understanding-collateral-options) Step 3: Understanding Collateral Options ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Not all assets can be used as collateral. Here's what you can use as collateral on each blockchain: **Blockchain** **Collateral Currencies** **Ethereum** WBTC, ETH, USDC **Arbitrum** WBTC, ETH, USDC **Filecoin (FVM)** FIL, iFIL and pFIL (Liquid Staking Tokens), USDFC [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-4-selecting-the-right-asset-for-your-needs) Step 4: Selecting the Right Asset for Your Needs ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- When choosing which asset to lend or borrow, consider: 1. **Purpose** * For stable returns: Consider stablecoins like USDC or USDFC * For potential appreciation: Consider native tokens like ETH or FIL * For Bitcoin exposure: Consider WBTC 2. **Blockchain** * Choose assets available on your preferred blockchain * Consider gas fees and transaction speeds of each network * Note network-specific features (e.g., liquid staking tokens on FVM) 3. **Risk Profile** * Stablecoins typically offer lower but more predictable returns * Native tokens may offer higher returns but with more volatility * Consider collateral requirements when borrowing [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-5-using-liquid-staking-tokens) Step 5: Using Liquid Staking Tokens -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- For Filecoin users, liquid staking tokens offer additional options: 1. **iFIL** * Available on: Filecoin (FVM) * Represents staked FIL that continues earning staking rewards * Can be used as collateral while still earning staking yield 2. **pFIL** * Available on: Filecoin (FVM) * Another liquid staking token for FIL * Combines staking rewards with lending/borrowing capabilities [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#next-steps) Next Steps ------------------------------------------------------------------------------------------------------------------------------------------------- After understanding the supported currencies, you might want to: * [Start lending assets](https://docs.secured.finance/fixed-rate-lending/getting-started/lending-assets) in your preferred currency * [Borrow assets](https://docs.secured.finance/fixed-rate-lending/getting-started/borrowing-assets) using your available collateral * [Explore the trading interface](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading) to place orders [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#troubleshooting) Troubleshooting ----------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#asset-not-appearing-in-wallet) Asset Not Appearing in Wallet If you don't see an asset in your wallet: * Ensure you're connected to the correct blockchain network * Check that you have the correct token contract address * Some assets may require manual addition to your wallet * Verify that the asset is supported on your current network ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#cross-chain-asset-access) Cross-Chain Asset Access If you need to use assets across different blockchains: * Use the [Bridge feature](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/bridge) to transfer assets between networks * Note that not all assets can be bridged to all networks * Some assets may have wrapped versions on other networks (e.g., axlFIL on Ethereum) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#network-sunsetting-notice) Network Sunsetting Notice circle-exclamation We are **sunsetting support** for Avalanche and Polygon zkEVM. These networks and associated assets will no longer be actively supported on Secured Finance Fixed Rate Lending Protocol. If you have assets on sunsetting networks: * Bridge your assets to supported networks as soon as possible * Unwind any open positions on these networks * Monitor announcements for specific sunset timelines [PreviousTradingchevron-left](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading) [NextMarketschevron-right](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/markets) Last updated 10 months ago * [Prerequisites](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#prerequisites) * [Overview](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#overview) * [Step 1: Understanding Available Assets](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-1-understanding-available-assets) * [Step 2: Checking Asset Availability by Blockchain](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-2-checking-asset-availability-by-blockchain) * [Step 3: Understanding Collateral Options](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-3-understanding-collateral-options) * [Step 4: Selecting the Right Asset for Your Needs](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-4-selecting-the-right-asset-for-your-needs) * [Step 5: Using Liquid Staking Tokens](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#step-5-using-liquid-staking-tokens) * [Next Steps](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#next-steps) * [Troubleshooting](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#troubleshooting) * [Asset Not Appearing in Wallet](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#asset-not-appearing-in-wallet) * [Cross-Chain Asset Access](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#cross-chain-asset-access) * [Network Sunsetting Notice](https://docs.secured.finance/fixed-rate-lending/getting-started/platform-guide/trading/supported-currencies#network-sunsetting-notice) sun-brightdesktopmoon sun-brightdesktopmoon --- # Protocol Fees | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#overview) Overview -------------------------------------------------------------------------------------------------------------- The Fixed-Rate Lending Protocol implements various fees to sustain operations, incentivize participants, and ensure protocol security. These fees are carefully designed to balance user experience with protocol sustainability. The fee structure is transparent and predictable, allowing users to accurately calculate costs when interacting with the protocol. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-it-works) How It Works ---------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#trading-fees) Trading Fees **Only the price taker** **will pay the transaction fee** of 0.25% (25 basis points) of the loan notional amount for a 3-month duration on our loan platform. **You pay 'No' transaction fee if you place a limit order.** While you place the market order, you pay 0.25 ETH (or equivalent currency) when you borrow or lend 100 ETH for a 3-month duration. The market taker fee will linearly increase/decrease depending on the duration (1% annum), included in the transaction, and charged by Future Value. circle-info No fee will be charged for 'pre-open orders' that are filled during the order book opening process as the trade fee will be waived for the 'Itayose' process! ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#liquidation-fees) Liquidation Fees As a DeFi project, Collateral Management is critical to secure the protocol. Hence, we ask borrowers to pledge over-collateral before borrowing the fund. And the liquidation mechanism is similarly crucial for our protocol to secure the lenders' money. We charge 7% of the liquidated notional value as a fee slashing from collateral, which will be split between the recovery fund and the liquidators depending on the duration. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#auto-roll-fees) Auto Roll Fees Our protocol designed the automated rolling feature when the loan matures. This benefits users since you can reinvest without any action at the mid-price with little market impact (see '[Auto Roll](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) '). The roll fee will be the same as the trade fee at 0.25% of the notional amount for a 3-month duration. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#fee-reserve-and-distribution) Fee Reserve and Distribution We reserve part of the fee above to our 'Reserve Fund' to secure the protocol from the incidents, i.e., the black swan event. The rest of the fee will be distributed to the community depending on the contribution. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#key-parameters) Key Parameters -------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Market Taker Fee (3-month) Fee charged to market orders for 3-month duration 0.25% Annual Fee Rate Rate used to calculate fees for different durations 1.00% Limit Order Fee Fee charged to limit orders 0% Liquidation Fee Fee charged on liquidated positions 7% Auto Roll Fee (3-month) Fee for automatic position rolling at maturity 0.25% Itayose Process Fee Fee for orders filled during market opening 0% Reserve Fund Allocation Portion of fees allocated to protocol safety reserve Variable [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#examples) Examples -------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-1-trading-fee-calculation-for-different-durations) Example 1: Trading Fee Calculation for Different Durations Let's calculate the trading fees for a market taker borrowing 100 ETH across different durations: Duration Base Fee (3-month) Annualized Rate Actual Fee Fee Amount (ETH) 3 months 0.25% 1.00% 0.25% 0.25 ETH 6 months 0.25% 1.00% 0.50% 0.50 ETH 9 months 0.25% 1.00% 0.75% 0.75 ETH 12 months 0.25% 1.00% 1.00% 1.00 ETH As shown, the fee scales linearly with the duration, based on an annualized rate of 1.00%. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-2-limit-order-vs.-market-order-fee-comparison) Example 2: Limit Order vs. Market Order Fee Comparison **Scenario A: Limit Order** * Alice places a limit order to lend 50 ETH for 6 months at a specific rate * The order is filled when a borrower matches her offer * Alice pays 0 ETH in trading fees (limit orders are fee-free) * Total cost to Alice: 0 ETH **Scenario B: Market Order** * Bob places a market order to borrow 50 ETH for 6 months * The order is immediately filled by matching with existing limit orders * Bob pays 0.50% of 50 ETH = 0.25 ETH in trading fees * Total cost to Bob: 0.25 ETH ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-3-liquidation-fee-distribution) Example 3: Liquidation Fee Distribution When a position is liquidated, the 7% liquidation fee is distributed as follows: **For a 100 ETH liquidation:** * Total liquidation fee: 7 ETH (7% of 100 ETH) * Portion to Recovery Fund: 3.5 ETH (50%) * Portion to Liquidator: 3.5 ETH (50%) This distribution incentivizes liquidators to maintain the health of the protocol while building a safety reserve. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#why-are-there-no-fees-for-limit-orders) Why are there no fees for limit orders? Limit orders provide liquidity to the protocol and help establish efficient price discovery. By exempting limit orders from fees, we incentivize users to provide liquidity rather than just consume it. This approach is common in traditional financial markets and helps ensure the orderbook remains deep and liquid. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-are-fees-calculated-for-longer-duration-loans) How are fees calculated for longer duration loans? Fees scale linearly with the duration of the loan, based on an annualized rate of 1%. For example, a 3-month loan has a base fee of 0.25%, a 6-month loan has a fee of 0.50%, and a 12-month loan has a fee of 1.00%. This scaling ensures that longer commitments are appropriately priced relative to shorter ones. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#are-there-any-ways-to-reduce-or-avoid-fees) Are there any ways to reduce or avoid fees? Yes, there are several strategies to minimize fees: 1. Use limit orders instead of market orders to avoid trading fees entirely 2. Participate in the Itayose process when new orderbooks are created, as these orders are exempt from fees 3. For shorter-term needs, consider using shorter duration markets to reduce the duration-based fee component ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#what-happens-to-the-fees-collected-by-the-protocol) What happens to the fees collected by the protocol? Fees collected by the protocol are allocated to two main purposes: 1. A portion goes to the Reserve Fund, which acts as a safety buffer for the protocol in case of extreme market events or unforeseen circumstances 2. The remaining portion is distributed to the community based on their contributions to the protocol ecosystem, which may include governance participants, liquidity providers, and other stakeholders ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-do-auto-roll-fees-compare-to-manually-rolling-over-a-position) How do Auto Roll fees compare to manually rolling over a position? Auto Roll fees (0.25% for 3-month duration) are the same as the standard trading fees. However, Auto Roll provides several advantages over manual rollovers: 1. No need to monitor and execute transactions at maturity 2. Execution at mid-price with minimal market impact 3. Reduced gas costs compared to executing multiple transactions 4. Protection against unfavorable price movements during the rollover period [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#key-parameters-1) Key Parameters ---------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Market Taker Fee (3-month) Fee charged to market orders for 3-month duration 0.25% Annual Fee Rate Rate used to calculate fees for different durations 1.00% Limit Order Fee Fee charged to limit orders 0% Liquidation Fee Fee charged on liquidated positions 7% Auto Roll Fee (3-month) Fee for automatic position rolling at maturity 0.25% Itayose Process Fee Fee for orders filled during market opening 0% Reserve Fund Allocation Portion of fees allocated to protocol safety reserve Variable [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#related-resources) Related Resources -------------------------------------------------------------------------------------------------------------------------------- * [Liquidation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) * [Order Book System](https://docs.secured.finance/fixed-rate-lending/core-mechanics/order-book-system) * [Auto-Rolling](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics/auto-rolling) * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [PreviousLiquidation Case Studychevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study) [NextAdvanced Topicschevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-it-works) * [Trading Fees](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#trading-fees) * [Liquidation Fees](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#liquidation-fees) * [Auto Roll Fees](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#auto-roll-fees) * [Fee Reserve and Distribution](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#fee-reserve-and-distribution) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#examples) * [Example 1: Trading Fee Calculation for Different Durations](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-1-trading-fee-calculation-for-different-durations) * [Example 2: Limit Order vs. Market Order Fee Comparison](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-2-limit-order-vs.-market-order-fee-comparison) * [Example 3: Liquidation Fee Distribution](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#example-3-liquidation-fee-distribution) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#common-questions) * [Why are there no fees for limit orders?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#why-are-there-no-fees-for-limit-orders) * [How are fees calculated for longer duration loans?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-are-fees-calculated-for-longer-duration-loans) * [Are there any ways to reduce or avoid fees?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#are-there-any-ways-to-reduce-or-avoid-fees) * [What happens to the fees collected by the protocol?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#what-happens-to-the-fees-collected-by-the-protocol) * [How do Auto Roll fees compare to manually rolling over a position?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#how-do-auto-roll-fees-compare-to-manually-rolling-over-a-position) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#key-parameters-1) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Genesis Value | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#overview) Overview ----------------------------------------------------------------------------------------------------------------------------------- In the Secured Finance protocol, Genesis Value (GV) revolutionizes asset management by offering a more efficient and cost-effective approach to auto-roll and position calculations. GV is a dynamic value derived from a combination of Future Value (FV) and Compound Factors. Genesis Value represents the Asset Value of the Genesis Date and serves as an important pillar of the protocol's Lazy Evaluation mechanism. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------------- Genesis Value allows for rational asset management without the need to frequently recalculate individual positions on the contract, providing significant efficiency improvements. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#genesis-value-calculation) Genesis Value Calculation The Genesis Value calculation is initiated based on a predetermined Genesis Date, which marks the starting point. For instance, if the Genesis Date is set to 30th June 2020, the protocol will begin GV calculations for this date. Upon auto-roll, as the nearest order book matures, the protocol captures the Compound Factor for the next 3-month tenor. This Compound Factor acts as the auto-roll price to calculate Future Value. Simultaneously, shorter than 3-month positions are converted into Genesis Value using the Compound Factors. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#benefits-of-genesis-value) Benefits of Genesis Value The utilization of Genesis Value offers several compelling advantages for the Secured Finance protocol: 1. **Gas Cost Reduction**: Traditional approaches require recalculating Future Value for each position individually during auto-roll. However, Genesis Value eliminates the need for such redundant computations, resulting in significant gas cost reduction. 2. **Efficient Auto-Roll**: By leveraging Compound Factors and Genesis Value, the protocol can efficiently calculate Future Value for each position, streamlining the auto-roll process and minimizing computational overhead. 3. **Scalability and User-Friendliness**: Genesis Value's gas cost reduction makes the protocol more economically viable for users of all sizes, enhancing scalability, and encouraging broader participation in the ecosystem. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#key-parameters) Key Parameters ----------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Genesis Date Starting point for Genesis Value calculations Protocol-defined date (e.g., June 30, 2020) Genesis Value (GV) Asset Value at the Genesis Date Calculated based on position and Compound Factors Future Value (FV) Projected value calculated from GV GV × Lending Compound Factor Auto-Roll Period Frequency of orderbook maturity and GV recalculation 3 months Position Conversion How shorter positions are handled Converted to GV using Compound Factors [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#examples) Examples ----------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-1-genesis-value-calculation-for-a-new-position) Example 1: Genesis Value Calculation for a New Position Let's walk through how Genesis Value is calculated when a user opens a new lending position: 1. Initial setup: * Genesis Date: June 30, 2020 * Current Date: September 15, 2023 * User deposits 1,000 USDC to lend * Current Lending Compound Factor (LCF): 1.45 (accumulated since Genesis Date) * Current market price: 97.50 2. Calculate the Genesis Value: 3. This Genesis Value (689.66) is stored and remains constant for this lending position throughout its lifetime. 4. When the user wants to calculate their current position value: ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-2-auto-roll-impact-on-genesis-value) Example 2: Auto-Roll Impact on Genesis Value Let's examine how Genesis Value remains stable during auto-roll events: 1. Initial position: * Genesis Value (GV) for a lender: 500 USDC * Current Lending Compound Factor (LCF): 1.20 * Current Future Value: 500 × 1.20 = 600 USDC 2. Auto-roll occurs with the following parameters: * Auto-roll price: 98.50 * Auto-roll fee rate: 0.001 (0.1%) * New Lending Compound Factor: 1.20 × (1/0.985 - 0.001) = 1.20 × 1.014 = 1.2168 3. After auto-roll, the lender's position: * Genesis Value remains unchanged at 500 USDC * Updated Future Value: 500 × 1.2168 = 608.4 USDC 4. The lender's position has grown by 8.4 USDC without requiring recalculation of their Genesis Value. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-3-gas-cost-comparison) Example 3: Gas Cost Comparison Let's compare gas costs between traditional position calculation and Genesis Value approach: 1. Traditional approach for 1,000 positions during auto-roll: * Each position requires individual Future Value recalculation * Approximate gas cost per recalculation: 20,000 gas * Total gas cost: 1,000 × 20,000 = 20,000,000 gas 2. Genesis Value approach: * Only need to update the Compound Factor once * Approximate gas cost for updating Compound Factor: 50,000 gas * Individual position values can be calculated off-chain using the updated Compound Factor * Total gas cost: 50,000 gas 3. Gas savings: 20,000,000 - 50,000 = 19,950,000 gas (99.75% reduction) 4. This significant gas reduction makes the protocol more economically viable, especially during periods of high Ethereum gas prices. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-does-genesis-value-differ-from-future-value) How does Genesis Value differ from Future Value? Genesis Value and Future Value differ in several important ways: 1. **Time Reference**: Genesis Value represents the value at the Genesis Date, while Future Value represents the current or maturity value 2. **Stability**: Genesis Value remains constant for lenders, while Future Value changes with each auto-roll 3. **Calculation Base**: Genesis Value is the base value used to calculate Future Value using Compound Factors 4. **Storage Efficiency**: Storing Genesis Value requires less frequent updates, reducing gas costs 5. **User Perspective**: Users typically interact with Future Value (what their position is worth), while Genesis Value works behind the scenes ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#why-use-a-fixed-genesis-date-instead-of-each-users-entry-date) Why use a fixed Genesis Date instead of each user's entry date? Using a fixed Genesis Date offers several advantages: 1. **Standardization**: All positions reference the same starting point, simplifying calculations 2. **Computational Efficiency**: A single reference point reduces the complexity of tracking individual entry dates 3. **Protocol Consistency**: Ensures all positions follow the same calculation methodology 4. **Gas Optimization**: Reduces the storage and computation requirements for the protocol 5. **Scalability**: Makes the system more scalable as the number of users increases ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-does-genesis-value-handle-different-currencies-and-assets) How does Genesis Value handle different currencies and assets? Genesis Value handles different currencies and assets through: 1. **Asset-Specific Compound Factors**: Each asset pair has its own set of Compound Factors 2. **Independent Calculations**: Genesis Values for different assets are calculated independently 3. **Currency Neutrality**: The concept works regardless of the underlying currency or asset 4. **Consistent Methodology**: The same calculation principles apply across all supported assets 5. **Separate Orderbooks**: Each asset pair has separate orderbooks with their own Genesis Values ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#what-happens-to-genesis-value-during-extreme-market-conditions) What happens to Genesis Value during extreme market conditions? During extreme market conditions: 1. **Stability Preservation**: Genesis Value remains stable even during market volatility 2. **Compound Factor Adjustments**: Market conditions affect Compound Factors, not Genesis Values 3. **Circuit Breaker Protection**: Circuit breakers may limit extreme price movements that would affect Compound Factors 4. **Governance Oversight**: In extreme cases, governance mechanisms can intervene to ensure system stability 5. **Risk Isolation**: The separation of Genesis Value from market prices helps isolate positions from short-term volatility ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#can-users-manipulate-their-genesis-value) Can users manipulate their Genesis Value? Users cannot manipulate their Genesis Value because: 1. **Protocol-Controlled Calculation**: Genesis Value is calculated by the protocol, not set by users 2. **Immutable After Creation**: Once set, a position's Genesis Value cannot be altered 3. **Market-Driven Factors**: Compound Factors are determined by market forces, not individual users 4. **Transparent Formulas**: All calculations follow transparent, predetermined formulas 5. **Audit Trail**: All Genesis Value calculations are recorded on-chain and can be verified [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------------------------- * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Compound Factor](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor) * [Lazy Evaluation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) * [Auto-Rollingarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/market-dynamics/auto-rolling/README.md) [PreviousLazy Evaluationchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) [NextCompound Factorchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-it-works) * [Genesis Value Calculation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#genesis-value-calculation) * [Benefits of Genesis Value](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#benefits-of-genesis-value) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#examples) * [Example 1: Genesis Value Calculation for a New Position](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-1-genesis-value-calculation-for-a-new-position) * [Example 2: Auto-Roll Impact on Genesis Value](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-2-auto-roll-impact-on-genesis-value) * [Example 3: Gas Cost Comparison](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#example-3-gas-cost-comparison) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#common-questions) * [How does Genesis Value differ from Future Value?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-does-genesis-value-differ-from-future-value) * [Why use a fixed Genesis Date instead of each user's entry date?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#why-use-a-fixed-genesis-date-instead-of-each-users-entry-date) * [How does Genesis Value handle different currencies and assets?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#how-does-genesis-value-handle-different-currencies-and-assets) * [What happens to Genesis Value during extreme market conditions?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#what-happens-to-genesis-value-during-extreme-market-conditions) * [Can users manipulate their Genesis Value?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#can-users-manipulate-their-genesis-value) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value#related-resources) sun-brightdesktopmoon Copy Genesis Value = Future Value / Current LCF Genesis Value = 1,000 / 1.45 Genesis Value = 689.66 Copy Future Value = Genesis Value × Current LCF Future Value = 689.66 × 1.45 Future Value = 1,000 sun-brightdesktopmoon --- # Liquidation Case Study | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#overview) Overview ----------------------------------------------------------------------------------------------------------------------------------- There are two main patterns that trigger liquidation in the Fixed-Rate Lending Protocol. One is when your collateral value decreases against your borrowed asset, typically represented by currency exchange rate fluctuations. The other is when the borrowed asset value increases compared to your collateral, which might occur when borrowing rates go lower. This case study explores these scenarios through practical examples. [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------------- Let's examine a practical example of how liquidation works in the Fixed-Rate Lending Protocol: ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-scenario) Example Scenario Bob borrowed 1,000 FIL with 15,000 USDC for 1y (365 days) at 20% at FILUSDC 10.0. Hence Bob's borrowed value is 10,000 USDC (= 1,000 FIL \* 10.0 FILUSDC FX rate), and his LTV is 66.7% (10,000/15,000). ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#liquidation-trigger) Liquidation Trigger IF the FILUSDC exchange rate spike to 12.0 from 10.0 right after he borrowed, the value of his collateral decreases against his liability. In other words, his liability increased to 12,000 USDC (=1,000 FIL \* 12.0 FILUSDC FX rate). As a result, 50% of his position will be subject to liquidation since LTV reached 80% (12,000/15,000). ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#liquidation-process) Liquidation Process Our Smart-contract will repay half of his obligation, helped by the liquidator, which is 500 FIL. Instead, Bob will lose his collateral of 6,420 USDC (=500 FIL \* 12.0 FILUSDC FX rate \* 107% penalty). ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#post-liquidation-position) Post-Liquidation Position After the liquidation process, Bob's position will be 500 FIL cash, 500 FIL borrowed with 8,580 USDC collateral (15,000 - 6,420 USDC). His LTV recovered to 69.9% (=500 FIL \* 12.0 FILUSDC FX rate / 8,580 collateral). [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#key-parameters) Key Parameters ----------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Liquidation Threshold LTV ratio at which a position becomes eligible for liquidation 80% Liquidation Penalty Additional fee applied to liquidated collateral 7% Liquidation Amount Portion of the position that gets liquidated when threshold is reached 50% Post-Liquidation Target Target LTV ratio after liquidation ~70% Exchange Rate Impact How exchange rate changes affect LTV calculations Direct impact on borrowed value [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#examples) Examples ----------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-1-liquidation-due-to-exchange-rate-change) Example 1: Liquidation Due to Exchange Rate Change **Initial Position:** * Alice deposits 10 ETH (worth $20,000) as collateral * Alice borrows 12,000 USDC * Initial LTV: 60% ($12,000 / $20,000) * Liquidation threshold: 80% **Market Change:** * ETH price drops from $2,000 to $1,600 per ETH * Collateral value decreases to $16,000 (10 ETH × $1,600) * New LTV: 75% ($12,000 / $16,000) **Further Market Change:** * ETH price drops further to $1,500 per ETH * Collateral value decreases to $15,000 (10 ETH × $1,500) * New LTV: 80% ($12,000 / $15,000) * Position becomes eligible for liquidation **Liquidation Process:** * 50% of the position is liquidated (6,000 USDC debt) * Liquidator repays 6,000 USDC * Alice loses 4.28 ETH as collateral (6,000 USDC × 1.07 penalty / $1,500 per ETH) * Remaining position: 5.72 ETH collateral and 6,000 USDC debt * Post-liquidation LTV: ~70% ($6,000 / ($1,500 × 5.72)) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-2-liquidation-due-to-interest-rate-changes) Example 2: Liquidation Due to Interest Rate Changes **Initial Position:** * Charlie deposits 100,000 USDC as collateral * Charlie borrows 10 BTC (worth $600,000 at $60,000 per BTC) * Initial LTV: 60% ($600,000 / $1,000,000) **Market Change:** * BTC price increases to $75,000 per BTC * Borrowed value increases to $750,000 (10 BTC × $75,000) * New LTV: 75% ($750,000 / $1,000,000) **Further Market Change:** * BTC price increases to $80,000 per BTC * Borrowed value increases to $800,000 (10 BTC × $80,000) * New LTV: 80% ($800,000 / $1,000,000) * Position becomes eligible for liquidation **Liquidation Process:** * 50% of the position is liquidated (5 BTC debt) * Liquidator repays 5 BTC (worth $400,000) * Charlie loses 42,800 USDC as collateral ($400,000 × 1.07 penalty) * Remaining position: 57,200 USDC collateral and 5 BTC debt * Post-liquidation LTV: ~70% ($400,000 / $57,200) [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#common-questions) Common Questions --------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-triggers-a-liquidation-in-the-fixed-rate-lending-protocol) What triggers a liquidation in the Fixed-Rate Lending Protocol? Liquidations are triggered when a borrower's Loan-to-Value (LTV) ratio reaches or exceeds 80%. This can happen in two main ways: 1. When the value of the collateral decreases relative to the borrowed asset (e.g., collateral price drops) 2. When the value of the borrowed asset increases relative to the collateral (e.g., borrowed asset price rises) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#how-much-of-my-position-gets-liquidated-if-i-reach-the-liquidation-threshold) How much of my position gets liquidated if I reach the liquidation threshold? When your position reaches the liquidation threshold, 50% of your borrowed amount will be liquidated. This partial liquidation approach helps to bring your position back to a safer LTV ratio (typically around 70%) while minimizing the amount of collateral you lose. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-is-the-liquidation-penalty-and-why-does-it-exist) What is the liquidation penalty and why does it exist? The liquidation penalty is currently set at 7% of the liquidated debt value. This penalty serves several purposes: 1. It incentivizes liquidators to participate in the liquidation process 2. It discourages borrowers from taking excessive risk 3. It provides a buffer for the protocol against potential losses during volatile market conditions ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#can-i-prevent-my-position-from-being-liquidated) Can I prevent my position from being liquidated? Yes, you can prevent liquidation by: 1. Adding more collateral to decrease your LTV ratio 2. Repaying part of your debt to decrease your LTV ratio 3. Monitoring market conditions and taking proactive action before reaching the liquidation threshold ### [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-happens-to-my-remaining-position-after-liquidation) What happens to my remaining position after liquidation? After liquidation, you will have: 1. 50% of your original borrowed amount remaining as debt 2. Your original collateral minus the amount taken during liquidation (including the 7% penalty) 3. A healthier LTV ratio (typically around 70%) 4. The ability to continue using the protocol with your remaining position [hashtag](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#related-resources) Related Resources ----------------------------------------------------------------------------------------------------------------------------------------------------- * [Liquidation](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation) * [Mark to Market](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) * [Collateralizationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/collateralization.md) * [Safety Measuresarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/advanced-topics/safety-measures/README.md) [PreviousHow Liquidation Workschevron-left](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidators/how-liquidation-works) [NextProtocol Feeschevron-right](https://docs.secured.finance/fixed-rate-lending/core-mechanics/protocol-fees) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#how-it-works) * [Example Scenario](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-scenario) * [Liquidation Trigger](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#liquidation-trigger) * [Liquidation Process](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#liquidation-process) * [Post-Liquidation Position](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#post-liquidation-position) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#examples) * [Example 1: Liquidation Due to Exchange Rate Change](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-1-liquidation-due-to-exchange-rate-change) * [Example 2: Liquidation Due to Interest Rate Changes](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#example-2-liquidation-due-to-interest-rate-changes) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#common-questions) * [What triggers a liquidation in the Fixed-Rate Lending Protocol?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-triggers-a-liquidation-in-the-fixed-rate-lending-protocol) * [How much of my position gets liquidated if I reach the liquidation threshold?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#how-much-of-my-position-gets-liquidated-if-i-reach-the-liquidation-threshold) * [What is the liquidation penalty and why does it exist?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-is-the-liquidation-penalty-and-why-does-it-exist) * [Can I prevent my position from being liquidated?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#can-i-prevent-my-position-from-being-liquidated) * [What happens to my remaining position after liquidation?](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#what-happens-to-my-remaining-position-after-liquidation) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/liquidation-case-study#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # ZC Collateral Case Study | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#overview) Overview --------------------------------------------------------------------------------------------------------------------------------------------- This case study demonstrates the practical application of Zero Coupon Bonds (ZC) as collateral within our platform, focusing on the calculation of ZC utilization ratios, the overall collateral utilization ratio, and ZC collateral liquidation. Through detailed examples, we explore how these metrics are calculated and displayed, providing insights into effective collateral management. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#leveraging-zc-bonds-without-cash-collateral) Leveraging ZC Bonds Without Cash Collateral Consider User A who holds a ZC bond with a Present Value (PV) of 1,000 USDC. Opting to use this ZC bond as collateral, User A seeks to borrow without pledging any cash collateral. Under our platform's guidelines, they are eligible to borrow up to 80% of the ZC's PV, equating to 800 USDC. Upon borrowing the 800 USDC, the ZC utilization ratio for User A reaches 80%, reflecting the proportion of the ZC bond's value that has been leveraged. However, the total collateral utilization ratio presents a more comprehensive view of their position. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#calculating-total-collateral-utilization-ratio) Calculating Total Collateral Utilization Ratio The total collateral utilization ratio is calculated by considering both the borrowed amount and the utilized ZC as part of the collateral base. This calculation is crucial for understanding the full scope of collateral engagement on the platform. In this scenario, the formula is applied as follows: Collateral Utilization Ratio\=ObligationCash Collateral+Utilized ZC\\text{Collateral Utilization Ratio} = \\frac{\\text{Obligation}}{\\text{Cash Collateral} + \\text{Utilized ZC}}Collateral Utilization Ratio\=Cash Collateral+Utilized ZCObligation​ Given that User A's obligation is 800 USDC and the utilized ZC amounts to 1,000 USDC, the presence of the borrowed 800 USDC as part of the collateral (under the Secured Finance Vault) modifies the equation. Thus, the total collateral base is the sum of the ZC's PV and the borrowed cash, totaling 1,800 USDC. The calculation becomes: Collateral Utilization Ratio\=8001,000+800\=44.44%\\text{Collateral Utilization Ratio} = \\frac{800}{1,000 + 800} = 44.44\\%Collateral Utilization Ratio\=1,000+800800​\=44.44% This results in a collateral utilization ratio of approximately 44.44%, illustrating a more favorable leverage position than indicated by the ZC utilization ratio alone. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Maximum ZC Utilization Maximum percentage of ZC bond value that can be borrowed 80% Liquidation Threshold Utilization ratio at which liquidation is triggered 80% Liquidation Amount Maximum portion of obligation that can be liquidated 50% Liquidation Fee Additional fee applied to liquidated amount 7% (5% to liquidator, 2% to reserve) Post-Liquidation Target Target utilization ratio after liquidation ~70% [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#examples) Examples --------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-1-basic-zc-bond-collateralization) Example 1: Basic ZC Bond Collateralization User A holds a ZC bond with a Present Value (PV) of 1,000 USDC and wants to borrow without adding cash collateral: 1. User A deposits the ZC bond as collateral 2. Under the 80% maximum utilization rule, User A can borrow up to 800 USDC 3. After borrowing 800 USDC, the ZC utilization ratio is 80% (800/1000) 4. User A can withdraw the 800 USDC to their wallet 5. Both ZC utilization and overall collateral utilization ratios are at 80% ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-2-liquidation-scenario) Example 2: Liquidation Scenario If the price of User A's ZC bond suddenly declines: 1. The liquidation process is triggered when utilization exceeds 80% 2. A liquidator can liquidate up to 50% of User A's obligation (400 USDC) 3. User A loses the liquidated amount plus a 7% fee (400 + 28 = 428 USDC) 4. After liquidation, User A's remaining obligation is 400 USDC 5. The ZC collateral is reduced to 572 USDC (1000 - 428) 6. The post-liquidation ZC utilization ratio becomes 69.93% (400/572) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-3-mixed-collateral-strategy) Example 3: Mixed Collateral Strategy User B has both ZC bonds and cash collateral: 1. User B deposits a ZC bond worth 2,000 USDC and 1,000 USDC cash 2. User B can borrow up to 2,600 USDC (80% of ZC value + 100% of cash) 3. After borrowing 2,000 USDC: * ZC utilization: 80% (1,600/2,000) * Cash utilization: 40% (400/1,000) * Overall collateral utilization: 66.7% (2,000/3,000) 4. This mixed strategy provides better protection against price fluctuations 5. User B would need a significant price drop to trigger liquidation [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-are-the-advantages-of-using-zc-bonds-as-collateral) What are the advantages of using ZC bonds as collateral? Using Zero-Coupon Bonds as collateral offers several advantages: 1. **Increased Capital Efficiency**: Allows users to leverage their ZC bond holdings without selling them 2. **Yield Optimization**: Users can maintain exposure to fixed-rate returns while accessing liquidity 3. **Portfolio Diversification**: Enables users to maintain diversified positions across different assets 4. **Reduced Opportunity Cost**: Provides access to capital without forfeiting future bond returns 5. **Strategic Positioning**: Allows for complex trading strategies that combine fixed-rate exposure with other market opportunities ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-risks-should-i-be-aware-of-when-using-zc-bonds-as-collateral) What risks should I be aware of when using ZC bonds as collateral? When using ZC bonds as collateral, be aware of these risks: 1. **Price Volatility**: ZC bond prices can fluctuate based on market conditions and interest rate changes 2. **Liquidation Risk**: If utilization ratios exceed thresholds, your position may be partially liquidated 3. **Maturity Considerations**: As bonds approach maturity, their price sensitivity to interest rate changes decreases 4. **Market Liquidity**: In times of market stress, ZC bond liquidity may decrease, affecting collateral valuations 5. **Correlation Risk**: If you borrow assets that are highly correlated with your ZC bond collateral, market downturns could affect both simultaneously ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-is-the-zc-bond-value-calculated-for-collateral-purposes) How is the ZC bond value calculated for collateral purposes? The ZC bond value for collateral is calculated as follows: 1. **Present Value Calculation**: The system uses the current market price to determine the Present Value (PV) 2. **Mark-to-Market Updates**: The value is regularly updated based on market prices 3. **Haircut Application**: A 20% haircut is applied to the PV to determine the maximum borrowing capacity 4. **Maturity Consideration**: As bonds approach maturity, their value converges toward par (face value) 5. **Price Oracle Integration**: The system uses decentralized price oracles to ensure accurate valuations ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-happens-if-i-want-to-withdraw-my-zc-bond-collateral) What happens if I want to withdraw my ZC bond collateral? To withdraw your ZC bond collateral: 1. **Utilization Check**: The system verifies that your remaining collateral will maintain utilization ratios below thresholds 2. **Repayment Requirement**: You may need to repay a portion of your borrowed amount to reduce utilization 3. **Partial Withdrawal**: You can withdraw a portion of your ZC bond collateral if full withdrawal isn't possible 4. **Fee Consideration**: There are no additional fees for withdrawing collateral 5. **Processing Time**: Withdrawals are processed on-chain and typically complete within one block ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-does-the-liquidation-process-differ-for-zc-bond-collateral-compared-to-other-collateral-types) How does the liquidation process differ for ZC bond collateral compared to other collateral types? The liquidation process for ZC bond collateral: 1. **Same Threshold**: Uses the same 80% utilization threshold as other collateral types 2. **Partial Liquidation**: Liquidators can liquidate up to 50% of the obligation in a single liquidation 3. **Collateral Valuation**: ZC bonds are valued at current market prices during liquidation 4. **Liquidation Fee**: The same 7% liquidation fee applies (5% to liquidator, 2% to reserve) 5. **Post-Liquidation Target**: The process aims to bring utilization down to approximately 70% [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------------------------- * [ZC Bond Collateral](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral) * [Collateralizationarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/collateralization.md) * [Liquidation Processarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/liquidation/README.md) * [Zero-Coupon Standardarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/standardization/zero-coupon-bonds.md) [PreviousZC Bond Collateralchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral) [NextMarket Dynamicschevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/market-dynamics) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-it-works) * [Leveraging ZC Bonds Without Cash Collateral](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#leveraging-zc-bonds-without-cash-collateral) * [Calculating Total Collateral Utilization Ratio](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#calculating-total-collateral-utilization-ratio) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#examples) * [Example 1: Basic ZC Bond Collateralization](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-1-basic-zc-bond-collateralization) * [Example 2: Liquidation Scenario](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-2-liquidation-scenario) * [Example 3: Mixed Collateral Strategy](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#example-3-mixed-collateral-strategy) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#common-questions) * [What are the advantages of using ZC bonds as collateral?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-are-the-advantages-of-using-zc-bonds-as-collateral) * [What risks should I be aware of when using ZC bonds as collateral?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-risks-should-i-be-aware-of-when-using-zc-bonds-as-collateral) * [How is the ZC bond value calculated for collateral purposes?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-is-the-zc-bond-value-calculated-for-collateral-purposes) * [What happens if I want to withdraw my ZC bond collateral?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#what-happens-if-i-want-to-withdraw-my-zc-bond-collateral) * [How does the liquidation process differ for ZC bond collateral compared to other collateral types?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#how-does-the-liquidation-process-differ-for-zc-bond-collateral-compared-to-other-collateral-types) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/zc-bond-collateral/zc-collateral-case-study#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Circuit Breaker | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#overview) Overview --------------------------------------------------------------------------------------------------------------------------------- The Circuit Breaker is a protective mechanism used in the bond market to prevent excessive price movements and maintain stability. This user guide will explain what the Circuit Breaker is and why it is important for bond market participants. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-youll-learn) What You'll Learn -------------------------------------------------------------------------------------------------------------------------------------------------- * What a Circuit Breaker is and how it functions in the bond market * Why Circuit Breakers are essential for market stability * How Circuit Breakers protect against flash loan attacks in crypto trading * How the Secured Finance platform implements Circuit Breakers * How the 3-threshold system works to prevent extreme volatility [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-is-the-circuit-breaker-in-bond-market) What is the Circuit Breaker in Bond Market? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ The Circuit Breaker in Bond Market is an automatic mechanism that temporarily suspends trading if there is a sudden and significant price movement. The Circuit Breaker is triggered when the price of bonds rises or falls beyond a certain pre-determined limit. The purpose of the Circuit Breaker is to prevent market participants from trading under extreme market conditions and to protect investors from significant losses due to sudden price fluctuations. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#why-is-the-circuit-breaker-important) Why is the Circuit Breaker Important? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ The Circuit Breaker is important for several reasons. First, it helps prevent panic selling or buying during periods of extreme volatility, which can cause prices to move rapidly and unpredictably. This can lead to significant losses for investors who are not able to react quickly enough. Second, it provides market participants with time to assess the situation and make informed decisions about their trades. This helps to prevent knee-jerk reactions that can lead to further market disruption. Finally, the Circuit Breaker promotes overall market stability by reducing the likelihood of extreme price movements and volatility. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#any-specific-benefit-from-circuit-breaker-for-crypto-trading) Any specific benefit from Circuit Breaker for crypto trading? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ By setting the value threshold of the Circuit Breaker to dynamically change based on interest rates or loan duration, you can effectively mitigate the impact of a Flash loan attack. Restricting the price movement within a single block ensures that any potential damage is contained and doesn't escalate rapidly. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------------- At our trading platform, we have implemented a circuit breaker mechanism that effectively sets price limitations for market movements within a single block. This mechanism applies to both our 'market order' and 'limit order' functions, ensuring that all orders adhere to a well-defined 3-threshold system. By doing so, we guarantee that orders remain within acceptable price ranges, effectively preventing extreme volatility and maintaining stability in our Zero Coupon bond market. The circuit breaker serves as a crucial tool to promote a secure and reliable trading environment, safeguarding both traders and the overall integrity of our platform. For a more detailed calculation, please consult the '[Formulaic for Circuit Breaker](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker/price-range-limits) '. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Downward Movement Limit Maximum percentage decrease from Moving Average 5% Upward Movement Limit Maximum percentage increase from Moving Average 10% Downward Moving Average Period Number of blocks used for downward limit calculation 5 blocks Upward Moving Average Period Number of blocks used for upward limit calculation 3 blocks Downward Allowance Price can decrease regardless of the percentage limit 2.00 Upward Allowance Price can increase regardless of the percentage limit 7.00 [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#examples) Examples --------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-1-normal-market-conditions) Example 1: Normal Market Conditions Under normal market conditions, the Circuit Breaker operates as follows: 1. A trader places a market order to buy 10,000 USDC worth of ETH bonds at the current market price of 95.00 2. The Circuit Breaker system checks if this order would cause the price to move beyond the allowed thresholds 3. Since the order size is moderate and market conditions are normal, the price impact is minimal (e.g., moving the price to 95.10) 4. The Circuit Breaker allows the order to execute normally since the price movement is within acceptable limits 5. The trade completes successfully and the new market price is established at 95.10 ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-2-flash-loan-attack-attempt) Example 2: Flash Loan Attack Attempt Consider a scenario where an attacker attempts to manipulate the market using a flash loan: 1. An attacker obtains a large flash loan of 1,000,000 USDC 2. They attempt to place a massive market order to artificially drive the price of ETH bonds up to 98.00 (a 3% move in a single block) 3. The Circuit Breaker detects that this order would cause the price to move beyond the maximum allowed threshold 4. The order is partially filled only up to the maximum allowed price movement (e.g., 95.50, representing the maximum allowed movement) 5. The remainder of the order is rejected, preventing the attacker from manipulating the market 6. The attacker fails to profit from the attempted manipulation and must repay their flash loan ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-3-volatile-market-conditions) Example 3: Volatile Market Conditions During periods of high volatility: 1. Market news causes a sudden increase in selling pressure for FIL bonds 2. Multiple sellers attempt to exit positions simultaneously, potentially causing a price crash 3. The Circuit Breaker activates as the price approaches the lower threshold 4. Orders are only filled up to the maximum allowed price movement 5. This prevents a market crash and gives participants time to reassess 6. Subsequent blocks can continue price discovery in a more orderly fashion 7. The market stabilizes without experiencing extreme price swings [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-does-the-circuit-breaker-protect-against-flash-loan-attacks) How does the Circuit Breaker protect against flash loan attacks? The Circuit Breaker protects against flash loan attacks in several ways: 1. **Single-Block Limitation**: By limiting price movements within a single block, attackers cannot use flash loans to manipulate prices dramatically in the same transaction 2. **Dynamic Thresholds**: Thresholds are set based on market conditions, making them harder to predict and exploit 3. **Order Rejection**: Orders that would cause prices to move beyond thresholds are partially filled or rejected 4. **Time Buffer**: By forcing price movements to occur across multiple blocks, attackers must maintain positions longer, increasing their risk 5. **Monitoring Systems**: Unusual trading patterns trigger additional scrutiny and potential intervention ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-are-the-three-thresholds-in-the-circuit-breaker-system) What are the three thresholds in the Circuit Breaker system? The three thresholds in our Circuit Breaker system are: 1. **Limitation on Downward Price Movement**: The platform restricts the downward price movement to 5% from the Moving Average of the most recent 5 Reliable Block Prices. 2. **Limitation on Upward Price Movement**: Conversely, upward price movement is capped at 10% from the Moving Average of the last 3 Reliable Block Prices. 3. **Price Fluctuation Allowance**: The market is permitted to move at least 2.00 for downside and 7.00 for topside regardless of percentage calculations. These thresholds are designed to prevent market manipulation and ensure stability while allowing for natural price discovery. For more detailed calculations, please refer to the [Price Range Limits](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker/price-range-limits) page. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#can-the-circuit-breaker-be-bypassed-or-manipulated) Can the Circuit Breaker be bypassed or manipulated? The Circuit Breaker is designed to be resistant to manipulation: 1. **On-Chain Implementation**: The mechanism is implemented directly in smart contracts, making it impossible to bypass 2. **Decentralized Verification**: All threshold calculations are transparent and verified by the network 3. **Dynamic Parameters**: Thresholds adjust based on market conditions, making them difficult to game 4. **Multi-Block Design**: Attempting to gradually push prices requires maintaining positions across multiple blocks, increasing cost and risk 5. **Governance Oversight**: Parameters are monitored and can be adjusted through governance if manipulation patterns emerge ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-does-the-circuit-breaker-affect-my-trading-experience) How does the Circuit Breaker affect my trading experience? Under normal market conditions, most traders will not notice the Circuit Breaker: 1. **Typical Orders**: Standard-sized orders will execute normally without triggering any limits 2. **Market Stability**: The mechanism helps ensure more stable and predictable prices 3. **Execution Certainty**: You can be confident your orders won't execute at extremely unfavorable prices during volatility 4. **Partial Fills**: Very large orders might be partially filled if they would cause excessive price movement 5. **Protection**: Your positions are protected from flash crashes and manipulation attempts ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#are-circuit-breaker-parameters-the-same-for-all-assets) Are Circuit Breaker parameters the same for all assets? No, Circuit Breaker parameters vary by asset: 1. **Asset-Specific Calibration**: Each asset has parameters calibrated to its specific volatility profile 2. **Liquidity Considerations**: More liquid assets may have tighter thresholds than less liquid ones 3. **Maturity Adjustment**: Bonds closer to maturity have different parameters than those with longer durations 4. **Periodic Review**: Parameters are reviewed regularly and adjusted based on market conditions 5. **Transparency**: Current parameters for each asset are publicly available in the protocol documentation [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------------- * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) * [Base Price Adjustment](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment) * [Emergency Global Settlement](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement) * [Mark to Market](https://docs.secured.finance/fixed-rate-lending/core-mechanics/liquidation/mark-to-market) * [Price Range Limits](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker/price-range-limits) [PreviousSafety Measureschevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) [NextPrice Range Limitschevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker/price-range-limits) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#overview) * [What You'll Learn](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-youll-learn) * [What is the Circuit Breaker in Bond Market?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-is-the-circuit-breaker-in-bond-market) * [Why is the Circuit Breaker Important?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#why-is-the-circuit-breaker-important) * [Any specific benefit from Circuit Breaker for crypto trading?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#any-specific-benefit-from-circuit-breaker-for-crypto-trading) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#examples) * [Example 1: Normal Market Conditions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-1-normal-market-conditions) * [Example 2: Flash Loan Attack Attempt](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-2-flash-loan-attack-attempt) * [Example 3: Volatile Market Conditions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#example-3-volatile-market-conditions) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#common-questions) * [How does the Circuit Breaker protect against flash loan attacks?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-does-the-circuit-breaker-protect-against-flash-loan-attacks) * [What are the three thresholds in the Circuit Breaker system?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#what-are-the-three-thresholds-in-the-circuit-breaker-system) * [Can the Circuit Breaker be bypassed or manipulated?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#can-the-circuit-breaker-be-bypassed-or-manipulated) * [How does the Circuit Breaker affect my trading experience?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#how-does-the-circuit-breaker-affect-my-trading-experience) * [Are Circuit Breaker parameters the same for all assets?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#are-circuit-breaker-parameters-the-same-for-all-assets) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Orderbook Rotation | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#overview) Overview ---------------------------------------------------------------------------------------------------------------------------------------- Orderbook Rotation is a key mechanism in the Secured Finance protocol that ensures continuous market operation and efficient resource utilization. Under our protocol, there are currently 8 active orderbooks and 1 inactive orderbook operating for each currency. This rotation system allows for seamless transitions between orderbooks as they mature, maintaining liquidity and market efficiency. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-it-works) How It Works ------------------------------------------------------------------------------------------------------------------------------------------------ The orderbook rotation process follows a specific cycle that ensures continuous market operation while optimizing for efficiency. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#orderbook-lifecycle) Orderbook Lifecycle The inactive orderbook undergoes a pre-order period lasting 168 hours (7 days) up to 1 hour before the expiration date of the shortest orderbook. At that point, the Itayose process is initiated, leading to the opening of the orderbook at the specified date. Simultaneously, the orderbook rotation takes place. During this action, if the nearest orderbook has already reached maturity, it will move to the end, and auto-roll will be executed concurrently. The moved orderbook is then recycled and transformed into an inactive, awaiting the next pre-order period. This cycle ensures a seamless and continuous operation of our orderbooks, facilitating efficient utilization of resources and promoting a dynamic and robust lending ecosystem. > In this cycle, the number of orderbooks per currency is limited to 9. This means that the increase in order data subject to lazy evaluation can be limited, resulting in lower gas costs. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-6e6732e0645add03c9f94df52c91bf2e2754020d%252FMarket%2520Kife%2520Cycle.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=12f36202&sv=2) Market Life Cycle [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#key-parameters) Key Parameters ---------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Active Orderbooks Number of active orderbooks per currency 8 Inactive Orderbooks Number of inactive orderbooks per currency 1 Pre-Order Period Duration before new orderbook opens 168 hours (7 days) Orderbook Freeze Time before opening when orderbook is frozen 1 hour Total Orderbooks Maximum number of orderbooks per currency 9 Rotation Trigger Event that initiates orderbook rotation Maturity of shortest orderbook Maturity Spacing Typical time between consecutive maturities 3 months Rotation Frequency How often orderbook rotation typically occurs Every 3 months [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#examples) Examples ---------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-1-complete-orderbook-rotation-cycle) Example 1: Complete Orderbook Rotation Cycle Let's follow a complete rotation cycle for ETH orderbooks: 1. **Initial State**: 8 active orderbooks (maturities: Mar 2024, Jun 2024, Sep 2024, Dec 2024, Mar 2025, Jun 2025, Sep 2025, Dec 2025) and 1 inactive orderbook (future Mar 2026) 2. **Pre-Order Period**: 7 days before Mar 2024 maturity, the inactive Mar 2026 orderbook enters pre-order period * Users can place pre-orders for the Mar 2026 market * These orders will be matched during the Itayose process 3. **Maturity and Rotation**: When Mar 2024 orderbook matures: * Mar 2024 orderbook is moved to the end of the queue and becomes inactive * Mar 2026 orderbook becomes active after Itayose process completes * Auto-roll executes for positions in the Mar 2024 orderbook 4. **New State**: 8 active orderbooks (Jun 2024, Sep 2024, Dec 2024, Mar 2025, Jun 2025, Sep 2025, Dec 2025, Mar 2026) and 1 inactive orderbook (recycled Mar 2024, which will become Jun 2026) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-2-pre-order-placement-and-itayose) Example 2: Pre-Order Placement and Itayose A trader wants to participate in the pre-order period for a new orderbook: 1. The trader sees that the Sep 2025 orderbook will be opening in 5 days 2. They place a pre-order to lend 10 ETH at a 5% APR 3. Other traders place various pre-orders at different rates 4. One hour before the orderbook opens, the pre-order period ends 5. The Itayose process runs, finding the equilibrium price where supply meets demand 6. The orderbook opens with the fair price determined by Itayose 7. The trader's order is filled at the fair price (which may differ from their requested 5%) ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-3-gas-optimization-through-limited-orderbooks) Example 3: Gas Optimization Through Limited Orderbooks Consider the impact of limiting orderbooks to 9 per currency: 1. Without the limit: If we had 20 orderbooks per currency, each new order would potentially need to check 20 different price points 2. With the 9 orderbook limit: Each new order only needs to check a maximum of 9 price points 3. Result: Gas costs for order placement are reduced by more than 50% 4. Additionally, the lazy evaluation process has fewer data points to process 5. This optimization is especially important during high network congestion periods [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#common-questions) Common Questions -------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#why-limit-the-number-of-orderbooks-to-9-per-currency) Why limit the number of orderbooks to 9 per currency? Limiting the number of orderbooks to 9 per currency (8 active and 1 inactive) serves several important purposes: 1. **Gas Optimization**: Fewer orderbooks means less data to process during order placement and matching, resulting in lower gas costs 2. **Liquidity Concentration**: Concentrating trading in fewer markets increases liquidity depth in each market 3. **Simplified User Experience**: Users can more easily understand and navigate a limited number of maturity options 4. **Efficient Lazy Evaluation**: The lazy evaluation process becomes more efficient with fewer data points to process 5. **Predictable Market Cycle**: Users can anticipate when new markets will open and old ones will close ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-does-the-pre-order-period-benefit-the-protocol) How does the pre-order period benefit the protocol? The pre-order period provides several benefits: 1. **Price Discovery**: It allows for fair price discovery through the Itayose process before the market officially opens 2. **Liquidity Bootstrapping**: New markets start with existing liquidity rather than empty orderbooks 3. **Reduced Slippage**: Initial trades face less slippage due to pre-established liquidity 4. **Market Signals**: Pre-orders provide signals about market sentiment for the new maturity 5. **Smooth Transitions**: It ensures a smooth transition between maturing markets and new ones ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#what-happens-to-my-positions-when-an-orderbook-matures) What happens to my positions when an orderbook matures? When an orderbook reaches maturity: 1. **Auto-Roll**: Your positions will automatically roll over to a suitable maturity at the prevailing market rate. This is a protocol-wide feature that applies to everyone and does not need to be enabled. 2. **Unwinding**: The only way to settle and exit your position is by manually unwinding it. There is no automatic settlement functionality. 3. **Tokenization**: You can tokenize your lending position as an ERC20 token before maturity. Note that Manual Roll is not applicable as all positions are subject to Auto-Roll by default. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-is-the-itayose-price-determined-for-new-orderbooks) How is the Itayose price determined for new orderbooks? The Itayose price is determined through a process that maximizes the matching volume: 1. All pre-orders are collected during the pre-order period 2. The system sorts all buy (borrow) and sell (lend) orders by price 3. It identifies the price point where the maximum number of orders can be matched 4. This becomes the opening price for the new orderbook 5. Orders that can be matched at this price are executed 6. Remaining orders become limit orders in the new active orderbook ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#can-i-place-orders-in-inactive-orderbooks) Can I place orders in inactive orderbooks? Yes, you can place orders in the inactive orderbook during its pre-order period: 1. The pre-order period starts 7 days before the expiration of the shortest active orderbook 2. During this time, you can place orders that will be included in the Itayose process 3. These orders will help establish the opening price for the new orderbook 4. If your pre-order matches during Itayose, it will be executed when the orderbook becomes active 5. If not, it will remain as a limit order in the newly activated orderbook [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#related-resources) Related Resources ---------------------------------------------------------------------------------------------------------------------------------------------------------- * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Itayose Fair Price Discoveryarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/market-dynamics/new-market-listing-and-delisting/itayose-fair-price-discovery.md) * [Auto-Rollingarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/market-dynamics/auto-rolling/README.md) * [Lazy Evaluation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) * [Compound Factor](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor) [PreviousOrderbook Deep Divechevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) [NextRed Black Treechevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-it-works) * [Orderbook Lifecycle](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#orderbook-lifecycle) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#examples) * [Example 1: Complete Orderbook Rotation Cycle](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-1-complete-orderbook-rotation-cycle) * [Example 2: Pre-Order Placement and Itayose](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-2-pre-order-placement-and-itayose) * [Example 3: Gas Optimization Through Limited Orderbooks](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#example-3-gas-optimization-through-limited-orderbooks) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#common-questions) * [Why limit the number of orderbooks to 9 per currency?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#why-limit-the-number-of-orderbooks-to-9-per-currency) * [How does the pre-order period benefit the protocol?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-does-the-pre-order-period-benefit-the-protocol) * [What happens to my positions when an orderbook matures?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#what-happens-to-my-positions-when-an-orderbook-matures) * [How is the Itayose price determined for new orderbooks?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#how-is-the-itayose-price-determined-for-new-orderbooks) * [Can I place orders in inactive orderbooks?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#can-i-place-orders-in-inactive-orderbooks) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # Red Black Tree | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#overview) Overview ------------------------------------------------------------------------------------------------------------------------------------ A Red Black Tree is a balanced binary search tree that enables various operations such as data insertion, deletion, and search to be executed with a computational complexity of O(log n). In the context of Secured Finance, each node of this tree represents the Price in the order book, and it is linked to the corresponding Open Orders using a LinkedList, allowing efficient data management and significant gas cost reductions. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-it-works) How It Works -------------------------------------------------------------------------------------------------------------------------------------------- Red-Black Trees provide an efficient way to organize and manage orderbook data, significantly reducing gas costs and improving overall protocol performance. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#computational-efficiency) Computational Efficiency By utilizing the Red Black Tree, the gas cost associated with open order creation and deletion is significantly reduced to O(log n), resulting in substantial gas cost reductions. Moreover, for data updates, it is only necessary to update the target data and its adjacent data, eliminating the need to update the entire dataset and consequently avoiding gas costs proportional to the total data volume. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#enhanced-unlinking-process) Enhanced Unlinking Process Secured Finance extends the functionality of the Red Black Tree by introducing a process to **Unlink** specified nodes. This **Unlink** operation effectively detaches all the data associated with the subtree rooted at the specified node. As a result, by simply **Unlink**ing certain nodes in the tree, all the data related to matched orders in the market can be removed from the order book. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#separate-trees-for-order-types) Separate Trees for Order Types Within a single order book, there are two separate Red Black Trees for managing Borrowing Orders and Lending Orders separately. This separation allows for more efficient order matching and management, as each tree can be optimized for its specific order type. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#order-management) Order Management Each price level in the orderbook is represented by a node in the Red-Black Tree. Orders at the same price level are linked together using a LinkedList structure, allowing for efficient insertion and removal of orders at a specific price point. When orders are matched, the corresponding nodes can be efficiently unlinked from the tree without affecting the overall structure. ![](https://docs.secured.finance/~gitbook/image?url=https%3A%2F%2F2995566130-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F5n2yKWdxy0II5Sd3ZIQL%252Fuploads%252Fgit-blob-41ae04373aaa8064de2fafc6ba3e257e2dc6bfac%252Fimage.png%3Falt%3Dmedia&width=768&dpr=3&quality=100&sign=316c3b78&sv=2) Red-Black Tree Structure in Orderbook [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------------------------ Parameter Description Value Computational Complexity Time complexity for insertion, deletion, and search operations O(log n) Tree Structure Type of balanced binary search tree used Red-Black Tree Node Representation What each node in the tree represents Price level in orderbook Order Storage How orders at the same price are stored LinkedList Number of Trees per Orderbook Separate trees for different order types 2 (Borrowing and Lending) Unlinking Operation Special operation for efficient order removal Custom implementation Rebalancing Threshold When tree rebalancing occurs After insertion/deletion Maximum Tree Depth Worst-case depth of the tree with n nodes 2×log₂(n+1) Color Property Colors used in the Red-Black Tree Red and Black Tree Properties Rules that maintain tree balance 5 standard Red-Black Tree properties [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#examples) Examples ------------------------------------------------------------------------------------------------------------------------------------ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-1-order-insertion-process) Example 1: Order Insertion Process Let's walk through how a new order is inserted into the orderbook: 1. Alice places a limit order to lend 1,000 USDC at 5% APR in the JUN2025 market 2. The protocol converts the 5% APR to a price value (e.g., 0.95238) 3. The system checks if a node for price 0.95238 already exists in the Lending Orders Red-Black Tree: * If it exists: Alice's order is added to the LinkedList of orders at that price point * If it doesn't exist: A new node is created with price 0.95238, and Alice's order becomes the first in the LinkedList 4. The Red-Black Tree is rebalanced if necessary to maintain its properties 5. The entire operation has O(log n) time complexity, where n is the number of distinct price levels 6. Gas cost is significantly lower than if a linear data structure were used ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-2-order-matching-and-unlinking) Example 2: Order Matching and Unlinking When orders are matched in the orderbook: 1. Bob places a market order to borrow 2,000 USDC in the JUN2025 market 2. The system traverses the Lending Orders Red-Black Tree to find the best available rates 3. It finds multiple lending orders, including Alice's order at 5% APR 4. After matching, Alice's order is fully filled 5. Instead of immediately removing Alice's order from the LinkedList and potentially the tree node: * The system marks Alice's order as "unlinked" * The order remains in the data structure but is ignored during traversal 6. During a later CleanUp process: * If Alice's order was the only one at that price point, the entire node is removed * If other orders exist at that price, only Alice's order is removed from the LinkedList 7. This deferred cleanup (lazy evaluation) further reduces gas costs ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-3-gas-cost-comparison) Example 3: Gas Cost Comparison Consider the gas cost implications of different data structures for an orderbook with 100 price levels and 1,000 total orders: 1. **Array-based implementation**: * Inserting a new order: O(n) = O(100) operations * Finding the best price: O(n) = O(100) operations * Removing a matched order: O(n) = O(100) operations * Total gas cost for 100 transactions: Approximately 3,000,000 gas 2. **Red-Black Tree implementation**: * Inserting a new order: O(log n) = O(log 100) ≈ O(7) operations * Finding the best price: O(log n) = O(log 100) ≈ O(7) operations * Removing a matched order: O(log n) = O(log 100) ≈ O(7) operations * Total gas cost for 100 transactions: Approximately 500,000 gas 3. **Red-Black Tree with Unlinking and Lazy Evaluation**: * Inserting a new order: O(log n) = O(log 100) ≈ O(7) operations * Finding the best price: O(log n) = O(log 100) ≈ O(7) operations * Marking an order as unlinked: O(1) operation * Batch cleanup of multiple unlinked orders: Amortized O(1) per order * Total gas cost for 100 transactions: Approximately 300,000 gas The Red-Black Tree with unlinking provides an 85-90% reduction in gas costs compared to naive implementations. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#common-questions) Common Questions ---------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#why-use-red-black-trees-instead-of-other-data-structures) Why use Red-Black Trees instead of other data structures? Red-Black Trees offer several advantages for orderbook implementation: 1. **Balanced Structure**: Red-Black Trees are self-balancing, ensuring O(log n) operations even in worst-case scenarios 2. **Ordered Traversal**: The tree structure allows for efficient in-order traversal to find the best prices 3. **Memory Efficiency**: The tree structure is more memory-efficient than maintaining sorted arrays 4. **Insertion/Deletion Performance**: Both operations are O(log n), making them efficient for dynamic orderbooks 5. **Proven Technology**: Red-Black Trees are a well-established data structure with known properties and guarantees While other balanced binary search trees like AVL trees could also work, Red-Black Trees offer a good balance between performance and implementation complexity. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-does-the-unlink-operation-differ-from-standard-deletion) How does the Unlink operation differ from standard deletion? The Unlink operation is a specialized optimization that differs from standard tree deletion: 1. **Standard Deletion**: Completely removes a node from the tree, requiring tree rebalancing 2. **Unlinking**: Marks a node or order as "unlinked" without removing it from the data structure 3. **Deferred Cleanup**: Actual removal happens later during batch operations 4. **Gas Efficiency**: Unlinking is an O(1) operation, while deletion is O(log n) 5. **Batch Processing**: Multiple unlinked nodes can be cleaned up in a single operation This approach is particularly valuable in blockchain contexts where minimizing gas costs is critical. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-do-red-black-trees-handle-multiple-orders-at-the-same-price) How do Red-Black Trees handle multiple orders at the same price? To handle multiple orders at the same price point: 1. **Node Structure**: Each node in the Red-Black Tree represents a unique price point 2. **LinkedList Integration**: All orders at the same price are stored in a LinkedList attached to the node 3. **Order Priority**: Within a price point, orders are typically prioritized by time (FIFO) 4. **Partial Fills**: When an order is partially filled, it remains in the LinkedList with an updated amount 5. **Complete Fills**: When an order is completely filled, it's marked as unlinked in the LinkedList This hybrid data structure combines the efficiency of Red-Black Trees for price discovery with the simplicity of LinkedLists for order queuing. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#what-happens-when-a-large-number-of-orders-are-matched-at-once) What happens when a large number of orders are matched at once? When many orders are matched simultaneously (e.g., during Itayose price discovery): 1. **Batch Processing**: The system processes multiple matches in a single transaction 2. **Efficient Unlinking**: Orders are marked as unlinked rather than immediately removed 3. **Subtree Unlinking**: In some cases, entire subtrees can be unlinked at once 4. **Deferred Cleanup**: The actual removal of unlinked orders happens during less time-sensitive operations 5. **Gas Optimization**: This approach significantly reduces the gas cost of large-scale order matching This is particularly important during events like auto-rolling or new market openings when many orders may be matched simultaneously. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-are-the-red-black-trees-maintained-across-multiple-orderbooks) How are the Red-Black Trees maintained across multiple orderbooks? The protocol maintains separate Red-Black Trees for each orderbook and order type: 1. **Per-Market Trees**: Each market (maturity date) has its own set of Red-Black Trees 2. **Order Type Separation**: Within each market, separate trees exist for Borrowing and Lending orders 3. **Recycling**: When markets mature, the tree structures are recycled for new markets 4. **Consistent Interface**: Despite having multiple trees, the protocol provides a unified interface for interacting with them 5. **Parallel Processing**: The separation allows for more efficient processing of different order types This modular approach helps maintain performance even as the number of markets and orders grows. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------------------------ * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Lazy Evaluation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) * [Order Book Systemarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/order-book-system/README.md) * [Order Typesarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/order-book-system/order-type.md) * [Order Life Cyclearrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/order-book-system/order-life-cycle/case-study-order-status-and-transition.md) [PreviousOrderbook Rotationchevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation) [NextLazy Evaluationchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/lazy-evaluation) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-it-works) * [Computational Efficiency](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#computational-efficiency) * [Enhanced Unlinking Process](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#enhanced-unlinking-process) * [Separate Trees for Order Types](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#separate-trees-for-order-types) * [Order Management](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#order-management) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#examples) * [Example 1: Order Insertion Process](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-1-order-insertion-process) * [Example 2: Order Matching and Unlinking](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-2-order-matching-and-unlinking) * [Example 3: Gas Cost Comparison](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#example-3-gas-cost-comparison) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#common-questions) * [Why use Red-Black Trees instead of other data structures?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#why-use-red-black-trees-instead-of-other-data-structures) * [How does the Unlink operation differ from standard deletion?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-does-the-unlink-operation-differ-from-standard-deletion) * [How do Red-Black Trees handle multiple orders at the same price?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-do-red-black-trees-handle-multiple-orders-at-the-same-price) * [What happens when a large number of orders are matched at once?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#what-happens-when-a-large-number-of-orders-are-matched-at-once) * [How are the Red-Black Trees maintained across multiple orderbooks?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#how-are-the-red-black-trees-maintained-across-multiple-orderbooks) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/red-black-tree#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon --- # USDFC SDK | Secured Finance Docs The USDFC SDK is a comprehensive toolkit for developers to integrate and interact with the USDFC stablecoin protocol. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#overview) Overview ------------------------------------------------------------------------------------------------------- USDFC is a collateralized debt platform built on the Filecoin blockchain. Users can lock up FIL as collateral and issue USDFC stablecoin tokens. The USDFC SDK provides a programmatic interface to interact with the protocol, allowing developers to build applications that leverage USDFC functionality. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------- The USDFC SDK is built on top of ethers.js and provides a type-safe interface to interact with the USDFC smart contracts. It abstracts away the complexity of direct contract interactions and provides a more developer-friendly API. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#installation) Installation --------------------------------------------------------------------------------------------------------------- The USDFC SDK packages are hosted on GitHub Packages registry, not the public NPM registry. You'll need to configure your `.npmrc` file to access them: Copy # Add this to your .npmrc file @secured-finance:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN # Then install the individual packages npm install @secured-finance/stablecoin-lib-ethers npm install @secured-finance/stablecoin-lib-react npm install @secured-finance/stablecoin-lib-base For more details on setting up authentication for GitHub Packages, see the [GitHub documentationarrow-up-right](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages) . [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#key-components) Key Components ------------------------------------------------------------------------------------------------------------------- The USDFC SDK consists of several packages: ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#lib-ethers) lib-ethers The core package for interacting with the USDFC protocol using ethers.js. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#lib-react) lib-react React hooks and components for building USDFC-integrated web applications. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#basic-usage) Basic Usage ------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#connecting-to-the-protocol) Connecting to the Protocol ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#reading-protocol-state) Reading Protocol State ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#creating-and-managing-troves) Creating and Managing Troves ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#stability-pool-operations) Stability Pool Operations ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#redemption-operations) Redemption Operations ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#liquidation-operations) Liquidation Operations [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#advanced-usage) Advanced Usage ------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#react-integration) React Integration [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#examples) Examples ------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#creating-a-trove-and-minting-usdfc) Creating a Trove and Minting USDFC ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#monitoring-liquidation-risk) Monitoring Liquidation Risk [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#faq) FAQ --------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-do-i-handle-transaction-errors) How do I handle transaction errors? The SDK throws descriptive error objects that contain information about the failure. Wrap your transactions in try-catch blocks to handle errors gracefully. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-do-i-monitor-protocol-events) How do I monitor protocol events? Use the block-polled store to automatically update your application state when protocol events occur. ### [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#what-networks-does-the-sdk-support) What networks does the SDK support? The SDK supports the Filecoin network, which is the only network where the USDFC protocol is deployed. The USDFC protocol is not available on Ethereum or Arbitrum networks. [hashtag](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------- * [USDFC Protocol Documentation](https://docs.secured.finance/usdfc-stablecoin/overview) * [GitHub Repositoryarrow-up-right](https://github.com/Secured-Finance/stablecoin-sdk) * [NPM Packagearrow-up-right](https://www.npmjs.com/package/@secured-finance/stablecoin-sdk) [PreviousFixed-Rate Lending SDKchevron-left](https://docs.secured.finance/developer-portal/sdk-reference/fixed-rate-lending-sdk) [NextBug Bountychevron-right](https://docs.secured.finance/developer-portal/bug-bounty) Last updated 9 months ago * [Overview](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#overview) * [How It Works](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-it-works) * [Installation](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#installation) * [Key Components](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#key-components) * [lib-ethers](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#lib-ethers) * [lib-react](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#lib-react) * [Basic Usage](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#basic-usage) * [Connecting to the Protocol](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#connecting-to-the-protocol) * [Reading Protocol State](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#reading-protocol-state) * [Creating and Managing Troves](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#creating-and-managing-troves) * [Stability Pool Operations](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#stability-pool-operations) * [Redemption Operations](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#redemption-operations) * [Liquidation Operations](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#liquidation-operations) * [Advanced Usage](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#advanced-usage) * [React Integration](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#react-integration) * [Examples](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#examples) * [Creating a Trove and Minting USDFC](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#creating-a-trove-and-minting-usdfc) * [Monitoring Liquidation Risk](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#monitoring-liquidation-risk) * [FAQ](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#faq) * [How do I handle transaction errors?](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-do-i-handle-transaction-errors) * [How do I monitor protocol events?](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#how-do-i-monitor-protocol-events) * [What networks does the SDK support?](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#what-networks-does-the-sdk-support) * [Related Resources](https://docs.secured.finance/developer-portal/sdk-reference/usdfc-sdk#related-resources) sun-brightdesktopmoon Copy import { EthersSfStablecoin } from "@secured-finance/stablecoin-lib-ethers"; Copy import { useSfStablecoinStore } from "@secured-finance/stablecoin-lib-react"; Copy import { EthersSfStablecoin } from "@secured-finance/stablecoin-lib-ethers"; import { ethers } from "ethers"; // Connect to the protocol async function connectToProtocol() { // Create an ethers provider const provider = new ethers.providers.Web3Provider(window.ethereum); // Request account access await provider.send("eth_requestAccounts", []); // Get the signer const signer = provider.getSigner(); // Connect to the USDFC protocol const usdfc = await EthersSfStablecoin.connect(signer); return usdfc; } Copy // Get a user's Trove async function getUserTrove(usdfc, userAddress) { const trove = await usdfc.getTrove(userAddress); console.log("Collateral:", trove.collateral.toString()); console.log("Debt:", trove.debt.toString()); console.log("Collateral Ratio:", trove.collateralRatio.toString()); console.log("Status:", trove.status); return trove; } // Get protocol price async function getPrice(usdfc) { const price = await usdfc.getPrice(); console.log("FIL/USD Price:", price.toString()); return price; } // Get total protocol stats async function getProtocolStats(usdfc) { const total = await usdfc.getTotal(); console.log("Total Collateral:", total.collateral.toString()); console.log("Total Debt:", total.debt.toString()); return total; } Copy import { Decimal } from "@secured-finance/stablecoin-lib-base"; // Open a new Trove async function openTrove(usdfc, collateralAmount, borrowAmount) { const tx = await usdfc.openTrove({ collateral: Decimal.from(collateralAmount), borrowDebtToken: Decimal.from(borrowAmount) }); console.log("Trove opened:", tx); return tx; } // Adjust an existing Trove async function adjustTrove(usdfc, collateralChange, debtChange) { const tx = await usdfc.adjustTrove({ collateralChange: Decimal.from(collateralChange), debtChange: Decimal.from(debtChange) }); console.log("Trove adjusted:", tx); return tx; } // Close a Trove async function closeTrove(usdfc) { const tx = await usdfc.closeTrove(); console.log("Trove closed:", tx); return tx; } Copy // Deposit to Stability Pool async function depositToStabilityPool(usdfc, amount) { const tx = await usdfc.depositDebtTokenInStabilityPool(Decimal.from(amount)); console.log("Deposited to Stability Pool:", tx); return tx; } // Withdraw from Stability Pool async function withdrawFromStabilityPool(usdfc, amount) { const tx = await usdfc.withdrawDebtTokenFromStabilityPool(Decimal.from(amount)); console.log("Withdrawn from Stability Pool:", tx); return tx; } // Claim rewards from Stability Pool async function claimStabilityPoolRewards(usdfc) { const tx = await usdfc.withdrawGainsFromStabilityPool(); console.log("Claimed rewards:", tx); return tx; } Copy // Redeem USDFC for collateral async function redeemUSDFC(usdfc, amount) { const tx = await usdfc.redeemDebtToken(Decimal.from(amount)); console.log("Redeemed USDFC:", tx); return tx; } Copy // Liquidate Troves async function liquidateTroves(usdfc, addresses) { const tx = await usdfc.liquidate(addresses); console.log("Liquidated Troves:", tx); return tx; } // Liquidate up to a specific number of Troves async function liquidateUpTo(usdfc, maxTroves) { const tx = await usdfc.liquidateUpTo(maxTroves); console.log("Liquidated up to", maxTroves, "Troves:", tx); return tx; } Copy import React, { useEffect, useState } from "react"; import { useSfStablecoinStore, useSfStablecoinSelector } from "@secured-finance/stablecoin-lib-react"; import { EthersSfStablecoin } from "@secured-finance/stablecoin-lib-ethers"; import { ethers } from "ethers"; function USDFCApp() { const [usdfc, setUsdfc] = useState(null); const store = useSfStablecoinStore(); // Select data from the store const { trove, price } = useSfStablecoinSelector(store, state => ({ trove: state.trove, price: state.price })); // Connect to the protocol useEffect(() => { async function connect() { const provider = new ethers.providers.Web3Provider(window.ethereum); await provider.send("eth_requestAccounts", []); const signer = provider.getSigner(); const usdfcInstance = await EthersSfStablecoin.connect(signer, { useStore: "blockPolled" }); setUsdfc(usdfcInstance); } connect(); }, []); // Render the app return (

USDFC App

{trove && (

Your Trove

Collateral: {trove.collateral.toString()} FIL

Debt: {trove.debt.toString()} USDFC

Collateral Ratio: {trove.collateralRatio.toString()}%

)} {price && (

Current Price

FIL/USD: ${price.toString()}

)} {/* Add UI components for interacting with the protocol */}
); } Copy import { EthersSfStablecoin } from "@secured-finance/stablecoin-lib-ethers"; import { Decimal } from "@secured-finance/stablecoin-lib-base"; import { ethers } from "ethers"; async function mintUSDFC() { // Connect to the protocol const provider = new ethers.providers.Web3Provider(window.ethereum); await provider.send("eth_requestAccounts", []); const signer = provider.getSigner(); const usdfc = await EthersSfStablecoin.connect(signer); // Get the current price const price = await usdfc.getPrice(); console.log("Current FIL/USD price:", price.toString()); // Calculate a safe collateral ratio (e.g., 200%) const collateralAmount = Decimal.from(5); // 5 FIL const maxBorrowAmount = collateralAmount.mul(price).div(Decimal.from(2)); // 200% collateral ratio console.log("Depositing", collateralAmount.toString(), "FIL as collateral"); console.log("Borrowing", maxBorrowAmount.toString(), "USDFC"); // Open a Trove try { const tx = await usdfc.openTrove({ collateral: collateralAmount, borrowDebtToken: maxBorrowAmount }); console.log("Trove opened successfully:", tx); // Get the updated Trove const trove = await usdfc.getTrove(); console.log("Your Trove:", trove); return trove; } catch (error) { console.error("Error opening Trove:", error); throw error; } } Copy import { EthersSfStablecoin } from "@secured-finance/stablecoin-lib-ethers"; import { Decimal } from "@secured-finance/stablecoin-lib-base"; import { ethers } from "ethers"; async function monitorLiquidationRisk() { // Connect to the protocol const provider = new ethers.providers.Web3Provider(window.ethereum); await provider.send("eth_requestAccounts", []); const signer = provider.getSigner(); const usdfc = await EthersSfStablecoin.connect(signer); // Get the user's Trove const trove = await usdfc.getTrove(); if (!trove.status === "open") { console.log("No open Trove found"); return null; } // Get the current price const price = await usdfc.getPrice(); // Calculate current collateral ratio const collateralRatio = trove.collateral.mul(price).div(trove.debt).mul(100); console.log("Current collateral ratio:", collateralRatio.toString(), "%"); // Check if in danger of liquidation const minSafeRatio = Decimal.from(120); // 120% is the minimum safe ratio if (collateralRatio.lt(minSafeRatio)) { console.log("WARNING: Your Trove is at risk of liquidation!"); // Calculate additional collateral needed to reach a safe ratio const targetRatio = Decimal.from(150); // Target 150% for safety const currentCollateralValue = trove.collateral.mul(price); const targetCollateralValue = trove.debt.mul(targetRatio).div(100); const additionalCollateralValue = targetCollateralValue.sub(currentCollateralValue); const additionalCollateral = additionalCollateralValue.div(price); console.log("Add at least", additionalCollateral.toString(), "FIL to reach a safe ratio of 150%"); return { isAtRisk: true, currentRatio: collateralRatio, additionalCollateralNeeded: additionalCollateral }; } else { console.log("Your Trove is currently safe from liquidation"); return { isAtRisk: false, currentRatio: collateralRatio, additionalCollateralNeeded: Decimal.from(0) }; } } Copy try { await usdfc.openTrove({ collateral: Decimal.from(5), borrowDebtToken: Decimal.from(1000) }); } catch (error) { if (error.message.includes("CollateralRatioTooLow")) { console.error("The collateral ratio is too low. Add more collateral or borrow less."); } else { console.error("Transaction failed:", error); } } Copy const usdfc = await EthersSfStablecoin.connect(signer, { useStore: "blockPolled" }); // The store will automatically update when new blocks are mined usdfc.store.onTroveChanged = (trove) => { console.log("Trove updated:", trove); }; sun-brightdesktopmoon --- # Compound Factor | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#overview) Overview ------------------------------------------------------------------------------------------------------------------------------------- The Compound Factor is a value derived from the interest rate at the time one Orderbook reaches maturity and until the maturity of the next Orderbook. This value is determined by the Price Waterfall Mechanism during the Auto-roll process. In other words, the protocol continuously records a series of discount rates every three months. By using the Compound Factor, you can calculate the value of the Genesis Date retrospectively. Conversely, it allows you to convert the Genesis Value into Future Value or present value. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-it-works) How It Works --------------------------------------------------------------------------------------------------------------------------------------------- The Compound Factor mechanism is central to tracking and calculating values across different time periods in the protocol. It accounts for interest rates, fees, and the passage of time. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#compound-factor-calculation) Compound Factor Calculation On the protocol, considering the fees, two types of Compound Factors for borrowers and lenders are continuously stored. Below are the formulas for each: **Lending Compound Factor (LCF):** LCFn+1\=LCFn×(1AutoRollPricen−AutoRollFeeRate)LCF\_{n+1} = LCF\_{n} \\times (\\frac{1}{AutoRollPrice\_{n} } - AutoRollFeeRate)LCFn+1​\=LCFn​×(AutoRollPricen​1​−AutoRollFeeRate) **Borrowing Compound Factor (BCF):** BCFn+1\=BCFn×(1AutoRollPricen+AutoRollFeeRate)BCF\_{n+1} = BCF\_{n} \\times (\\frac{1}{AutoRollPrice\_{n} } + AutoRollFeeRate)BCFn+1​\=BCFn​×(AutoRollPricen​1​+AutoRollFeeRate) _n: Number of Rolls_ ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#genesis-value-calculation) Genesis Value Calculation If you are a lender, the GV number will be positive and will remain the same. However, if you are a borrower of the asset, the GV will be negative, and your obligation will increase after each roll. The GV for borrowers is calculated from the GV of lenders and Compound Factors. The calculation of Genesis Value (GV) for each user in our protocol is as follows: **Genesis Value (GV):** GVn+a\={GVn(GVn≥0)GVn+x(GVn<0)x\=GVn×(BCFn+aBCFn×LCFnLCFn+a−1)GV\_{n+a} = \\begin{cases} GV\_{n} & (GV\_{n} \\geq 0)\\\\ GV\_{n} + x & (GV\_{n} < 0) \\end{cases} \\\\\[3mm\] x = GV\_{n} \\times (\\frac{BCF\_{n+a}}{BCF\_{n}} \\times \\frac{LCF\_{n}}{LCF\_{n+a}} - 1)GVn+a​\={GVn​GVn​+x​(GVn​≥0)(GVn​<0)​x\=GVn​×(BCFn​BCFn+a​​×LCFn+a​LCFn​​−1) _n: Number of Rolls_ &#xNAN;_a: Additional Roll periods_ In essence, the GV serves as a reflection of your role (lender or borrower) and the changes in your obligations over time within the protocol. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#future-value-calculation) Future Value Calculation To calculate your Future Value (FV), you simply need to multiply the Genesis Value (GV) by the Compound Factor from the lending side. This formula allows you to determine the projected value of your assets or obligations in the future, based on the current Genesis Value and the Compound Factor. **Future Value (FV):** FVn\=GVn×LCFnFV\_{n} = GV\_{n} \\times LCF\_{n}FVn​\=GVn​×LCFn​ _n: Number of Rolls_ [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#key-parameters) Key Parameters ------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Value Lending Compound Factor (LCF) Factor used to calculate lender's future value Calculated per formula Borrowing Compound Factor (BCF) Factor used to calculate borrower's future obligations Calculated per formula AutoRollPrice Price at which auto-roll occurs Determined by Price Waterfall Mechanism AutoRollFeeRate Fee rate applied during auto-roll Protocol-defined percentage Genesis Value (GV) Initial value of an asset or obligation Positive for lenders, negative for borrowers Future Value (FV) Projected value of an asset or obligation Calculated as GV × LCF [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#examples) Examples ------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-1-calculating-compound-factors-after-auto-roll) Example 1: Calculating Compound Factors After Auto-Roll Let's calculate how Compound Factors change after an Auto-Roll event: 1. Initial values before Auto-Roll: * Lending Compound Factor (LCF₀) = 1.05 * Borrowing Compound Factor (BCF₀) = 1.07 * Auto-Roll Price = 98.00 * Auto-Roll Fee Rate = 0.001 (0.1%) 2. Calculate the new Lending Compound Factor: 3. Calculate the new Borrowing Compound Factor: 4. The updated Compound Factors after Auto-Roll are: * LCF₁ = 1.0704 * BCF₁ = 1.0929 ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-2-calculating-genesis-value-for-a-borrower-after-multiple-rolls) Example 2: Calculating Genesis Value for a Borrower After Multiple Rolls Let's calculate how a borrower's Genesis Value changes after multiple rolls: 1. Initial values: * Initial Genesis Value (GV₀) = -1000 (negative because it's a borrower) * Initial Lending Compound Factor (LCF₀) = 1.00 * Initial Borrowing Compound Factor (BCF₀) = 1.00 * After 2 rolls: LCF₂ = 1.06, BCF₂ = 1.08 2. Calculate the adjustment factor x: 3. Calculate the new Genesis Value: 4. The borrower's Genesis Value has increased in magnitude to -1018.9, reflecting the increased obligation due to interest accrual. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-3-calculating-future-value-using-compound-factors) Example 3: Calculating Future Value Using Compound Factors Let's calculate the Future Value for both a lender and a borrower: 1. For a lender with GV = 500 and current LCF = 1.12: The lender's Future Value is 560, representing their initial investment plus accrued interest. 2. For a borrower with GV = -800 and current LCF = 1.12: The borrower's Future Value is -896, representing their debt obligation including accrued interest. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#common-questions) Common Questions ----------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-differ-from-traditional-interest-rates) How do Compound Factors differ from traditional interest rates? Compound Factors differ from traditional interest rates in several ways: 1. **Cumulative Nature**: Compound Factors accumulate over time, representing the total growth factor since inception 2. **Protocol-Specific**: They are specifically designed for the Fixed-Rate Lending Protocol's auto-rolling mechanism 3. **Dual Factors**: The protocol maintains separate factors for lenders and borrowers to account for fees 4. **Value Calculation**: They directly translate Genesis Values to Future Values without requiring complex calculations 5. **Efficiency**: They enable efficient on-chain calculations with minimal computational overhead ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#why-are-there-separate-compound-factors-for-lenders-and-borrowers) Why are there separate Compound Factors for lenders and borrowers? Separate Compound Factors exist for several reasons: 1. **Fee Incorporation**: The difference accounts for protocol fees that create a spread between lending and borrowing rates 2. **Risk Management**: The spread helps cover potential defaults and maintain protocol solvency 3. **Protocol Revenue**: Part of the spread contributes to protocol revenue and sustainability 4. **Market Efficiency**: The dual factors create a transparent pricing mechanism for the lending market 5. **Accurate Accounting**: Separate factors ensure precise tracking of obligations for both sides of the market ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-change-during-market-stress) How do Compound Factors change during market stress? During market stress, Compound Factors may be affected in these ways: 1. **Auto-Roll Price Impact**: Market volatility can lead to higher or lower Auto-Roll prices, affecting the Compound Factor calculation 2. **Fee Adjustments**: The protocol might adjust Auto-Roll fee rates in response to market conditions 3. **Governance Intervention**: In extreme cases, governance might implement emergency measures affecting Compound Factors 4. **Liquidity Effects**: Reduced liquidity can lead to wider spreads between lending and borrowing Compound Factors 5. **Circuit Breaker Activation**: If circuit breakers are triggered, this may affect the Auto-Roll price determination ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#what-happens-to-compound-factors-if-i-enter-the-market-between-auto-rolls) What happens to Compound Factors if I enter the market between Auto-Rolls? When entering the market between Auto-Rolls: 1. **Immediate Application**: The current Compound Factors apply to your position immediately 2. **Pro-Rated Interest**: You effectively receive or pay interest based on the time remaining until the next Auto-Roll 3. **Genesis Value Calculation**: Your Genesis Value is calculated based on the current market price and Compound Factors 4. **Future Value Projection**: Your Future Value is calculated using the current Compound Factors 5. **Next Roll Impact**: Your position will be subject to the next Auto-Roll like all other positions ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-ensure-fair-interest-distribution) How do Compound Factors ensure fair interest distribution? Compound Factors ensure fair interest distribution through: 1. **Transparent Calculation**: The formula is transparent and applied consistently to all participants 2. **Market-Driven Rates**: Auto-Roll prices are determined by market forces, ensuring rates reflect supply and demand 3. **Continuous Tracking**: The protocol continuously tracks and updates Compound Factors 4. **Proportional Application**: Interest is applied proportionally to all positions based on their Genesis Values 5. **Historical Record**: The protocol maintains a historical record of all Compound Factors for accurate accounting [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#related-resources) Related Resources ------------------------------------------------------------------------------------------------------------------------------------------------------- * [Orderbook Deep Dive](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive) * [Genesis Value](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value) * [Orderbook Rotation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/orderbook-rotation) * [Auto-Rollingarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/fixed-rate-lending/market-dynamics/auto-rolling/README.md) [PreviousGenesis Valuechevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/genesis-value) [NextContracts and Securitychevron-right](https://docs.secured.finance/fixed-rate-lending/deployed-contracts) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-it-works) * [Compound Factor Calculation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#compound-factor-calculation) * [Genesis Value Calculation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#genesis-value-calculation) * [Future Value Calculation](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#future-value-calculation) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#examples) * [Example 1: Calculating Compound Factors After Auto-Roll](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-1-calculating-compound-factors-after-auto-roll) * [Example 2: Calculating Genesis Value for a Borrower After Multiple Rolls](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-2-calculating-genesis-value-for-a-borrower-after-multiple-rolls) * [Example 3: Calculating Future Value Using Compound Factors](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#example-3-calculating-future-value-using-compound-factors) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#common-questions) * [How do Compound Factors differ from traditional interest rates?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-differ-from-traditional-interest-rates) * [Why are there separate Compound Factors for lenders and borrowers?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#why-are-there-separate-compound-factors-for-lenders-and-borrowers) * [How do Compound Factors change during market stress?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-change-during-market-stress) * [What happens to Compound Factors if I enter the market between Auto-Rolls?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#what-happens-to-compound-factors-if-i-enter-the-market-between-auto-rolls) * [How do Compound Factors ensure fair interest distribution?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#how-do-compound-factors-ensure-fair-interest-distribution) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/orderbook-deep-dive/compound-factor#related-resources) sun-brightdesktopmoon Copy LCF₁ = LCF₀ × (1/AutoRollPrice₀ - AutoRollFeeRate) LCF₁ = 1.05 × (1/0.98 - 0.001) LCF₁ = 1.05 × (1.0204 - 0.001) LCF₁ = 1.05 × 1.0194 LCF₁ = 1.0704 Copy BCF₁ = BCF₀ × (1/AutoRollPrice₀ + AutoRollFeeRate) BCF₁ = 1.07 × (1/0.98 + 0.001) BCF₁ = 1.07 × (1.0204 + 0.001) BCF₁ = 1.07 × 1.0214 BCF₁ = 1.0929 Copy x = GV₀ × (BCF₂/BCF₀ × LCF₀/LCF₂ - 1) x = -1000 × (1.08/1.00 × 1.00/1.06 - 1) x = -1000 × (1.08 × 0.9434 - 1) x = -1000 × (1.0189 - 1) x = -1000 × 0.0189 x = -18.9 Copy GV₂ = GV₀ + x GV₂ = -1000 + (-18.9) GV₂ = -1018.9 Copy FV = GV × LCF FV = 500 × 1.12 FV = 560 Copy FV = GV × LCF FV = -800 × 1.12 FV = -896 sun-brightdesktopmoon --- # Base Price Adjustment | Secured Finance Docs [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#overview) Overview --------------------------------------------------------------------------------------------------------------------------------------- In the case of Zero Coupon Bonds, which begin trading at a significant discount and mature at par value (100 on our platform), borrowers are required to progressively increase their collateral over time. **To safeguard borrowers from the risk of liquidation, while also minimizing insolvency risks for our protocol, we mandate a minimum collateral requirement that varies based on the currency and the duration of the loan.** [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-it-works) How It Works ----------------------------------------------------------------------------------------------------------------------------------------------- To secure user assets and protect the protocol from market exploitation, we introduce the minimum collateral base price (**Base Price: BP**). It will be used to calculate the required collateral for borrowers such that the input bond price is lower than the BP. The BP is determined according to the following formula and pre-set reference base prices, categorized by the asset's yield range. It is an interpolated value with the corresponding duration of the bonds **t: time to maturity**, using two reference base prices, BP at Maturity and BP of 1y Duration. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#formulaic) Formulaic: BP(t)\=PM−t/(secondsPerYear)∗(PM−P1Y)BP(t) = P\_{M} - t/(secondsPerYear) \* (P\_{M} - P\_{1Y})BP(t)\=PM​−t/(secondsPerYear)∗(PM​−P1Y​) BP (t) Minimum collateral required base price P\_M Reference Base Price at Maturity (0y Duration) P\_1Y Reference Base Price of 1y Duration t Time to maturity in seconds secondsPerYear 365 \* 24 \* 60 \* 60 Category Yield range BP at Maturity BP of 1y Duration A 0%~3% 96.00 93.00 B 3%~5% 96.00 91.00 C 5%~7.5% 96.00 89.00 D 7.5%~10% 96.00 87.00 E 10%~15% 96.00 84.00 F 15%~ 96.00 81.00 [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#key-parameters) Key Parameters --------------------------------------------------------------------------------------------------------------------------------------------------- Parameter Description Default Value BP at Maturity Reference Base Price at maturity (0y Duration) 96.00 BP of 1y Duration Reference Base Price at 1 year duration Varies by category (81.00-93.00) Category Review Period How often categories are reviewed Quarterly Category Assignment How currencies are assigned to yield categories Based on APR range Interpolation Method How BP is calculated between reference points Linear interpolation Time Unit Base time unit for calculations Seconds [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#examples) Examples --------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-1-calculating-base-price-for-short-term-bonds) Example 1: Calculating Base Price for Short-Term Bonds For a Category A bond (0-3% yield range) with 0.25 years to maturity: BP(0.25y)\=96.00−0.25y/1y∗(96.00−93.00)\=95.25BP(0.25y) = 96.00 - 0.25y/1y \* (96.00-93.00) = 95.25BP(0.25y)\=96.00−0.25y/1y∗(96.00−93.00)\=95.25 This means that for this short-term bond, the minimum collateral base price is 95.25. Any borrowing against this bond would use this value to calculate the required collateral, ensuring adequate protection as the bond approaches maturity. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-2-calculating-base-price-for-medium-term-bonds) Example 2: Calculating Base Price for Medium-Term Bonds For a Category C bond (5-7.5% yield range) with exactly 1 year to maturity: BP(1y)\=96.00−1y/1y∗(96.00−89.00)\=89.00BP(1y) = 96.00 - 1y/1y \* (96.00-89.00) = 89.00BP(1y)\=96.00−1y/1y∗(96.00−89.00)\=89.00 This medium-term bond has a lower base price of 89.00, reflecting the higher yield and longer duration. Borrowers would need to maintain collateral based on this value to avoid liquidation. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-3-calculating-base-price-for-long-term-bonds) Example 3: Calculating Base Price for Long-Term Bonds For a Category F bond (15%+ yield range) with 1.5 years to maturity: BP(1.5y)\=96.00−1.5y/1y∗(96.00−81.00)\=73.50BP(1.5y) = 96.00 - 1.5y/1y \* (96.00-81.00) = 73.50BP(1.5y)\=96.00−1.5y/1y∗(96.00−81.00)\=73.50 This long-term, high-yield bond has a significantly lower base price of 73.50, reflecting the higher risk and longer time to maturity. Borrowers using this bond as collateral would need to be particularly vigilant about maintaining adequate collateralization. circle-info In the examples above, we simplified the calculations by using annualized Duration. However, it's important to note that the actual calculations for our contract are based on seconds. ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#setting-category) Setting Category Category will be set depending on the APR of the currency. #### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#current-category) Current Category Currency Category BTC A ETH B FIL F USDFC C USDC C We review the category in quarterly basis and revise if needed with community vote on the APR movement during the observing period. [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#common-questions) Common Questions ------------------------------------------------------------------------------------------------------------------------------------------------------- ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#why-is-base-price-adjustment-necessary) Why is Base Price Adjustment necessary? Base Price Adjustment is necessary for several important reasons: 1. **Protection Against Liquidation**: It protects borrowers from unexpected liquidations as bond prices naturally approach par value near maturity 2. **Risk Management**: It ensures the protocol maintains adequate collateralization as market conditions change 3. **Price Manipulation Prevention**: It prevents malicious actors from manipulating prices to trigger unfair liquidations 4. **Market Stability**: It contributes to overall market stability by setting reasonable minimum collateral requirements 5. **Yield Curve Alignment**: It aligns collateral requirements with the natural yield curve of different assets ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-are-yield-categories-determined) How are yield categories determined? Yield categories are determined through the following process: 1. **Historical Analysis**: Analysis of historical yield ranges for each supported asset 2. **Market Benchmarks**: Comparison with market benchmarks and similar assets 3. **Risk Assessment**: Evaluation of the asset's volatility and liquidity characteristics 4. **Protocol Governance**: Final approval through protocol governance mechanisms 5. **Quarterly Review**: Regular review and potential adjustment based on market conditions ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#what-happens-if-market-yields-change-significantly-between-quarterly-reviews) What happens if market yields change significantly between quarterly reviews? If market yields change significantly between quarterly reviews: 1. **Emergency Review**: Protocol governance can initiate an emergency review if necessary 2. **Gradual Adjustment**: Any changes to categories are typically implemented gradually 3. **Safety Buffer**: The category system includes built-in buffers to accommodate some yield fluctuation 4. **Monitoring Systems**: Continuous monitoring alerts governance to significant deviations 5. **User Communication**: Users are notified of any potential category changes in advance ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-does-base-price-affect-my-borrowing-position) How does Base Price affect my borrowing position? Base Price affects your borrowing position in several ways: 1. **Minimum Collateral**: It determines the minimum amount of collateral you must maintain 2. **Liquidation Threshold**: It influences when your position becomes eligible for liquidation 3. **Borrowing Capacity**: It affects how much you can borrow against your collateral 4. **Position Management**: You may need to add more collateral as maturity approaches 5. **Risk Exposure**: Lower Base Price (higher category) means higher collateral requirements ### [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#can-i-predict-how-my-collateral-requirements-will-change-over-time) Can I predict how my collateral requirements will change over time? Yes, you can predict collateral requirement changes: 1. **Formula Transparency**: The Base Price formula is publicly available and deterministic 2. **Time-Based Calculation**: Requirements change based on time to maturity, which is known 3. **Category Stability**: Categories typically remain stable during the quarterly periods 4. **Simulation Tools**: The protocol provides tools to simulate future collateral requirements 5. **Advance Notice**: Any category changes are announced in advance through governance [hashtag](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#related-resources) Related Resources --------------------------------------------------------------------------------------------------------------------------------------------------------- * [Safety Measures](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures) * [Circuit Breaker](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker) * [Emergency Global Settlement](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement) * [Minimum Collateralarrow-up-right](https://github.com/Secured-Finance/secured-finance-docs/blob/main/core-mechanics/collateralization.md) [PreviousPrice Range Limitschevron-left](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/circuit-breaker/price-range-limits) [NextEmergency Global Settlementchevron-right](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/emergency-global-settlement) Last updated 10 months ago * [Overview](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#overview) * [How It Works](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-it-works) * [Key Parameters](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#key-parameters) * [Examples](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#examples) * [Example 1: Calculating Base Price for Short-Term Bonds](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-1-calculating-base-price-for-short-term-bonds) * [Example 2: Calculating Base Price for Medium-Term Bonds](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-2-calculating-base-price-for-medium-term-bonds) * [Example 3: Calculating Base Price for Long-Term Bonds](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#example-3-calculating-base-price-for-long-term-bonds) * [Setting Category](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#setting-category) * [Common Questions](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#common-questions) * [Why is Base Price Adjustment necessary?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#why-is-base-price-adjustment-necessary) * [How are yield categories determined?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-are-yield-categories-determined) * [What happens if market yields change significantly between quarterly reviews?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#what-happens-if-market-yields-change-significantly-between-quarterly-reviews) * [How does Base Price affect my borrowing position?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#how-does-base-price-affect-my-borrowing-position) * [Can I predict how my collateral requirements will change over time?](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#can-i-predict-how-my-collateral-requirements-will-change-over-time) * [Related Resources](https://docs.secured.finance/fixed-rate-lending/advanced-topics/safety-measures/base-price-adjustment#related-resources) sun-brightdesktopmoon sun-brightdesktopmoon ---