Treward Token - Smart Contract Audit Report
Summary
Treward is a new token where every transaction has a fee that is instantly redistributed among all token holders.
Notes on the contract:
- The total supply of the token is 20,000, delivered to the team upon deployment.
- No minting functions are present in the code.
- The Treward token includes a transfer fee. These fees are partially burned, and partially distributed among token holders.
- Users who hold tokens will automatically receive a proportional amount of the redistributed fees from the transaction tax.
- The owner sets the transfer fees and can change them at any time.
- The owner also has the ability to exclude and include users from transfer fees and rewards. Decentralized exchanges are intended to be excluded.
- The contract utilizes the SafeMath library to prevent overflows.
- Some gas optimizations can be achieved through marking functions external.
Audit Findings Summary
- No security issues were detected in the analysis.
- As with any presale, ensure trust in the team prior to investing. The team will have the ability to update tax rates.
- Date: March 9th, 2021
- Update Date: March 12th, 2021 - Add deployed address; update total supply
External Threat Results
Vulnerability Category | Notes | Result |
---|---|---|
Arbitrary Storage Write | N/A | PASS |
Arbitrary Jump | N/A | PASS |
Delegate Call to Untrusted Contract | N/A | PASS |
Dependence on Predictable Variables | N/A | PASS |
Deprecated Opcodes | N/A | PASS |
Ether Thief | N/A | PASS |
Exceptions | N/A | PASS |
External Calls | N/A | PASS |
Flash Loans | N/A | PASS |
Integer Over/Underflow | N/A | PASS |
Multiple Sends | N/A | PASS |
Oracles | N/A | PASS |
Suicide | N/A | PASS |
State Change External Calls | N/A | Pass |
Unchecked Retval | N/A | PASS |
User Supplied Assertion | N/A | PASS |
Critical Solidity Compiler | N/A | PASS |
Overall Contract Safety | PASS |
($) = payable function
# = non-constant function
+ Context
- [Int] _msgSender
- [Int] _msgData
+ [Int] IERC20
- [Ext] totalSupply
- [Ext] balanceOf
- [Ext] transfer #
- [Ext] allowance
- [Ext] approve #
- [Ext] transferFrom #
+ [Lib] SafeMath
- [Int] tryAdd
- [Int] trySub
- [Int] tryMul
- [Int] tryDiv
- [Int] tryMod
- [Int] add
- [Int] sub
- [Int] mul
- [Int] div
- [Int] mod
- [Int] sub
- [Int] div
- [Int] mod
+ [Lib] Address
- [Int] isContract
- [Int] sendValue #
- [Int] functionCall #
- [Int] functionCall #
- [Int] functionCallWithValue #
- [Int] functionCallWithValue #
- [Int] functionStaticCall
- [Int] functionStaticCall
- [Int] functionDelegateCall #
- [Int] functionDelegateCall #
- [Prv] _verifyCallResult
+ Ownable (Context)
- [Int] #
- [Pub] owner
- [Pub] renounceOwnership #
- modifiers: onlyOwner
- [Pub] transferOwnership #
- modifiers: onlyOwner
+ RWD (Context, IERC20, Ownable)
- [Pub] #
- [Pub] name
- [Pub] symbol
- [Pub] decimals
- [Pub] totalSupply
- [Pub] balanceOf
- [Pub] transfer #
- [Pub] allowance
- [Pub] approve #
- [Pub] transferFrom #
- [Pub] increaseAllowance #
- [Pub] decreaseAllowance #
- [Pub] isExcluded
- [Pub] isDexAccount
- [Pub] totalFees
- [Pub] totalBurn
- [Pub] treasure
- [Pub] totalReward
- [Pub] reflect #
- [Pub] reflectionFromToken
- [Pub] tokenFromReflection
- [Ext] excludeAccount #
- modifiers: onlyOwner
- [Ext] includeAccount #
- modifiers: onlyOwner
- [Ext] addDexAccount #
- modifiers: onlyOwner
- [Ext] removeDexAccount #
- modifiers: onlyOwner
- [Prv] _approve #
- [Prv] _transfer #
- [Prv] _transferStandard #
- [Prv] _transferToExcluded #
- [Prv] _transferFromExcluded #
- [Prv] _transferBothExcluded #
- [Prv] _reflectFee #
- [Prv] _reflectReward #
- [Prv] _getValues
- [Prv] _getTValues
- [Prv] _getRValues
- [Prv] _getRate
- [Prv] _getCurrentSupply
- [Ext] _setTaxFee #
- modifiers: onlyOwner
- [Pub] _getTaxFee
- [Ext] _setBurnFee #
- modifiers: onlyOwner
- [Pub] _getBurnFee
- [Ext] _setReward #
- modifiers: onlyOwner
- [Pub] _getReward