Functions Overview

Our token integrates a suite of functions that enhance its utility and governance.

These functions allow for token delivery, account exclusions and inclusions for rewards, and dynamic fee adjustments. Dive deeper to understand the specifics of each function and their respective constraints.

  1. transfer:

    • Purpose: Allows a user to transfer a specified amount of tokens to another address.

    • Parameters:

      • recipient: The address to receive the tokens.

      • amount: The number of tokens to be transferred.

  2. approve:

    • Purpose: Allows the owner of the tokens to authorize a spender to withdraw a specified amount from their account.

    • Parameters:

      • spender: The address which will spend the funds.

      • amount: The number of tokens to be approved for transfer.

  3. transferFrom:

    • Purpose: Allows a spender to transfer tokens from the owner's address to another address.

    • Parameters:

      • sender: The address from which the tokens will be withdrawn.

      • recipient: The address to receive the tokens.

      • amount: The number of tokens to be transferred.

  4. sendAirdrop:

    • Purpose: Facilitates the distribution of airdropped tokens to recipients with an option to lock a portion of the tokens.

    • Parameters:

      • recipient: The address receiving the airdrop.

      • totalAmount: Total tokens to be airdropped.

      • lockedAmount: Tokens that will be locked from the airdropped amount.

      • lockDays: Duration (in days) for which the tokens will be locked.

  5. increaseAllowance:

    • Purpose: Boosts the amount of tokens that an owner has permitted a spender to use.

    • Parameters:

      • spender: The address which will spend the funds.

      • addedValue: The number of tokens to increase the allowance by.

  6. decreaseAllowance:

    • Purpose: Reduces the number of tokens that an owner has allowed a spender to use.

    • Parameters:

      • spender: The address which will spend the funds.

      • subtractedValue: The number of tokens to decrease the allowance by.

  7. deliver:

    • Purpose: Allows a user to deliver tokens, adjusting the internal reflection values and updating the total fee.

    • Parameters:

      • tAmount: The number of tokens to be delivered.

    • Constraints: The sender must not be in the excluded list.

  8. excludeAccount:

    • Purpose: Excludes an account from earning rewards or fees, often used for centralized exchanges or specific contracts.

    • Parameters:

      • account: The address to be excluded.

    • Constraints: The account must not already be in the excluded list. If the account has reflection owned, it's converted to token owned for tracking.

  9. includeAccount:

    • Purpose: Re-includes an account to be eligible for rewards or fees.

    • Parameters:

      • account: The address to be re-included.

    • Constraints: The account must be in the excluded list. It's removed from the list and its token owned is reset.

  10. updateFee:

    • Purpose: Allows the owner to update the fee percentages for transactions, burning, and charity.

    • Parameters:

      • _txFee: The new transaction fee percentage.

      • _burnFee: The new burn fee percentage.

      • _charityFee: The new charity fee percentage.

    • Constraints:

      • The burn fee must be between 1% and 5%.

      • The transaction fee must be between 0% and 5%.

      • The charity fee must be between 0% and 5%.

    • Functionality: Updates the internal fee values and sets the original fee values for potential reset purposes in the future.

Last updated