Looks Rare Token - Smart Contract Audit Report
Summary
Looks Rare Token ($LR) is a new community-driven DeFi token on the Ethereum Blockchain that pays out static token rewards to holders and sends ETH to the team.
Notes on the Contract:
- The total supply of the token is initially set to 100 billion $LR [100,000,000,000].
- No minting or burn functions are present; however, holders can reduce the circulating supply by transferring tokens to the 0x000...dead address if desired.
- As the contract was recently deployed, our team did not have a token allocation to analyze.
- There is a 3% 'Tax Fee' and a 10% 'Team Fee' on all transactions for any non-excluded address that participates in a transfer.
- Users who hold tokens will automatically benefit from the frictionless fee redistribution at the time of each transaction as the tokens collected through the 'Tax Fee' are removed from the circulating supply.
- The tokens that are collected from the "Team Fee" that are charged on transactions will be stored in the contract address. Once the contract balance receives $LR tokens, the tokens will be swapped for ETH. The received ETH is then transferred in a 50%-50% split between the team's "Fee Wallets".
- The team wallet (Fee Address 1) can call the Manualswap() and Manualsend() functions at any time. ManualSwap will manually swap $LR tokens in the contract for ETH which is then stored in the contract balance. ManualSend will transfer the ETH from the contract to the 2 team wallets in a 50-50 split.
- The contract utilizes a cooldown mechanism which (when enabled by the owner) will prevent a holder from buying tokens until a duration of 15 seconds has elapsed after their previous purchase.
- As the project is compiled with Solidity v0.8.4, it is protected from overflow/underflow issues.
- The contract complies with the ERC20 Token Standard.
Ownership Controls:- Ownership has been renounced.
- The owner was previously able to add/remove addresses to a blacklist which will prohibit that account from participating in transfers.
- The owner was previously able to enable trading which allows transfers of the token to take place globally for all non-blacklisted addresses.
- The owner was previously able to set and update a 'maximum transaction amount' at any time, which will impose a limit to the number of tokens that can be transferred during any given transaction. This value is defaulted to 0.5% of the total supply when the owner enables trading. Since ownership has been renounced, the maximum transaction amount is now set to 10% of the total supply.
Audit Findings Summary
- No external threats were identified during our analysis of the token contract.
- Please ensure trust in the team prior to investing as they have control over the ETH collected from the team fee.
- Date: November 12th, 2021
Audit 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 |
Function Graph
Inheritance Chart
Functions Overview
($) = payable function
# = non-constant function
+ Context
- [Int] _msgSender
+ [Int] IERC20
- [Ext] totalSupply
- [Ext] balanceOf
- [Ext] transfer #
- [Ext] allowance
- [Ext] approve #
- [Ext] transferFrom #
+ [Lib] SafeMath
- [Int] add
- [Int] sub
- [Int] sub
- [Int] mul
- [Int] div
- [Int] div
+ Ownable (Context)
- [Pub] #
- [Pub] owner
- [Pub] renounceOwnership #
- modifiers: onlyOwner
+ [Int] IUniswapV2Factory
- [Ext] createPair #
+ [Int] IUniswapV2Router02
- [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
- [Ext] factory
- [Ext] WETH
- [Ext] addLiquidityETH ($)
+ LooksRare (Context, IERC20, Ownable)
- [Pub] #
- [Pub] name
- [Pub] symbol
- [Pub] decimals
- [Pub] totalSupply
- [Pub] balanceOf
- [Pub] transfer #
- [Pub] allowance
- [Pub] approve #
- [Pub] transferFrom #
- [Ext] setCooldownEnabled #
- modifiers: onlyOwner
- [Prv] tokenFromReflection
- [Prv] _approve #
- [Prv] _transfer #
- [Prv] swapTokensForEth #
- modifiers: lockTheSwap
- [Prv] sendETHToFee #
- [Ext] openTrading #
- modifiers: onlyOwner
- [Pub] setBots #
- modifiers: onlyOwner
- [Pub] setMaxTXAmount #
- modifiers: onlyOwner
- [Pub] delBot #
- modifiers: onlyOwner
- [Prv] _tokenTransfer #
- [Prv] _transferStandard #
- [Prv] _takeTeam #
- [Prv] _reflectFee #
- [Ext] ($)
- [Ext] manualswap #
- [Ext] manualsend #
- [Prv] _getValues
- [Prv] _getTValues
- [Prv] _getRValues
- [Prv] _getRate
- [Prv] _getCurrentSupply