open-index/open-npm huggingface dataset:
npm package: @phoenix-finance/destiny-contracts
Description: This repository contains the smart contracts for Destiny Protocol.
Latest version: 1.0.8-alpha

# Phoenix Destiny Contracts

This repository contains the smart contracts for Destiny Protocol.

## Contract Overview

| Contract Name   | Description                                                   |
|-----------------|---------------------------------------------------------------|
| DestinyFactory  | Creates Destiny Protocol instances                            |
| DestinyVault    | Core functionality for Destiny Game                           |
| Token           | Used to create bull and bear tokens                           |
| ProxyFee        | Intermediary multisig contract for dev fee management         |
| Fee             | Splits dev fees to respective addresses                       |
| DummyOracle     | Simple oracle implementation for testing                      |
| OracleFetcher   | Fetches price data from oracle contracts                      |

## Contract Descriptions

1. DestinyFactory
   - Responsible for creating new Destiny Protocol instances
   - Manages template IDs for DestinyVault and Token contracts
   - Manages protocol parameters
   - Handles fee collection for contract creation

2. DestinyVault
   - Represents the core functionality of a Destiny Protocol instance
   - Manages minting, burning, and redemption of bull and bear tokens
   - Interacts with oracle for price feeds

3. Token
   - Used to create bull and bear tokens
   - Only allows respective destiny vault to withdraw upon inital mint

4. Fee
   - Manages fee distribution (Zahnentferner and Phoenix)

5. ProxyFee
   - Acts as an intermediary contract for fee management
   - allows fee contract to be changed in a multisig fashion
   - allows owners to be changed

6. DummyOracle
   - Stores and retrieves a single value
   - Emits events when the value is updated
   - Anyone can update oracle value

7. OracleFetcher
   - fetchs price data from oracle contracts