TAI Smart Contract Overview
1. Overview
The TAI token is a cutting-edge cryptocurrency deployed on the Binance Smart Chain (BSC), using a standard similar to ERC-20. It is designed to provide real utility in the digital finance landscape, featuring innovative mechanisms such as automatic burning, fee management, and liquidity provisioning. These features ensure a sustainable and deflationary token economy that supports long-term value appreciation.
- Contract Name: TreasuryAI
- Symbol: $TAI
- Total Supply: 1,000,000,000 tokens
- Decimals: 18
- Platform: Binance Smart Chain (BSC)
- TreasuryAI.io
2. Ownership and Access Control
The TAI contract includes robust mechanisms to control access to critical functions, ensuring security and preventing unauthorized actions:
- Owner/Admin Role: To ensure security, the owner controls only specific critical functions, such as enabling trading, managing exclusions, triggering burns, and excluding certain addresses from fees.
- Ownership Transfer: The owner can transfer ownership to a new address or renounce ownership, effectively decentralizing control and ensuring the contract's long-term autonomy.
- Admin Control: Admin functions can be accessed by either the owner or the contract itself, ensuring robust administrative oversight. Functions marked with
onlyOwner
or onlyAdmin
ensure that only authorized parties can make critical changes.
3. Burn Mechanism
The TAI token features a burn mechanism that activates automatically with every buy and sell transaction. This ensures a consistent reduction in the overall token supply, supporting the token's deflationary model. Here's how it works:
- Burn on Transactions: The TAI token employs a burn mechanism that is triggered during both buy and sell transactions.
- Buy Transactions: When a user buys TAI tokens, 3% of the transaction amount is burned from the burn POOL. For example, if you purchase 1,000 TAI tokens, 30 tokens (3% of 1,000) are sent to a dead address from the burn pool. These burned tokens do not come from the tokens you receive; they are taken directly from the burn pool, which holds 90% of the token supply.
- Sell Transactions: When a user sells TAI tokens, 6% of the transaction amount is burned. For instance, if you sell 1,000 TAI tokens, 60 tokens (6% of 1,000) are sent from the burn pool to a dead address.
These tokens are burned from the burn pool, not from the tokens you hold, buy, or sell!
- Transacted TAI: If 100,000,000 TAI tokens are transacted daily, then 9,000,000 tokens will be burned daily from the burn pool. This burning process can lead to an increase in the price per token and incentivizes holders to promote the token more actively.
- Burn Pool: A dedicated burn pool is created to hold tokens specifically allocated for burning. This pool is essential for maintaining a controlled and transparent burn process, reducing the total supply over time without directly affecting user transactions.
- Daily Burn Limit: No
- Automatic Adjustments: The contract is programmed to adjust the burn percentages if certain conditions are met. For example, if the burn pool reaches a critical threshold (1,000,000 left to burn), the contract will reduce the burn percentage and tax to zero, ensuring the sustainability and stability of the token's economy.
Why This Matters:
This burn mechanism is designed to reduce the total supply of TAI tokens in a controlled and predictable way, which can help increase the scarcity and value of the remaining tokens. By burning tokens from a dedicated pool and not from individual transactions, the TAI token ensures that users' transactions are not directly affected, making the process fair and transparent. In summary, every time a transaction happens, the burn pool sends a set percentage of tokens to a dead address, effectively reducing the total token supply. This approach helps maintain the token's deflationary model, potentially boosting the value of the TAI tokens you hold.
4. Proof of Burn from Burn Pool (Tracker Address)
The TAI contract provides proof of burn from the burn pool through the use of a tracker address and event logging:
- Tracker Address: A dedicated address is automatically created by the contract itself upon deployment and is used to manage the burn pool, ensuring that tokens allocated for burning are held securely and transparently.
- Function: _sendTokensTotrackerAddress():
- Purpose: This function sends a significant portion of the total supply (900,000,000 TAI tokens) to the tracker address. These tokens are reserved specifically for burning over time to support the deflationary mechanism of the token.
- Process: This operation is executed upon contract deployment, immediately allocating a substantial portion of tokens to the burn pool, which can then be tracked and verified by the community.
- Burn Events: The contract emits
BurnExecuted
events each time a burn is conducted from the burn pool. These events include details such as the amount burned and the timestamp, providing verifiable proof of burn activities.
- Event Logging for Transparency: By emitting events whenever a burn occurs, the contract ensures that all burn activities are publicly visible on the blockchain. This allows token holders and the community to track and verify that burns are happening as intended, contributing to trust and transparency.
- Access to Tracker Address and Contract Balance:
- Owner Access: The owner does not have access to withdraw tokens from the tracker address or contract balance. These funds are managed by the contract's internal logic for burning and liquidity provision.
- Outside Party Access: No outside party can access the tracker address or contract balance. Only the contract's predefined functions control these assets, ensuring security and transparency.
5. Tracker Address
A dedicated tracker address is used to manage token burns and operational metrics, enhancing transparency and automation:
- Creation: A tracker address is automatically created upon deployment
_createTrackerAddress() internal {
to manage the burn pool and hold a significant portion of the total supply for burning purposes.
- Role: It facilitates automation in burn processes, ensuring that the burning mechanism is transparent, traceable, and effectively contributes to the deflationary model and price appreciation.
6. Tokenomics and Fees
The TAI token utilizes a comprehensive fee structure to support its ecosystem, drive development, and ensure liquidity:
- Total Supply: 1,000,000,000
- Tokens to Burn: 900,000,000
- Tokens for Extra LP: 5,000,000
- Tokens for Staking: 5,000,000
- Tokens for Sale: 90,000,000
- Tokens for Cex: From Buy Back.
- Team Tokens: No.
- Fee Structure:
- Buy Fee: Set at 3%, non-adjustable. (The contract will also burn the same percentage from the burn pool)
- Sell Fee: Set at 3%, non-adjustable.
- Transfer Fee: Set at 0%, non-adjustable.
- Automatic Fee Allocation:
- 40% for marketing.
- 40% for development.
- 20% for liquidity provisioning ------ (50% as TAI tokens and 50% as WBNB, automatically burned)
- Burn Percentage:
- Buy Burn Percentage (Not Fees): 3%, Nonadjustable.
- Sell Burn Percentage (Not Fees): 6%, Nonadjustable.
- Why is the Sell Burn Percentage Higher?: This strategy aims to attract long-term holders and deter opportunistic traders. Long-term holders benefit from this approach, while fast sellers (and bots) either take small profits or none at all.
- Fee Usage: Collected fees are used for various purposes such as marketing, development, and adding liquidity, contributing to the token's sustainability and growth.
- Exclusions: Certain addresses, such as presale addresses, can be excluded from paying fees.
7. Liquidity Management
Stability and tradability.
- Liquidity Provision: Automatically adds liquidity to decentralized exchanges (DEXs) by pairing TAI tokens with Binance Coin (BNB). This ensures sufficient liquidity for trading, supporting the token's market presence.
- Swap and Liquify: The contract collects fees, converts part of them to BNB, and adds liquidity to the pool, ensuring continuous market depth and stability.
- Liquidity Burn: After liquidity is added, the liquidity tokens (LP tokens) are sent to a dead address, ensuring that the liquidity cannot be withdrawn and thus reducing market volatility.
8. Stability and Low Slippage Mechanism
The TAI contract incorporates mechanisms to ensure stable trading conditions and reduce slippage:
- Tokens for Stability: A portion of the token supply is held by the contract to be gradually reintroduced into the liquidity pool over time. This is managed by the
_sendTokensToContractAddress()
function.
- _sendTokensToContractAddress() Function:
- Purpose: This function sends a fixed amount of tokens (5,000,000 TAI) to the contract address. These tokens are later used to provide liquidity or burned, depending on market conditions and the contract's needs.
- Mechanism: By gradually reintroducing tokens into the liquidity pool and burning them, the contract helps maintain stable trading conditions and minimizes slippage during transactions.
- Process: This helps maintain liquidity and reduce volatility.
9. Automatic Critical Parameter Adjustments
To safeguard the token's sustainability and adapt to changing market conditions, TAI includes features to automatically adjust critical parameters under predefined conditions:
- Fee Adjustment: Buy and sell fees can be automatically reduced to 0% when critical thresholds are met, such as the burn pool reaching a critical level.
- Burn Adjustment: Burn percentages for both buy and sell transactions automatically set to 0%.
10. Security Features
Security is a top priority in the TAI contract, with several features implemented to protect against exploits and ensure the safety of token holders:
- Reentrancy Protection: The
lockTheSwap
modifier is used to prevent reentrancy attacks during token swaps and liquidity additions, ensuring a secure swap process.
- Exclusion Controls: Specific addresses can be excluded from fees and burns, providing flexibility and preventing manipulation.
- Ownership Restrictions: Critical functions are protected by
onlyOwner
and onlyAdmin
modifiers, ensuring that only authorized access is permitted.
11. Events and Transparency
Transparency is a core principle of the TAI contract, with extensive event logging to track contract actions and ensure accountability:
- Event Logging: The contract emits events for critical actions such as enabling trading, changing fees, executing burns, and adding liquidity. This ensures that all significant actions are publicly visible on the blockchain.
- Public Visibility: These events provide transparency to token holders and the community, making it easier to monitor the contract’s activities and maintain trust.
12. Future Staking Mechanism
To further enhance the value proposition and reward long-term holders, a staking mechanism is planned for future implementation:
- Staking Rewards: Once the burn process concludes and only 10% of the total tokens remain in circulation, a staking mechanism will be introduced with 5,000,000 tokens allocated for staking rewards.
- Staking Functionality: Users will be able to lock their tokens to earn rewards, which supports the token’s value and encourages community engagement.
Conclusion
The TAI smart contract is a robust and secure implementation of an ERC-20 token on the Binance Smart Chain. It features innovative burn mechanisms, detailed tokenomics, advanced liquidity management, and automated adjustments to critical parameters. These features ensure long-term sustainability, potential price appreciation, and a secure environment for users and investors. The proof of burn, via events from the burn pool, provides transparency and trust in the token's deflationary model. The _sendTokensTotrackerAddress()
and _sendTokensToContractAddress()
functions support stable trading, low slippage, and a controlled burn process. The upcoming staking mechanism will further enhance the token’s appeal, rewarding committed holders and contributing to the token's overall value proposition.