Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 2.02 KB

README.md

File metadata and controls

70 lines (51 loc) · 2.02 KB

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