BitFi Docs
Home
  • Welcome to BitFi
    • CeDeFi Innovation
    • Addressing Market Challenges
  • FAQ
  • Background
    • Bitcoin-Fi: Current Challenges
    • The BitFi Solution: A CeDeFi Hybrid Approach
  • BitFi‘s CEDEFI
    • Integration with CeFi and DeFi
    • Implementation of CeFi
      • Ceffu MirrorX
      • BitFi Strategies
      • Risk Management
    • Implementation of DeFi
      • bfBTC
      • bfUSD
  • How To
    • Introduction
    • Stake BTC on an EVM-Compatible Chain
    • Stake BTC on Bitcoin Network
    • Unstake bfBTC to EVM-Compatibale Chain
    • Unstake bfBTC to Bitcoin Network
  • Developer
    • bfBTC Overview
    • Using Contract
      • Stake bfBTC
      • Unstake bfBTC
      • bfBTC Fees
      • bfBTC Price Oracle
    • Epoch and Ratio
      • Epoch Updates
      • Underlying Asset Price Variation
    • Deployed Contracts
    • Audit Report
  • Resource
    • Communities
    • Brand Kit
    • BitFi Home Page
Powered by GitBook
On this page
  1. Developer
  2. Epoch and Ratio

Epoch Updates

Epoch updates are triggered when:

  • The value of open positions changes beyond a predefined threshold.

  • A specified time interval elapses.

Upon meeting these conditions, the manager triggers an epoch update. The management wallet updates the contract to the next epoch and updates the exchange ratio (Ratio).

After the update, all deposit and withdrawal transactions use the latest epoch's value to calculate bfBTC amounts.

Due to performance differences between Binance Smart Chain and Ethereum, Ethereum epoch updates might lag behind BSC updates. The delay typically does not exceed one minute.

Note

Calling the contract's currentEpoch function returns the latest epoch, but this epoch does not yet have a Ratio. updateEpoch updates the Ratio for that epoch.

PreviousEpoch and RatioNextUnderlying Asset Price Variation

Last updated 6 months ago