TECHNICALITIES OF nQ-Earn
TREASURY CONTRACT
PURPOSE
The Treasury contract serves as a storage and dispenser of reward tokens. It ensures that rewards are distributed appropriately according to defined rules.
FEATURES
Token Storage: The contract holds the reward tokens.
Reward Dispensation: Rewards are transferred to specified addresses based on predefined conditions.
Ownership: The contract owner can set the token contract address.
FUNCTIONS
payReward: Initiates the transfer of rewards to a specified address.
withdrawLostTokens: Allows the owner to withdraw any tokens (except the reward token) accidentally sent to the contract.
setTokenContract: Enables the owner to set the token contract address.
NEBULA-Q CONTRACT
PURPOSE
The Nebula-Q Protocol contract is the main ERC-20 token contract with added functionalities for reward calculation and distribution.
FEATURES
Reward Calculation: The contract calculates claimable rewards for users based on their token holdings and the time elapsed. U
ser Tracking: User balances, last claimed time, and other relevant data are tracked. Fee System:It incorporates a fee system for transactions, enabling sustainable ecosystem development.
Pausing: The contract owner can pause and unpause token transfers.
initialize: Initializes contract parameters.
setPoolAddress: Sets the pool address for the contract.
setTaxFee: Sets the tax fee percentage.
setTreasury: Updates the treasury address.
setFeeEnabled: Enables or disables transaction fees. enableTrading: Allows or disallows token trading.
setExcludedWalletsFromLimit: Excludes or includes wallets from transaction amount limits.
setExcludedWalletsFromTax: Excludes or includes wallets from transaction fees.
setMaxSellAmount: Sets the maximum sell amount.
setMaxBuyAmount: Sets the maximum buy amount.
setMaxTxAmount: Sets the maximum transaction amount.
pause: Pauses token transfers.
unpause: Unpauses token transfers.
claimDailyReward: Allows users to claim daily rewards
INTEGRATION
The Treasury contract is integrated into the Nebula-Q Protocol contract, allowing seamless reward dispensation to eligible users.
REWARD CALCULATION
Claimable rewards are calculated based on the user's balance, the reward constant, and the time elapsed since the last claim.
Users can claim rewards once every 24 hours.
FEE SYSTEM
A tax fee is applied to transactions, contributing to the treasury and supporting the ecosystem.
TRANSACTION CONTROL
Various limits (max transaction, max buy, max sell) are implemented to manage transaction amounts and prevent abuse.
Last updated