handle.fi
πŸ’±convertπŸ’ΉapplicationπŸ’­discord
English
English
  • πŸ‘‹introduction
  • πŸ› οΈhandle.fi use cases & benefits
  • FOREX
    • πŸ’±FOREX tokenomics
    • πŸ—³οΈgovernance staking (veFOREX)
      • obtain fxUSD/FOREX BPT & lock for veFOREX
    • πŸ‘œhow to buy FOREX
  • Platform Functions
    • ⭐getting started
    • πŸ’Ήtrade
      • assets
      • πŸ“”how to trade
    • πŸ’΅convert
      • πŸ“˜how to convert
    • 🏧borrow
      • πŸ›οΈCDP vaults and collateral
      • ⚠️CDP liquidations
      • πŸ›‘οΈfxKeeper
      • πŸ’²repay
      • πŸ“—how to borrow
    • πŸ’°earn
      • πŸ“šhow to earn
    • πŸŒ‰bridge
    • 🌊liquidity pools
      • πŸ’±handle Liquidity Pool (hLP)
      • πŸŒ™curve handle3pool
      • πŸŒ™curve handleFRAXBP
      • 🌊FOREX pools
        • Balancer (80/20) FOREX/fxUSD (arb)
        • UniV3 FOREX/WETH (main)
      • 🌊fxToken - FX liquidity pools
    • πŸ’°fees & collateral parameters
      • protocol fee distributions
    • πŸ“–definitions
  • protocol rewards
    • πŸ”­overview
    • ▢️active
      • πŸ₯³trader incentive pool rewards (TIPR)
      • πŸ–ΌοΈNFT series: t0-Troopers
    • ⏸️paused
      • 🎁trader rewards
      • 🀝referral program
      • πŸ‘¨β€πŸ’»quests
        • πŸ₯§Protocol Incentive Experiments (PIEs)
          • PIE #1 - retweets
          • PIE #2 - memes
          • PIE #3 - bonus rewards
          • PIE #4 - content production
          • PIE #5 - referrer program
          • PIE #6 - troop participation program
          • PIE #7_b - convert & win
  • protocol SPECS
    • πŸ“œcontracts
    • πŸ”protocol audit - Peckshield
    • πŸ‘οΈoracles
    • πŸ“Šsubgraph
  • How to guides
    • πŸ”©adjusting settings
    • πŸ‘¨β€πŸŽ“how to open an account
    • πŸŒ‰bridge
    • 🏠dashboard
  • Socials
  • website
  • twitter
  • discord
  • github
  • substack
  • youtube
  • MARKETING
    • branding, assets, images & memes
  • $FOREX data
    • CoinGecko
    • CoinMarketCap
    • Arbiscan
    • Etherscan
Powered by GitBook
On this page

Was this helpful?

  1. protocol SPECS

contracts

an overview of the main handle contracts & addresses

the handle protocol consists of four main contracts which contain the core functions required for performing vault logic around loans, minting and collateral. These contracts are the Handle contract, the Treasury contract, the Comptroller contract and the VaultLibrary contract. Their functions are as follows:

  • Handle.sol: stores the main protocol data and configurations. Holds a reference to all protocol contracts.

  • Treasury.sol: provides deposit and withdrawal functions for vaults. Holds all protocol funds.

  • Comptroller.sol: provides mint and burn functions for vaults.

  • VaultLibrary.sol: provides read-only functions to calculate vault data such as the collateral ratio, the equivalent ETH value of collateral/debt at the current exchange rates, weighted fees, etc.

  • Handle.sol: stores the main protocol data and configurations. Holds a reference to all protocol contracts.

  • Treasury.sol: provides deposit and withdrawal functions for vaults. Holds all protocol funds.

  • Comptroller.sol: provides mint and burn functions for vaults.

  • VaultLibrary.sol: provides read-only functions to calculate vault data such as the collateral ratio, the equivalent ETH value of collateral/debt at the current exchange rates, weighted fees, etc.

the rest of the contracts may be divided into two subgroups: collateral health (liquidations and redemptions) and investment strategies (the protocol-controlled treasury, PCT), and also the Interest contract:

  • Interest.sol: keeps track of time passed and interest rates, storing relevant variables. allows to track and update the interest rates according to configured external protocol rates such as MakerDAO's.

  • Collateral health: includes the Liquidator contract (implementing redemptions and liquidations), an off-chain liquidation bot written in node.js which relies in a The Graph's subgraph indexing module to index relevant vault and collateral data for liquidation purposes.

  • Investment strategies: the PCT contract can interact with external finance protocols to earn interest over Treasury collateral, which may be borrowed by the PCT and transferred into these external protocols.

  • handle "perps" Liquidity Pool (hLP): 0x1785e8491e7e9d771b2A6E9E389c25265F06326A

  • FOREX: 0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B

fxTokens

  • fxAUD: 0x7E141940932E3D13bfa54B224cb4a16510519308

  • fxCHF: 0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e

  • fxCNY: 0x2c29daace6aa05e3b65743efd61f8a2c448302a3

  • fxEUR: 0x116172b2482c5dc3e6f445c16ac13367ac3fcd35

  • fxKRW: 0xf4e8ba79d058fff263fd043ef50e1010c1bdf991

  • fxPHP: 0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0

  • fxUSD: 0x8616E8EA83f048ab9A5eC513c9412Dd2993bcE3F

  • arbitrum bridge: 0x000877168981ddc3ca1894c2a8979a2f0c6bbf3a

  • protocolFees: 0xFa2c1bE677BE4BEc8851D1577B343F7060B51E3A

  • FOREX: 0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B

  • fxAUD: 0x7e141940932e3d13bfa54b224cb4a16510519308

  • fxCHF: 0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e

  • fxCNY: 0x2c29daace6aa05e3b65743efd61f8a2c448302a3

  • fxEUR: 0x116172b2482c5dc3e6f445c16ac13367ac3fcd35

  • fxKRW: 0xf4e8ba79d058fff263fd043ef50e1010c1bdf991

  • fxPHP: 0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0

  • fxUSD: 0x8616E8EA83f048ab9A5eC513c9412Dd2993bcE3F

  • mainnet bridge:

  • vesting contracts: seed: 0x0857769aC15c2501BbF46Fb6ED0f783D17a3BcDb strategic: 0xE03a92CD4eb15A5B68bae3134938e5b5a2debF5D team: 0x8C211EE553668222307BC1B7c698eDF0B29173e9

  • FOREX: 0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B

  • fxAUD: 0x7e141940932e3d13bfa54b224cb4a16510519308

  • fxCNY: 0x2c29daace6aa05e3b65743efd61f8a2c448302a3

  • fxCHF: 0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e

  • fxEUR: 0x116172b2482c5dc3e6f445c16ac13367ac3fcd35

  • fxKRW: 0xf4e8ba79d058fff263fd043ef50e1010c1bdf991

  • fxPHP: 0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0

  • polygon bridge: 0x62E13B35770D40aB0fEC1AB7814d21505620057b

PreviousPIE #7_b - convert & winNextoracles

Last updated 2 years ago

Was this helpful?

πŸ“œ