Overview

BTC-ETH (BETH) is a Modified ERC-4626 vault implementation that aggregates multiple underlying assets and issues a unified share token. This contract leverages API3's oracle data feeds, generously provided as part of their grant, to ensure accurate USD valuations. This enables deposits and redemptions in a diversified portfolio of assets such as BTC, ETH, and more. Additionally, **OKU Swap** facilitates efficient asset conversions within the vault. The Vault generates a generic APY on the underlying assets through Slippage Differences & Rebalancing, increasing BTC & ETH holdings over time and thus enhancing Share Values.

General Workflow Overview

flowchart-beth1-1.png.png

Key Features

API3 Integration & Grant Support

API3 has provided a generous grant to support the integration of their Decentralized price feeds, which are critical for accurate valuation in the vault. The vault relies on API3 oracles to fetch USD prices for underlying assets, ensuring transparency and reliability during:

  1. Total Asset Valuation: API3's oracles provide real-time USD prices for each asset, multiplied by balances to determine total vault value.
  2. Price Per Share Calculation: The vault divides the total asset value by total shares to determine share price.
  3. Redemption & Minting Calculations: API3 data ensures accurate conversion between assets and shares, preventing price manipulation.

API3’s support enables our vault to operate with enhanced security and precision, reinforcing its role as a trustless and decentralized financial solution. Learn more about API3 Here

OKU Swap Integration

OKU Swap plays a vital role in asset conversions by:

  1. Swapping Deposits: When users deposit USDT, the contract converts 50% into BTC and 50% into ETH using OKU Swap.
  2. Swapping Redemptions: When users redeem shares, the contract converts underlying assets back into USDT via OKU Swap.
  3. Ensuring Liquidity: The vault checks OKU Swap liquidity pools before executing transactions, preventing failed swaps.