Skip to content

Releases: connectplatform/daarion

rc-0.9alpha

04 Jun 13:26

Choose a tag to compare

Files and Functions:

  1. DAARION.sol: ERC-20 token contract with burnable, pausable, and sales tax features.

    • initialize: Initializes the contract.
    • transfer: Handles token transfers with optional tax.
    • transferFrom: Transfers tokens from one account to another with optional tax.
    • _transferWithTax: Internal function to handle taxed transfers.
    • setSalesTax: Sets the sales tax rate.
    • setWallet1: Sets the wallet1 address.
    • excludeFromTax: Excludes an account from the sales tax.
    • includeInTax: Includes an account for the sales tax.
    • mint: Mints new tokens.
    • burn: Burns tokens from the owner's balance.
    • pause: Pauses all token transfers.
    • unpause: Unpauses token transfers.
  2. DAAR.sol: ERC-20 token contract with burnable features, transaction fee, and role-based access control.

    • initialize: Initializes the contract.
    • transfer: Handles token transfers with a transaction fee.
    • transferFrom: Handles token transfer with a fee from one account to another.
    • setTransactionFee: Sets the transaction fee rate.
    • setWalletD: Sets the walletD address.
    • excludeFromFee: Excludes an account from the transaction fee.
    • includeInFee: Includes an account in the transaction fee.
    • setDistributor: Grants the DISTRIBUTOR_ROLE.
    • setAPRDistributor: Grants the APR_DISTRIBUTOR_ROLE.
    • distributeDAAR: Distributes tokens with a fee mechanism.
    • mint: Mints new tokens.
    • burn: Burns tokens from the owner's balance.
  3. APRStaking.sol: Manages staking and rewards with APR.

    • initialize: Initializes the staking contract.
    • stake: Stakes tokens.
    • unstake: Unstakes tokens.
    • calculateRewards: Calculates staking rewards.
    • claimRewards: Claims earned rewards.
    • setAPR: Sets the APR.
    • pause: Pauses staking operations.
    • unpause: Unpauses staking operations.
  4. DAARDistributor.sol: Manages token distribution over time or immediately.

    • initialize: Initializes the distributor contract.
    • distribute: Distributes tokens to recipients.
    • setDistributionDuration: Sets the distribution duration.
    • pause: Pauses token distributions.
    • unpause: Unpauses token distributions.

Key Modules:

  • Access Control: Role-based permissions.
  • Token Burning: Extends functionality for burning tokens.
  • Staking and Rewards: Supports staking with reward calculations.
  • Token Distribution: Manages timed or immediate distribution of tokens.
  • Upgradeable Patterns: Compatible with proxy deployments for upgrades.

Full Changelog: https://github.com/connectplatform/daarion/commits/rc-0.9alpha