SmartLauncher - Smart Contract Audit Report
Summary
SmartLauncher ($SML) is a new community-driven DeFi token on the Binance Smart Chain that is an automatic liquidity providing protocol.
Notes on the Contract:Audit Findings Summary
- The total supply of the token is set to 10 billion $SML [10,000,000,000].
- No minting or burn functions are present; though the circulating supply can be reduced by sending tokens to the 0x..dead address, if desired.
- At the time of writing this report, 78% of the total supply belongs to the owner.
- 20% of the total supply belongs to the team's Marketing wallet.
- There is a liquidity fee, buyback fee, and marketing fee on all transactions for any "non-excluded" address that participates in a transfer with Pancakeswap. A separate fee structure can be set by the team to apply different fee percentages depending on whether the user is buying or selling during the transfer.
- The tokens collected from the liquidity fee during transfers are stored in the contract address balance. Once the threshold value of tokens (determined by the owner) is met, a swap will occur for the purpose of funding Pancakeswap liquidity.
- Liquidity-adds are funded by selling a portion of the tokens collected as fees (after the threshold number of tokens is met), then pairing the received BNB with the token, and adding it as liquidity to the BNB pair.
- The recipient of the newly created LP tokens is the Burn address.
- The tokens collected from the buyback fee are swapped for BNB and sent to the team's buyback wallet.
- The tokens collected from the marketing fee are swapped for BNB and sent to the team's marketing wallet.
- The contract features an anti-whale mechanism that, when enabled, enforces maximum transaction amounts for both buy and sell transfers with Pancakeswap.
- The contract also features a maximum wallet amount which ensures that a user's token balance does not exceed an amount of tokens (determined by the owner) after a buying transaction.
- The contract utilizes Safemath libraries to prevent overflows and complies with the BEP20 standard.
Ownership Controls:- Ownership has not been renounced.
- The owner can modify the liquidity fee, buyback fee, and marketing fee to any percentages as long as the total fees combined does not exceed 20%. This applies to both the buy and sell fee structures.
- The owner can exclude and include accounts from transfer fees.
- The owner can enable/disable automatic liquidity adds at any time.
- The owner can update the threshold value of tokens needed to perform automatic liquidity adds.
- The owner can enable/disable the anti-whale mechanism and set the maximum transaction amounts to any values up to 500 million tokens.
- The owner can exclude and include accounts from the anti-whale mechanism.
- The owner can manually add accounts to a blacklist which prevents them from being able to participate in transfers.
- The owner can set the maximum wallet amount to any value up to 500 million tokens.
- The owner can update the team's buyback wallet and marketing wallet to any addresses at any time.
- The owner can update the Automated Market Maker Pair and Pancakeswap Router addresses at any time.
- No external threats were identified.
- Please ensure trust in the team prior to investing as they have notable control in the ecosystem and own a large portion of the total supply.
- Date: December 4th, 2021
Audit Results
Vulnerability Category | Notes | Result |
---|---|---|
Arbitrary Storage Write | N/A | PASS |
Arbitrary Jump | N/A | PASS |
Centralization of Control | 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] _msgData
+ [Lib] SafeMathUint
- [Int] toInt256Safe
+ [Lib] SafeMathInt
- [Int] mul
- [Int] div
- [Int] sub
- [Int] add
- [Int] abs
- [Int] toUint256Safe
+ [Lib] SafeMath
- [Int] add
- [Int] sub
- [Int] sub
- [Int] mul
- [Int] div
- [Int] div
- [Int] mod
- [Int] mod
+ Ownable (Context)
- [Pub] #
- [Pub] owner
- [Pub] renounceOwnership #
- modifiers: onlyOwner
- [Pub] transferOwnership #
- modifiers: onlyOwner
+ [Int] IUniswapV2Router01
- [Ext] factory
- [Ext] WETH
- [Ext] addLiquidity #
- [Ext] addLiquidityETH ($)
- [Ext] removeLiquidity #
- [Ext] removeLiquidityETH #
- [Ext] removeLiquidityWithPermit #
- [Ext] removeLiquidityETHWithPermit #
- [Ext] swapExactTokensForTokens #
- [Ext] swapTokensForExactTokens #
- [Ext] swapExactETHForTokens ($)
- [Ext] swapTokensForExactETH #
- [Ext] swapExactTokensForETH #
- [Ext] swapETHForExactTokens ($)
- [Ext] quote
- [Ext] getAmountOut
- [Ext] getAmountIn
- [Ext] getAmountsOut
- [Ext] getAmountsIn
+ [Int] IUniswapV2Router02 (IUniswapV2Router01)
- [Ext] removeLiquidityETHSupportingFeeOnTransferTokens #
- [Ext] removeLiquidityETHWithPermitSupportingFeeOnTransferTokens #
- [Ext] swapExactTokensForTokensSupportingFeeOnTransferTokens #
- [Ext] swapExactETHForTokensSupportingFeeOnTransferTokens ($)
- [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
+ [Int] IUniswapV2Pair
- [Ext] name
- [Ext] symbol
- [Ext] decimals
- [Ext] totalSupply
- [Ext] balanceOf
- [Ext] allowance
- [Ext] approve #
- [Ext] transfer #
- [Ext] transferFrom #
- [Ext] DOMAIN_SEPARATOR
- [Ext] PERMIT_TYPEHASH
- [Ext] nonces
- [Ext] permit #
- [Ext] MINIMUM_LIQUIDITY
- [Ext] factory
- [Ext] token0
- [Ext] token1
- [Ext] getReserves
- [Ext] price0CumulativeLast
- [Ext] price1CumulativeLast
- [Ext] kLast
- [Ext] mint #
- [Ext] burn #
- [Ext] swap #
- [Ext] skim #
- [Ext] sync #
- [Ext] initialize #
+ [Int] IUniswapV2Factory
- [Ext] feeTo
- [Ext] feeToSetter
- [Ext] getPair
- [Ext] allPairs
- [Ext] allPairsLength
- [Ext] createPair #
- [Ext] setFeeTo #
- [Ext] setFeeToSetter #
+ [Int] IERC20
- [Ext] totalSupply
- [Ext] balanceOf
- [Ext] transfer #
- [Ext] allowance
- [Ext] approve #
- [Ext] transferFrom #
+ [Int] IERC20Metadata (IERC20)
- [Ext] name
- [Ext] symbol
- [Ext] decimals
+ ERC20 (Context, IERC20, IERC20Metadata)
- [Pub] #
- [Pub] name
- [Pub] symbol
- [Pub] decimals
- [Pub] totalSupply
- [Pub] balanceOf
- [Pub] transfer #
- [Pub] allowance
- [Pub] approve #
- [Pub] transferFrom #
- [Pub] increaseAllowance #
- [Pub] decreaseAllowance #
- [Int] _transfer #
- [Int] _mint #
- [Int] _burn #
- [Int] _approve #
- [Int] _beforeTokenTransfer #
+ SmartLauncher (ERC20, Ownable)
- [Pub] #
- modifiers: ERC20
- [Ext] ($)
- [Pub] setExcludedFromAntiWhale #
- modifiers: onlyOwner
- [Pub] isExcludedFromAntiWhale
- [Pub] updateUniswapV2Router #
- modifiers: onlyOwner
- [Pub] excludeFromFees #
- modifiers: onlyOwner
- [Pub] excludeMultipleAccountsFromFees #
- modifiers: onlyOwner
- [Ext] setSwapTokensAtAmount #
- modifiers: onlyOwner
- [Ext] setMarketingWallet #
- modifiers: onlyOwner
- [Ext] setBuybackWallet #
- modifiers: onlyOwner
- [Pub] setSellFees #
- modifiers: onlyOwner
- [Pub] setBuyFees #
- modifiers: onlyOwner
- [Pub] setAutomatedMarketMakerPair #
- modifiers: onlyOwner
- [Ext] blacklistAddress #
- modifiers: onlyOwner
- [Prv] _setAutomatedMarketMakerPair #
- [Int] _transfer #
- modifiers: antiWhale
- [Int] setFeesOnBuy #
- [Int] setFeesOnSell #
- [Pub] setEnableAntiwhale #
- modifiers: onlyOwner
- [Pub] maxTransferAmountBuy
- [Pub] maxWalletBalanceAmount
- [Pub] setMaxWalletBalanceAmountRate #
- modifiers: onlyOwner
- [Pub] setMaxTransferAmountRateBuy #
- modifiers: onlyOwner
- [Pub] maxTransferAmountSell
- [Pub] setMaxTransferAmountRateSell #
- modifiers: onlyOwner
- [Prv] sendToFee #
- [Prv] sendToBuyback #
- [Prv] swapAndLiquify #
- [Prv] swapTokensForEth #
- [Prv] addLiquidity #