Skip to content

A gold-pegged ERC20 token system with cross-chain bridging capabilities between Ethereum and BSC. Features Chainlink price feeds for gold pricing, VRF-powered lottery mechanics from transaction fees, and CCIP for secure cross-chain transfers.

Notifications You must be signed in to change notification settings

Ronfflex/Golden-bridge

Repository files navigation

Golden Bridge

This ERC-20 token is backed to gold, with 1 token representing 1 gram of gold. Users mint tokens by sending ETH, using Chainlink Price Feeds for real-time pricing.

A 5% fee applies to mint and burn transactions, with 50% allocated to a lottery using Chainlink VRF for fairness. The token is also bridged between Ethereum and Binance Smart Chain (BSC) via Chainlink CCIP, ensuring seamless cross-chain transfers while the main implementation remains on Ethereum.

Authors

Installation

Clone this repos with

git clone https://github.com/Ronfflex/Golden-bridge.git

Build

Build the code with

forge build

Run

Run the tests with

forge test

Check the coverage with

forge coverage

Run the scripts with

About

A gold-pegged ERC20 token system with cross-chain bridging capabilities between Ethereum and BSC. Features Chainlink price feeds for gold pricing, VRF-powered lottery mechanics from transaction fees, and CCIP for secure cross-chain transfers.

Topics

Resources

Stars

Watchers

Forks