Skip to content

A Composite Crypto Coin which tracks the value of both Ethereum and Bitcoin. Should work as a hedge to crypto as a whole similar to the DXY index in the stock market.

Notifications You must be signed in to change notification settings

a3igner/dixie-coin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIXIE Composite Token

DIXIE is a composite cryptocurrency token that tracks both Bitcoin (BTC) and Ethereum (ETH) with equal weighting. The token's price is derived from the weighted average of BTC and ETH price movements.

Initial Parameters

  • Starting BTC Price: $69,620
  • Starting ETH Price: $2,423
  • Starting DIXIE Price: $100

Features

  • ERC20-compliant token
  • Real-time price feeds using Chainlink oracles
  • Equal weighting between BTC and ETH
  • Automatic price calculation based on market movements
  • Owner-controlled price feed updates

Setup

  1. Install dependencies:
npm install
  1. Compile contracts:
npx hardhat compile
  1. Deploy:
npx hardhat run scripts/deploy.js --network <your-network>

Smart Contract

The main contract includes:

  • Price feed integration with Chainlink oracles
  • getCurrentDIXIEPrice() function to get real-time DIXIE price
  • Automatic price calculations based on BTC and ETH movements
  • Security features and access controls

Security

  • Uses OpenZeppelin's secure contract implementations
  • Owner-only functions for critical updates
  • Price feed validation
  • Standard ERC20 security features

About

A Composite Crypto Coin which tracks the value of both Ethereum and Bitcoin. Should work as a hedge to crypto as a whole similar to the DXY index in the stock market.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published