1.0.8-alpha • Published 10 months ago
@phoenix-finance/destiny-contracts v1.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
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
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
Token
- Used to create bull and bear tokens
- Only allows respective destiny vault to withdraw upon inital mint
Fee
- Manages fee distribution (Zahnentferner and Phoenix)
ProxyFee
- Acts as an intermediary contract for fee management
- allows fee contract to be changed in a multisig fashion
- allows owners to be changed
DummyOracle
- Stores and retrieves a single value
- Emits events when the value is updated
- Anyone can update oracle value
OracleFetcher
- fetchs price data from oracle contracts
1.0.8-alpha
10 months ago
1.0.7-alpha
10 months ago
1.0.6-alpha
10 months ago
1.0.5-alpha
10 months ago
1.0.4-alpha
10 months ago
1.0.3-alpha
10 months ago
1.0.2-alpha
10 months ago
1.0.1-alpha
10 months ago
1.0.0-alpha
10 months ago