Exactly Protocol
  • Getting started
    • ๐Ÿ””Welcome
    • โžก๏ธIntroduction
    • โ”FAQ
    • ๐Ÿ”—Quick Links
  • Governance
    • ๐Ÿ›๏ธExactly Protocol Governance
      • โœ๏ธProposals and Voting
      • โšกSnapshot
      • ๐Ÿ“„Exactly Improvement Proposal (EXAIP) Template
    • โšซExactly Protocol (EXA)
      • ๐Ÿ“ŠEXA Tokenomics
      • โšชEscrowedEXA (esEXA)
      • EXA Staking Program (stEXA)
  • EXA APP
    • The Exa App
    • How the Exa App works
    • The Exa App Webauthn Owner Plugin
    • Exa Plugin
    • Exa App FAQs
  • Guides
    • โš™๏ธProtocol
      • Auditor
      • MarketETHRouter
      • Market
        • ERC-4626
      • PriceFeedWrapper
      • PriceFeedDouble
      • InterestRateModel
      • RewardsController
    • ๐Ÿ›ฐ๏ธPeripheral Contracts
      • ๐ŸŒ€DebtManager
      • โšซEXA
      • โšชesEXA
      • ๐Ÿช‚Airdrop
      • ๐Ÿ‘€Previewer (read-only)
      • ๐Ÿ‘“DebtPreviewer (read-only)
      • RatePreviewer (read-only)
    • โœจFeatures
      • Bad Debt Clearing
      • Dynamic Close Factor
      • Earnings Accumulator
      • Cross-Asset Leverager & Deleverager
      • Liquidity Reserve
      • Rewards Distribution Model
      • Rate Manipulation Prevention
      • Rollover
    • ๐Ÿ’ฒFixed Rate Operations
      • ๐Ÿ“ฅDeposits
      • ๐Ÿ“คBorrows
    • ๐Ÿ”ขParameters
    • ๐Ÿ“ˆInterest Rates Curves
    • โ™ป๏ธLiquidations
      • ๐Ÿค–Exactly's Bot
    • โ›“๏ธSmart Contract Addresses
    • ๐ŸŒThe Graph
    • ๐Ÿ”ฎChainlink Price Feeds
  • Security
    • ๐Ÿ”ŽAudits
    • ๐Ÿ”‘Access Control
    • ๐Ÿ›ก๏ธHypernative
    • ๐ŸงชTesting
    • ๐ŸงฏEmergency Procedure
    • ๐Ÿ›Bug Bounty Program
  • Resources
    • ๐Ÿ“ƒWhite Paper
    • ๐Ÿ”ฃMath Paper v1
    • ๐Ÿ”ฃMath Paper v2
    • ๐ŸคPartnerships
    • ๐Ÿ“บPresentations
    • ๐Ÿ“ฃBrand Assets
  • Legal
    • โš–๏ธTerms and Conditions of Use
    • ๐Ÿ”Privacy Policy
    • ๐ŸชCookies Policy
Powered by GitBook
On this page

Was this helpful?

  1. Guides
  2. Peripheral Contracts

DebtPreviewer (read-only)

PreviousPreviewer (read-only)NextRatePreviewer (read-only)

Last updated 1 year ago

Was this helpful?

This is a smart contract designed to abstract the DebtManager logic, it provides read-only functions ready to be consumed by Exactlyโ€™s web app.

This contract has mainly 2 purposes:

  • Retrieve information about any account collateral and debt for any pair of markets in exactly.

  • Allow accounts to preview their positions, simulating a leverage or deleverage to a certain ratio with a desired health factor.

Please be advised that the DebtPreviewer contract has not undergone a formal security audit. As such, we strongly discourage integrations involving this contract, since it is exclusively intended for read-only purposes by the . Using unaudited contracts for any other purpose may expose users to potential security risks or other unexpected behavior.

GitHub URL:

๐Ÿ›ฐ๏ธ
๐Ÿ‘“
Exactly Web App
https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtPreviewer.sol