bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 5쪽
Cross-chain bridges
Each client utilizes BTC restaking to establish trust, effectively borrowing security from the Bitcoin network through BounceBit's infrastructure.
### BTC Utilization Paths
The BounceBit ecosystem offers three primary paths for BTC holders:
#### Validator Delegation
Users can delegate BTC to network validators, receiving stBTC (Liquid Staking Derivative) in return. This stBTC can then be:
* Restaked to SSCs for additional yield
* Used in DeFi applications
* Converted to Liquid Restaking Tokens
#### Direct SSC Staking
BTC holders can stake directly to specific SSCs, such as bridge or oracle networks, choosing particular infrastructure elements to support.
#### DeFi Integration
Users can deploy their BTC across traditional DeFi applications:
* Automated Market Makers
* Leverage trading platforms
* Yield farming protocols
Through this multi-path approach, SSCs create an interconnected ecosystem where Bitcoin's security extends beyond its base layer, enabling a new generation of secure blockchain applications.
# BTC Bridge
The BTC Bridge in the BounceBit ecosystem serves as the secure conduit for the transfer of BTC Tokens between the Bitcoin Network and EVM Chains, including BounceBit. This bridge is integral to the functionality and security of the BounceBit network, playing a crucial role in the seamless integration and movement of assets. 
## Key Functionality of the BTC Bridge:
### **Token Bridging and Uniform Mapping**
The primary function of the BTC Bridge is to facilitate the transfer of BTC Tokens from the native Bitcoin Chain and various EVM-compatible Chains into the BounceBit ecosystem. Once transferred, these tokens are uniformly mapped and represented as BBTC within BounceBit, ensuring consistency and ease of use across the platform.
### Enhanced Security Measures
* ***Beyond Multi-Signature Contracts***: Unlike conventional bridge mechanisms that rely on multi-signature contracts often controlled by a limited group of team addresses, BounceBit’s BTC Bridge introduces a more robust security framework. This design significantly mitigates the risks associated with the concentration of control in multi-signature models.
* ***Validator-Centric Security***: Network validators bear the responsibility of safeguarding the bridge’s security. Each Validator operates a dedicated Bridge Node, contributing to the signing of cross-chain messages and ensuring that the bridge’s security is aligned with overall security.
### Consensus and Validation Process
* ***Shared Security and Consensus***: Drawing inspiration from models like Restaking’s Shared Security, the BounceBit BTC Bridge implements a system where Validators collectively maintain and secure the bridge. This collaborative approach distributes the responsibility of security, enhancing the reliability of cross-chain transactions.
* ***Majority Approval for Transactions***: For any cross-chain transaction to be validated and executed, it requires approval from over 50% of the Validators. This consensus mechanism ensures that every transaction is thoroughly vetted and endorsed by a majority of the network’s validators, adding an extra layer of security and trust to the bridging process.<br>
# Oracle
Oracles play a crucial role in blockchain environments by providing external data to smart contracts, enabling these contracts to interact with real-world information. This document provides guidelines on integrating oracles into the BounceBit Layer 1 blockchain, ensuring that external data feeds are secure, reliable, and timely. We will also use Bracle Network as a specific example to illustrate the integration process.
### **Types of Oracles**
Oracles can be broadly categorized based on their data sources, data flow direction, and degree of centralization:
#### **1. Data Source**
* **Software Oracles**: Manage online data such as temperatures, flight statuses, and financial market prices.
* **Hardware Oracles**: Interface with real-world physical devices like IoT sensors.
#### **2. Direction of Data Flow**
* **Inbound Oracles**: Deliver external data into smart contracts.
* **Outbound Oracles**: Send data from smart contracts to the external world.
#### **3. Centralization**
* **Centralized Oracles**: Rely on a single data source, presenting a potential point of failure.
* **Decentralized Oracles**: Use multiple independent sources to validate data, enhancing reliability and security.
## **Bracle Network on BounceBit**
Bracle Network is a decentralized oracle network designed to provide frequently updated, reliable data feeds to DApps and smart contracts within blockchain ecosystems like BounceBit. It features permissionless access and aggregates data from over 20 sources including both centralized and decentralized exchanges.
For a detailed documentation please refer to Bracle's documentation itself <https://docs.bracle.network/>
#### Data Format <a href="#data-format" id="data-format"></a>
At a top level, transferring data to a Blockchain VM environment requires packing an extra payload to a user's transaction and processing the message on-chain.
<figure><img src="https://docs.bracle.network/~gitbook/image?url=https%3A%2F%2F3447861860-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FpNbPOwBJhzKBYhW0DpbT%252Fuploads%252FxP1GlNDb4cwcdzTLHJPf%252F3333.png%3Falt%3Dmedia%26token%3D1114da42-fc4d-4620-a37e-d7a0db29f368&width=768&dpr=4&quality=100&sign=509f5f915b2b84b11e815f3ca69da67937f7238470e1efc9b85ae906f857636c" alt=""><figcaption></figcaption></figure>
**Data packing (off-chain data encoding)**
1. Relevant data needs to be fetched from the decentralized cache layer, powered by Bracle Network light cache nodes
2. Data is packed into a message according to the following structure
<figure><img src="https://docs.bracle.network/~gitbook/image?url=https%3A%2F%2F3447861860-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FpNbPOwBJhzKBYhW0DpbT%252Fuploads%252FwC0rhGZJfJ6OY7JAACB1%252F4444.png%3Falt%3Dmedia%26token%3De443a351-9f49-4f33-9ea0-497d917a506a&width=768&dpr=4&quality=100&sign=7e0d9c6734c3e47c1cc4773515ea05ef071404d9b9c7c80458d5da8edc63d9ae" alt=""><figcaption></figcaption></figure>
1. The package is appended to the original transaction message, signed and submitted to the network
*All of the steps are executed automatically by ContractProxy and transparent to the end-user*
**Data unpacking (on-chain data verification)**
1. The appended data packages are extracted from the `msg.data`
2. For each data package we:
1. Verify if the signature was created by a trusted provider
2. Validate the timestamp, checking if the information is not obsolete
3. Then, for each requested data feed we:
1. Calculate the number of received unique signers
2. Extract value for each unique signer
3. Calculate the aggregated value (median by default)
*This logic is executed in the on-chain environment and we optimised the execution using a low-level assembly code to reduce gas consumption to the absolute minimum*
### For details
* [Bracle Documentation](https://docs.bracle.network/)
# Onchain Price Feed
Bracle Price feeds continuously stream price updates to blockchains, with each feed stored within a smart contract. Application developers can easily pass these contracts on their own, then deserialize the data to read the current feed value. Bracle Price Feeds also offer a "pull" model for price updates, where users are responsible for posting updates to the chain as needed. For more information on this model and its implications for integrators, refer to [Bracles documentation](https://docs.bracle.network/price-feeds/pull-model). In the pull model, developers should integrate Bracle into both their onchain and offchain code:
* Onchain programs should read prices from the Bracle program deployed on the same chain.
Bracle provides BounceBit-specific SDK to assist with the integration process, both onchain and off-chain. The simplest way to utilize Bracle price feeds is to integrate the relevant SDKs into your application."
### Reading data feeds onchain <a href="#reading-data-feeds-on-chain" id="reading-data-feeds-on-chain"></a>
To consume price data, your smart contract should reference `IAggregator.sol`, which defines the external functions implemented by Data Feeds.
`IAggregator.sol`
```solidity
// SPDX-License-Identifier: LGPL-3.0
pragma solidity 0.8.20;
interface IAggregator {
/**
* @notice median from the most recent report
*/
function latestAnswer() external view returns (int256);
/**
* @notice timestamp of block in which last report was transmitted
*/
function latestTimestamp() external view returns (uint256);
/**
* @notice Aggregator round (NOT OCR round) in which last report was transmitted
*/
function latestRound() external view returns (uint256);
/**
* @notice median of report from given aggregator round (NOT OCR round)
* @param _roundId the aggregator round of the target report
*/
function getAnswer(uint256 _roundId) external view returns (int256);
/**
* @notice timestamp of block in which report from given aggregator round was transmitted
* @param _roundId aggregator round (NOT OCR round) of target report
*/
function getTimestamp(uint256 _roundId) external view returns (uint256);
/**
* @return answers are stored in fixed-point format, with this many digits of precision
*/
function decimals() external view returns (uint8);
/**
* @notice human-readable description of observable this contract is reporting on
*/
function description() external view returns (string memory);
/**
* @notice aggregator contract version
*/
function version() external view returns (uint256);
/**
* @notice details for the given aggregator round
* @param _roundId target aggregator round (NOT OCR round). Must fit in uint32
* @return roundId _roundId
* @return answer median of report from given _roundId
* @return startedAt timestamp of block in which report from given _roundId was transmitted
* @return updatedAt timestamp of block in which report from given _roundId was transmitted
* @return answeredInRound _roundId
*/
function getRoundData(
uint80 _roundId
) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
/**
* @notice aggregator details for the most recently transmitted report
* @return roundId aggregator round of latest report (NOT OCR round)
* @return answer median of latest report
* @return startedAt timestamp of block containing latest report
* @return updatedAt timestamp of block containing latest report
* @return answeredInRound aggregator round of latest report
*/
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
```
#### Example <a href="#example" id="example"></a>
```solidity
// SPDX-License-Identifier: LGPL-3.0
pragma solidity 0.8.20;
import {IAggregator} from "../interfaces/IAggregator.sol";
/**
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED
* VALUES FOR CLARITY.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* DO NOT USE THIS CODE IN PRODUCTION.
*/
contract DataConsumer {
IAggregator internal dataFeed;
/**
* Network: BounceBit
* Aggregator: BBTC/USD
* Address: 0xf136f4Af2F431034C8803C4c892609292D915A46
*/
constructor() {
dataFeed = IAggregator(
0xf136f4Af2F431034C8803C4c892609292D915A46
);
}
/**
* Returns the latest answer.
*/
function getBracleDataFeedLatestAnswer() public view returns (int) {
// prettier-ignore
(
/* uint80 roundID */,
int answer,
/*uint startedAt*/,
/*uint timeStamp*/,
/*uint80 answeredInRound*/
) = dataFeed.latestRoundData();
return answer;
}
}
```
# Offchain Price Feed
## Use Data Feed Offchain
#### Javascript <a href="#javascript" id="javascript"></a>
This example uses ethers.js to retrieve feed data from the ETH / USD feed on the ArbitrumSepolia testnet.
```solidity
/**
* THIS IS EXAMPLE CODE THAT USES HARDCODED VALUES FOR CLARITY.
* THIS IS EXAMPLE CODE THAT USES UN-AUDITED CODE.
* DO NOT USE THIS CODE IN PRODUCTION.
*/
const { ethers } = require("ethers") // for nodejs only
const provider = new ethers.providers.JsonRpcProvider("https://endpoints.omniatech.io/v1/arbitrum/sepolia/public")
const aggregatorABI = [
{
inputs: [],
name: "decimals",
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "description",
outputs: [{ internalType: "string", name: "", type: "string" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "uint80", name: "_roundId", type: "uint80" }],
name: "getRoundData",
outputs: [
{ internalType: "uint80", name: "roundId", type: "uint80" },
{ internalType: "int256", name: "answer", type: "int256" },
{ internalType: "uint256", name: "startedAt", type: "uint256" },
{ internalType: "uint256", name: "updatedAt", type: "uint256" },
{ internalType: "uint80", name: "answeredInRound", type: "uint80" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "latestRoundData",
outputs: [
{ internalType: "uint80", name: "roundId", type: "uint80" },
{ internalType: "int256", name: "answer", type: "int256" },
{ internalType: "uint256", name: "startedAt", type: "uint256" },
{ internalType: "uint256", name: "updatedAt", type: "uint256" },
{ internalType: "uint80", name: "answeredInRound", type: "uint80" },
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "version",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
]
const addr = "0xf136f4Af2F431034C8803C4c892609292D915A46"
const priceFeed = new ethers.Contract(addr, aggregatorABI, provider)
priceFeed.latestRoundData().then((roundData) => {
// Do something with roundData
console.log("Latest Round Data", roundData)
})
```
# Data Feed Addresses
This table contains the contract addresses of data feed contracts of supported assets on BounceBit.
For integration check out [Onchain Price Feed](/infrastructure/oracle/onchain-price-feed).
| Pairing | Contract Address |
| -------- | ------------------------------------------ |
| B2BB-USD | 0x075d9aEe7d67976120A43f50F93a6705f9A10F6A |
| BB-USD | 0xB3d55d424e26278A913D39D41b4F9A690Dc0BD1D |
| BBTC-USD | 0xf136f4Af2F431034C8803C4c892609292D915A46 |
| BNB-USD | 0x8501C65311AFBb2C320614D03f6b8492031BB3fB |
| BSSB-USD | 0xC73dA17858afaD146D099aB51f3c2F54CB885D67 |
| BTC-USD | 0xCF80115099a8693c969E964d26972b901A9C0750 |
| DAII-USD | 0x765b72746f72E2340474c4620868E78c43F87bFB |
| ETH-USD | 0x31275aFcb15CeFc6346f7dce24980Fd4117A038F |
| MEME-USD | 0x9931aEE7e2ac14D1714aFdBd29741F4dCaD668B8 |
| MOGB-USD | 0xCF9BF1a21b2f3E9f2f87f60167815d1503F19D6f |
| MUBI-USD | 0xC70B55573F629eE9367473aF4d0464023877C095 |
| ORDI-USD | 0x32494e45a360D5550293bc3E8D7B92697B769Dbb |
| PUPS-USD | 0x09EFdD2Ad66dE2829407177ABF3fB3d67fAA4A75 |
| SATS-USD | 0xd3F6ecc300BD98A83B28207Ef0Fc55a551864f9D |
| SAVM-USD | 0x63Db4eA38C928A0fF18282cF067E0c9889b4DCcB |
| TURT-USD | 0xbd84af436921DC29d0CB6050e29B33530A778D93 |
| .COM-USD | 0x84B86561C3E65163787362F68eE1ceF0128bf743 |
# Integrations & Partners
A non-exhaustive compilation of BounceBit's partners, friends, integrations and infrastructure providers. May be outdated.
<details>
<summary>Institutional:</summary>
* Franklin Templeton
* BlackRock
* Securitize
* Ondo Finance
* Plume
* Ethena
* Hashnote
* DigiFT
</details>
<details>
<summary>Wallets:</summary>
* Binance Web3 Wallet
* OKX Web3 Wallet
* Bitget Wallet
* Trust Wallet
* SafePal
* Rabby Wallet
</details>
<details>
<summary>Oracles:</summary>
* Bracle
* Apro
</details>
<details>
<summary>Bridges:</summary>
* LayerZero
* Orbiter
* Owlto
* MultiBit
* Polyhedra
* Meson
* Free
</details>
<details>
<summary>DApps:</summary>
* Pell Network (Restaking)
* Lista DAO (Stablecoin Borrowing)
* zkLink Nova
* LayerBank (Lending & Borrowing)
* BitBrain
* Ethena (USD yield)
* Doubler
</details>
<details>
<summary>Custodians:</summary>
* Ceffu
* Standard Chartered
</details>
# Intro
BounceClub Overview
{% embed url="<https://www.youtube.com/watch?ab_channel=BounceBit&v=KUJZhN9Mc8w>" %}
Welcome to [BounceClub](https://club.bouncebit.io/), the BounceBit ecosystem.
## BounceClub Overview
BounceClub functions as the ecosystem layer for BounceBit, providing DeFi infrastructure and specialized trading tools. The platform combines standard DeFi primitives with additional features focused on derivatives, meme tokens, and AI integration.
### Infrastructure Components
#### DEX (Swap)
Basic decentralized exchange providing liquidity infrastructure for BounceBit assets. 
Located at [club.bouncebit.io/defi/swap](#bounceclub-technical-overview).
#### Quanto Trading Market
A derivatives-focused trading system offering:
* Stock and index trading support (COIN, MSTR, BB, HSI)
* Cross-asset trading capabilities
* BB-based collateral system
* Leverage range: 2-200x 
Access via [club.bouncebit.io/defi/quanto](#bounceclub-technical-overview)
#### Meme Token Launchpad
Token launch infrastructure implementing:
* Community token deployment tools
* Structured launch processes
* Pump.fun bonding curve implementation 
Available at [club.bouncebit.io/memecoin](#bounceclub-technical-overview)
#### AI Agent Integration
Development platform for trading automation:
* Customizable AI agent creation and deployment
* Planned DeFAI agent implementation for yield strategy optimization
* Strategy subscription system based on yield metrics and user parameters 
Located at [club.bouncebit.io/clubs](#bounceclub-technical-overview)
### Technical Architecture
BounceClub operates as a dApp layer, connecting these components through shared liquidity pools and cross-component interactions. The system uses BB, BBUSD and BBTC as its primary assets while supporting multiple trading pairs and derivatives contracts.
# BounceClub Membership
Welcome to **BounceClub Membership**, the ultimate rewards program for BounceBit users. We’re transforming how you interact with and earn from CeDeFi (Centralized-Enabled Decentralized Finance). With a dynamic tiered rewards and referral structure, BounceClub Membership is designed to drive real value for you, ensuring your growth as you invite, invest, and engage with the community.
#### **What is BounceClub Membership?**
BounceClub Membership is our rewards and membership ecosystem on BounceBit, aimed at empowering users to **maximize their earnings, grow their network, and build wealth** in the world of CeDeFi. Save more, earn more — BounceClub Membership offers an array of incentives and rewards across multiple membership levels, giving you full control over how you earn.
#### **Membership Tiers and Rewards: Growing Together in CeDeFi**
Our membership tiers are carefully crafted to reward your progress and increase your earning potential as you grow within the platform. Here’s a quick breakdown:
| **Membership Level** | **Maintained Balance in CeDeFi (in Dollar Value)** | **Referral Rebate** | **Monthly Referral Rewards Cap** | **Rewards Burn Rate Reduction** |
| -------------------- | -------------------------------------------------- | --------------------------------- | -------------------------------- | ------------------------------- |
| **Premium** | ≥ 1,000 | 1 Level @ 2.5% | 1,000 BB | None |
| **Bronze** | ≥ 10,000 | 3 Levels @ 3%, 2.5%, 2% | 2,500 BB | None |
| **Silver** | ≥ 25,000 | 4 Levels @ 3%, 2.5%, 2%, 1.5% | 5,000 BB | 10% |
| **Gold** | ≥ 50,000 | 5 Levels @ 3%, 2.5%, 2%, 1.5%, 1% | 10,000 BB | 20% |
**How It Works**:
* **Upgrade Your Tier**: Each membership level requires a minimum holding balance on BounceBit C프로젝트로 돌아가기