1.0.8-alpha • Published 10 months ago

@phoenix-finance/destiny-contracts v1.0.8-alpha

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
10 months ago

Phoenix Destiny Contracts

This repository contains the smart contracts for Destiny Protocol.

Contract Overview

Contract NameDescription
DestinyFactoryCreates Destiny Protocol instances
DestinyVaultCore functionality for Destiny Game
TokenUsed to create bull and bear tokens
ProxyFeeIntermediary multisig contract for dev fee management
FeeSplits dev fees to respective addresses
DummyOracleSimple oracle implementation for testing
OracleFetcherFetches 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
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