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.
- Starting BTC Price: $69,620
- Starting ETH Price: $2,423
- Starting DIXIE Price: $100
- 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
- Install dependencies:
npm install
- Compile contracts:
npx hardhat compile
- Deploy:
npx hardhat run scripts/deploy.js --network <your-network>
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
- Uses OpenZeppelin's secure contract implementations
- Owner-only functions for critical updates
- Price feed validation
- Standard ERC20 security features