📘
Horizon Academy
Vietnamese
Vietnamese
  • Horizon Academy
  • Giao thức Horizon
    • Giới thiệu
      • Mô hình token của Giao thức Horizon – HZN token
      • Mô hình kinh doanh
      • Security Audit
    • Tài sản tổng hợp – zAssets
    • Mô hình quản trị của dự án
      • Các đề xuất cải tiến hệ thống (HIPs)
        • HIP-6: Lower Target C-Ratio to 600% from 700%
        • HIP-5: List New zAssets
        • HIP-4: Use Keepers to Close Weekly Fee Periods
        • HIP-3: Suspend zTSLA ahead of Stock Split
        • HIP-2: Lower Target C-Ratio to 700%
        • HIP-1: Create incentivized zBNB/BNB pool
    • Kế hoạch phát triển và các cột mốc đã đạt được
      • Current Feature Requests
  • Horizon Genesis
    • GIỚI THIỆU VỀ HORIZON GENESIS
    • STAKING TRÊN HORIZON GENESIS
      • Tạo ra, trả lại và nhận thưởng
      • Tài sản thế chấp và tỷ lệ thế chấp C-Ratio
      • LiquidationThanh lý
      • Những rủi ro của việc Staking
      • Chiến lược C-Ratio
      • Kiếm lợi nhuận: Nhóm thanh khoản
    • GIAO DIỆN
    • HƯỚNG DẪN
      • Làm thế nào để Stake trên Genesis
      • Thêm thanh khoản cho zUSD-BUSD trên PancakeSwap
      • Thêm thanh khoản cho HZN-BNB trên PancakeSwap
      • Thêm thanh khoản cho zBNB-BNB trên Ellipsis Finance
      • Thiết lập tự động hóa Chainlink sử dụng Chainlink Automation để tự độ
    • CÁC CÂU HỎI THƯỜNG GẶP
  • Horizon Exchange
    • Giới thiệu
    • Giao dịch với sàn giao dịch Horizon
      • Oracles
      • Phí Giao Dịch
      • Địa chỉ hợp đồng của các zAsset
    • Giao Diện
    • Exchange FAQ
  • Educational Articles
    • Chú Thích Từ Vựng
    • Tài sản phái sinh phi tập trung là gì và chúng được s
    • Sơ lược về lịch sử tài sản tổng hợp và
    • Các Dự Án Về Phái Sinh Phi Tập Trung Tiêu Biểu
Powered by GitBook
On this page
  • Summary
  • Specification
  • Motivation
  • Potential Risks
  • Considerations
  • Feedback & Questions
  1. Giao thức Horizon
  2. Mô hình quản trị của dự án
  3. Các đề xuất cải tiến hệ thống (HIPs)

HIP-4: Use Keepers to Close Weekly Fee Periods

Use Chainlink Keepers for a decentralized automated closing of the weekly fee periods

PreviousHIP-5: List New zAssetsNextHIP-3: Suspend zTSLA ahead of Stock Split

Last updated 2 years ago

Type: Horizon Improvement Proposal Date: August 30th, 2022 Status: Draft 1 | Completed

Summary

Deploy a Keepers Upkeep contract and register a Keeper to automate the weekly fee period close.

Specification

  • Deploy a Keeper-compatible contract that automates the weekly period close to the BNB Chain mainnet

  • Register and fund the Keeper

Motivation

The closeCurrentFeePeriod() function in the FeePool contract is responsible for closing the current week’s collected fees and rewards and starting a new period each week (Claim Day). This function will also migrate any unclaimed rewards from the previous claimable period to the current claimable period, snapshot the fees/rewards for users for the new claimable period, and start a new period.

While the Horizon Protocol team actively maintains the closure of the fee period each week, this can also be done by anyone in the community, as the closeCurrentFeePeriod() is a public function that anyone can execute.

The integration of Chainlink Keepers to automate this important protocol maintenance operation will help mitigate potential scenarios where the function isn’t called on time and help further decentralize the protocol.

Potential Risks

The implementation of this HIP might come with some risks, including the following:

  • A minimum balance of LINK tokens must be maintained in the Keeper or it will not perform the upkeep

Considerations

Additional thoughts we should take into consideration:

  • Should there be any failure in the Keeper network, the community should be aware that they can also call the closeCurrentFeePeriod() themselves to help maintain the protocol.

Feedback & Questions

If you have any questions or concerns, please do not hesitate to reach out.

The Keepers upkeep will require ERC677 LINK tokens, which will be funded by the Community Fund. The Keeper Upkeep charges a (which is low relative to other networks) to the gas fee required to call the function in order to fund the upkeep operation on their network. The closeCurrentFeePeriod() function uses ~220,000 gas (~$0.30) on the BNB Chain mainnet, so the estimated cost of each transaction will be ~$0.40 paid in LINK tokens. Additionally, a must be maintained in the upkeep or it will cease to function.

30% premium
Minimum Balance