Fathom Protocol
  • Introduction
  • FXD Stablecoin
    • FXD Smart Contract Architecture
    • Minting and Burning Mechanisms with LTV Ratio
    • Soft-Pegging to the US Dollar
    • Opening and closing position flows
    • BookKeeping mechanism
      • Stablecoin Accounting
      • Collateral Accounting
    • Liquidation
      • Fixed Spread Liquidation Strategy
      • Liquidation process walk through
    • Emergency Shutdown
    • Maths for position safety
    • Fee structure
    • Risk Management
    • Interfaces
      • ProxyWalletRegistry
      • ProxyWallet
        • FathomStablecoinProxyActions
      • CollateralPoolConfig
      • BookKeeper
      • FXD
      • LiquidationEngine
      • FlashMintModule
      • PriceFeed
      • ShowStopper
      • StabilityFeeCollector
      • SystemDebtEngine
      • AdminControls
    • Deployments
      • XDC Network
    • User Guides
      • Open FXD position
      • Top Up FXD Position
      • Repay and close FXD position
    • Fathom Stablecoin Smart Contracts
    • Fathom Stablecoin Subgraph
  • Vaults
    • Key Features
    • Definitions
    • Architecture
    • Fees
    • Workflows
    • Vault Management
    • Strategy Creation
    • Interfaces
      • Factory
      • Vault
      • BaseStrategy
      • TokenizedStrategy
    • Deployments
      • XDC Network
    • User Guides
      • Deposit and Withdraw in Vault
    • Fathom Vaults Smart Contracts
    • Fathom Vaults Subgraph
  • Lending
    • Core Concepts
    • Protocol Mechanics
    • Architecture
    • Interfaces
      • FmToken
      • VariableDebtToken
      • StableDebtToken
      • L2Pool
      • PoolAddressesProvider
    • User Guides
      • Supply, Borrow, Repay and Withdraw Asset
    • Deployments
      • XDC Network
    • Fathom Lending Smart Contracts
    • Fathom Lending Subgraph
  • DEX
    • Core Concepts
    • Architecture
    • Interfaces
      • Factory
      • Pair
      • Router
    • User Guides
      • Providing Liquidity
      • Swapping Assets
    • Deployments
      • XDC Network
    • Fathom DEX Smart Contracts
    • Fathom DEX Subgraph
  • DAO
    • DAO Structure
    • Governance Process
    • Staking Process
    • Treasury Management
    • Risk Management and Security Measures
    • Contributing to Fathom DAO
    • Interfaces
      • FTHM
      • Staking
        • Vault
        • RewardsCalculator
        • vFTHM
      • Governance
        • TimelockController
    • Deployments
      • XDC Network
    • User Guides
      • Staking
      • Proposing
      • Voting
    • Fathom DAO Smart Contracts
    • Fathom DAO Subgraph
  • Whitepaper
    • Version 1.0
  • Resources
  • FXD Deployments
  • FTHM Deployments
  • Privacy Policy
  • Terms of Service
Powered by GitBook

Copyright© Fathom App 2024.

On this page

Was this helpful?

Export as PDF
  1. FXD Stablecoin

Maths for position safety

This section explains how the Fathom's FXD stablecoin position's safety is calculated.

For a position to be considered safe, below should hold true.

lockedCollateralAmount∗PriceWithSafetyMargin>DebtShare∗debtAccumulateRate,lockedCollateralAmount * PriceWithSafetyMargin > DebtShare * debtAccumulateRate,lockedCollateralAmount∗PriceWithSafetyMargin>DebtShare∗debtAccumulateRate,

where

PriceWithSafetyMargin=RawPrice∗LTVPrice WithSafetyMargin = RawPrice * LTVPriceWithSafetyMargin=RawPrice∗LTV

When RawPrice is the price of collateral from PriceFeed and LTV is Loan To Ratio.

In other words

lockedCollateralVaule>debtVaultlockedCollateralVaule > debtVaultlockedCollateralVaule>debtVault
debtVault=debtShare∗debtAccumulateRatedebtVault = debtShare * debtAccumulateRatedebtVault=debtShare∗debtAccumulateRate

And debtAccumulatedRate is calculated as

debtAccumulatedRate=(1+interestRate)1/31,536,000debtAccumulatedRate = (1 + interestRate)^{1 / 31,536,000}debtAccumulatedRate=(1+interestRate)1/31,536,000

since debtAccumulatedRate is a second pounding interestRate.

Position safety calculation model

Please refer to below position safety calculation model.

PreviousEmergency ShutdownNextFee structure

Last updated 11 months ago

Was this helpful?

https://docs.google.com/spreadsheets/d/1--XSZWeKq2HudwH6Btlg8hSpUuEOFStGYXXUDoOW7Es/edit?usp=sharing