handle.fi
💱convert💹application💭discord
한국어
한국어
  • 👋서론
  • 🛠️handle.fi 사용 사례 및 이점
  • FOREX
    • 💱FOREX 토크노믹스
    • 🗳️거버넌스 스테이킹 (veFOREX)
      • fxUSD/FOREX BPT 획득 및 veFOREX를 위해 잠금
    • 👜FOREX를 어떻게 구입하나요?
  • Platform Functions
    • 💱handle 유동성 풀 (hLP)
    • ⭐시작하기
    • 💹거래
      • 자산
      • 📔무역 방법
    • 💵convert
      • 📘how to convert
    • 🏧borrow
      • 🏛️CDP vaults and collateral
      • ⚠️CDP liquidations
      • 🛡️fxKeeper
      • 💲repay
      • 📗how to borrow
    • 💰earn
      • 📚how to earn
    • 🌉bridge
    • 🌊liquidity pools
      • 🌙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
    • 🤝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
    • 🖼️NFT series: t0-Troopers
    • 🪙founding trooper - FOREX coin
    • 🎡the FOREX flywheel
    • 🎁trader rewards
  • 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

Previoustrader rewardsNextoracles

Was this helpful?

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):

  • FOREX:

fxTokens

  • fxAUD:

  • fxCHF:

  • fxCNY:

  • fxEUR:

  • fxKRW:

  • fxPHP:

  • fxUSD:

  • arbitrum bridge:

  • protocolFees:

  • FOREX:

  • fxAUD:

  • fxCHF:

  • fxCNY:

  • fxEUR:

  • fxKRW:

  • fxPHP:

  • fxUSD:

  • mainnet bridge:

  • vesting contracts:

  • FOREX: 0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B

fxAUD:

fxCNY:

fxCHF:

fxEUR:

fxKRW:

fxPHP:

polygon bridge:

📜
0x1785e8491e7e9d771b2A6E9E389c25265F06326A
0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B
0x7E141940932E3D13bfa54B224cb4a16510519308
0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e
0x2c29daace6aa05e3b65743efd61f8a2c448302a3
0x116172b2482c5dc3e6f445c16ac13367ac3fcd35
0xf4e8ba79d058fff263fd043ef50e1010c1bdf991
0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0
0x8616E8EA83f048ab9A5eC513c9412Dd2993bcE3F
0x000877168981ddc3ca1894c2a8979a2f0c6bbf3a
0xFa2c1bE677BE4BEc8851D1577B343F7060B51E3A
0xDb298285FE4C5410B05390cA80e8Fbe9DE1F259B
0x7e141940932e3d13bfa54b224cb4a16510519308
0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e
0x2c29daace6aa05e3b65743efd61f8a2c448302a3
0x116172b2482c5dc3e6f445c16ac13367ac3fcd35
0xf4e8ba79d058fff263fd043ef50e1010c1bdf991
0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0
0x8616E8EA83f048ab9A5eC513c9412Dd2993bcE3F
seed: 0x0857769aC15c2501BbF46Fb6ED0f783D17a3BcDb
strategic: 0xE03a92CD4eb15A5B68bae3134938e5b5a2debF5D
team: 0x8C211EE553668222307BC1B7c698eDF0B29173e9
0x7e141940932e3d13bfa54b224cb4a16510519308
0x2c29daace6aa05e3b65743efd61f8a2c448302a3
0x8c414cb8a9af9f7b03673e93df73c23c1aa05b4e
0x116172b2482c5dc3e6f445c16ac13367ac3fcd35
0xf4e8ba79d058fff263fd043ef50e1010c1bdf991
0x3d147cd9ac957b2a5f968de9d1c6b9d0872286a0
0x62E13B35770D40aB0fEC1AB7814d21505620057b