BounceBit Documentation
HomepagePortalBounceClub
  • 🔳Welcome to BounceBit
    • BounceBit's Philosophy
    • Challenges Addressed By BounceBit
    • BounceClub: Build on BounceBit
  • CeDeFi
    • 🏦BounceBit CeFi + DeFi
      • Infrastructure
      • Yield Structure
    • 📊CeDeFi Yield
      • Funding Rate Arbitrage
      • Fixed
      • Auto
      • Manual
      • Integration of Node Staking Rewards
      • Rebasing Mechanism
      • Asset Manager Directory
    • 🌎RWA (Real World Assets)
      • RWA in Yield Generation
      • RWA on BounceBit Chain
    • Subscription & Redemption Rules
      • Auto & Manual
      • Fixed
    • Security Risk Management
    • dApp
      • ⚡Superfast
      • Ethena <> BounceBit
      • Convert
  • Infrastructure
    • ⛓️BounceBit PoS Chain
      • Dual-Token Staking Consensus
      • EVM Compatibility and Developer Support
    • 🔐Shared Security Clients
    • 🌉BTC Bridge
    • 🔮Oracle
      • Price Feed On-chain
      • Price Feed Off-chain
      • Data Feed Addresses
    • 💽Ecosystem Integrations
  • ♣️BounceClub
    • Intro
    • 🫂BounceClub Membership
    • MEME
    • Quanto
    • AI Agents
  • Token
    • 🏦BounceBit Tokenomics
      • Key Terms
      • 🪙BB Coin
      • Liquid Staking Token (stBBTC & stBB)
      • Bitcoin on BounceBit (BBTC)
      • Stablecoins on BounceBit (BBUSD)
    • 🧱Staking Delegation
    • 💧Liquid Staking
    • 📤Liquid Custody
    • 🍞Bread and Butter (BB Cross-chain Liquidity)
  • User Guides
    • General
      • How to Get BTCB from Binance
        • How to Transfer BTCB to your Binance Web3 Wallet
      • How to Use the Testnet Faucet
      • How to Add BounceBit Network to Your Wallet
    • 🌉Bridging
      • Portal Bridge
      • MultiBit Bridge
    • BounceClub V2
      • How to Launch a Memecoin
      • Arcade
      • DeFi
        • Quanto
        • Stablecoin
      • AI Agents
    • 📊CeDeFi
      • How to Withdraw/Redeem Your LCT
      • How to Subscribe to CeDeFi (V2)
      • How to Unsubscribe from CeDeFi (V2)
      • How to Wrap / How to get BBTC, BBUSD
      • Ethena <> BounceBit
      • Superfast Trading Guide
    • 💠Node Staking and Delegation
      • How to Stake/Unstake on Portal
      • How to Stake/Unstake BB and BBTC (Delegation)
  • Assets
    • 🪪Brand Guidelines
      • 🎨Logo Kit
    • ✅BounceBit's TVL
    • ✅Smart Contract Audit Report
    • First BounceBit's BTC TVL Audit Report
  • Developer Resources
    • BounceBit Mainnet Node Setup
      • Cosmovisor
    • Chain Info
    • RPC Support
    • How to Verify Smart Contracts
    • How to Withdraw Validator Commission
  • OTHER
    • 🌐BounceBit Official Social Media Channels
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  • Overview
  • Key Features
  • Technical Implementation
  • Advantages Over V1
  • Security Considerations
  • Further Resources
  1. CeDeFi
  2. CeDeFi Yield

Rebasing Mechanism

Overview

CeDeFi V2 introduces an advanced rebasing mechanism that automatically reflects yield earnings in token balances, marking a significant improvement over V1. This implementation leverages the ERC-4626 tokenized vault standard to provide a more streamlined and efficient yield distribution system.

Key Features

  • Automatic Yield Reflection: Token balances automatically update to reflect earned yield

  • ERC-4626 Compliance: Implements the standardized tokenized vault interface

  • Flexible Position Management: Supports partial position modifications and seamless subscription/unsubscription

Technical Implementation

ERC-4626 Integration

The protocol implements the ERC-4626 standard, which provides a standardized interface for tokenized vaults. This offers several advantages:

interface IERC4626 is IERC20, IERC20Metadata {
    function asset() external view returns (address assetTokenAddress);
    function totalAssets() external view returns (uint256 totalManagedAssets);
    function convertToShares(uint256 assets) external view returns (uint256 shares);
    function convertToAssets(uint256 shares) external view returns (uint256 assets);
    // ... additional interface methods
}

Rebasing Mechanism

How It Works

  1. When yield is generated, it is automatically distributed proportionally to all token holders

  2. Token balances increase to reflect the earned yield

  3. The underlying asset-to-share ratio is continuously updated

Advantages Over V1

Feature
V1
V2

Yield Distribution

Manual claim required

Automatic reflection

Position Management

All-or-nothing withdrawals

Partial withdrawals supported

Standard Compliance

Custom implementation

ERC-4626 compliant

Integration Complexity

High

Low

Security Considerations

  • All rebasing calculations are performed atomically to prevent exploitation

  • Share-to-asset conversions include safety checks against slippage

  • Integrators should implement proper decimal handling for share calculations

Further Resources

  • Technical Audits: Smart Contract Audit Report

PreviousIntegration of Node Staking RewardsNextAsset Manager Directory

Last updated 6 months ago

📊
ERC-4626 Standard Specification