President Inu Token Logo

PRESIDENT [President Inu] Token

About PRESIDENT

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Laser Scorebeta Last Audit: 17 February 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

PresidentInu.swapBack() (#592-641) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in PresidentInu._transferFrom(address,address,uint256) (#527-568):
External calls:
- swapBack() (#537)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
External calls sending eth:
- swapBack() (#537)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#545)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#553)
- finalAmount = takeFee(sender,recipient,amount) (#552)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#582)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.distributeDividend(address) (#242-254) ignores return value by RewardToken.transfer(shareholder,amount) (#248)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

PresidentInu.swapBack().tmpSuccess (#623) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
tmpSuccess = false (#627)
PresidentInu.swapBack().tmpSuccess1 (#624) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
tmpSuccess1 = false (#628)
Fix or remove the writes.

Additional information: link


Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

Reentrancy in DividendDistributor.distributeDividend(address) (#242-254):
External calls:
- RewardToken.transfer(shareholder,amount) (#248)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#250)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#251)
Reentrancy in DividendDistributor.process(uint256) (#213-235):
External calls:
- distributeDividend(shareholders[currentIndex]) (#227)
- RewardToken.transfer(shareholder,amount) (#248)
State variables written after the call(s):
- currentIndex ++ (#232)
Reentrancy in DividendDistributor.setShare(address,uint256) (#176-191):
External calls:
- distributeDividend(shareholder) (#179)
- RewardToken.transfer(shareholder,amount) (#248)
State variables written after the call(s):
- shares[shareholder].amount = amount (#189)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#190)
Apply the check-effects-interactions pattern.

Additional information: link

PresidentInu.swapBack() (#592-641) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#171-174) should emit an event for:
- minPeriod = newMinPeriod (#172)
- minDistribution = newMinDistribution (#173)
PresidentInu.changeFees(uint256,uint256,uint256,uint256) (#484-492) should emit an event for:
- liquidityFee = newLiqFee (#485)
- rewardsFee = newRewardFee (#486)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#490)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#491)
Emit an event for critical parameter changes.

Additional information: link

Ownable.transferOwnership(address).adr (#311) lacks a zero-check on :
- owner = adr (#312)
PresidentInu.changeFeeReceivers(address,address,address).newLiquidityReceiver (#494) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#495)
PresidentInu.changeFeeReceivers(address,address,address).newMarketingWallet (#494) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#496)
PresidentInu.changeFeeReceivers(address,address,address).newanothermarketingWallet (#494) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#497)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#242-254) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#248)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in PresidentInu._transferFrom(address,address,uint256) (#527-568):
External calls:
- swapBack() (#537)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
External calls sending eth:
- swapBack() (#537)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
State variables written after the call(s):
- launch() (#541)
- launchedAt = block.number (#450)
Reentrancy in PresidentInu.constructor() (#379-412):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#382)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#383)
- _balances[msg.sender] = _totalSupply (#410)
- anothermarketingWallet = msg.sender (#405)
- autoLiquidityReceiver = msg.sender (#403)
- dividendDistributor = new DividendDistributor(address(router)) (#385)
- isDividendExempt[pair] = true (#395)
- isDividendExempt[msg.sender] = true (#396)
- isDividendExempt[address(this)] = true (#397)
- isDividendExempt[DEAD] = true (#398)
- isDividendExempt[ZERO] = true (#399)
- isDividendExempt[TEAM] = true (#400)
- isFeeExempt[msg.sender] = true (#387)
- isFeeExempt[address(this)] = true (#388)
- isFeeExempt[TEAM] = true (#389)
- isTxLimitExempt[msg.sender] = true (#391)
- isTxLimitExempt[pair] = true (#392)
- isTxLimitExempt[TEAM] = true (#393)
- marketingWallet = msg.sender (#404)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#407)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#408)
Reentrancy in DividendDistributor.deposit() (#193-211):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#201-206)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#210)
- totalDividends = totalDividends.add(amount) (#209)
Reentrancy in DividendDistributor.distributeDividend(address) (#242-254):
External calls:
- RewardToken.transfer(shareholder,amount) (#248)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#249)
Reentrancy in DividendDistributor.setShare(address,uint256) (#176-191):
External calls:
- distributeDividend(shareholder) (#179)
- RewardToken.transfer(shareholder,amount) (#248)
State variables written after the call(s):
- addShareholder(shareholder) (#183)
- shareholderIndexes[shareholder] = shareholders.length (#272)
- removeShareholder(shareholder) (#185)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#278)
- addShareholder(shareholder) (#183)
- shareholders.push(shareholder) (#273)
- removeShareholder(shareholder) (#185)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#277)
- shareholders.pop() (#279)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#188)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in PresidentInu._transferFrom(address,address,uint256) (#527-568):
External calls:
- swapBack() (#537)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
- dividendDistributor.setShare(sender,_balances[sender]) (#557)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#561)
- dividendDistributor.process(distributorGas) (#564)
External calls sending eth:
- swapBack() (#537)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#566)
Reentrancy in PresidentInu._transferFrom(address,address,uint256) (#527-568):
External calls:
- swapBack() (#537)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
External calls sending eth:
- swapBack() (#537)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#583)
- finalAmount = takeFee(sender,recipient,amount) (#552)
Reentrancy in PresidentInu.constructor() (#379-412):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#382)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#411)
Reentrancy in PresidentInu.swapBack() (#592-641):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#631-638)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#639)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#237-240) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#238-239)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#213-235) has costly operations inside a loop:
- currentIndex = 0 (#224)
DividendDistributor.distributeDividend(address) (#242-254) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#247)
DividendDistributor.process(uint256) (#213-235) has costly operations inside a loop:
- currentIndex ++ (#232)
Use a local variable to hold the loop computation result.

Additional information: link

PresidentInu._maxTxAmount (#334) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
PresidentInu._walletMax (#335) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
PresidentInu.swapThreshold (#371) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.

Additional information: link

Pragma version^0.7.4 (#11) allows old versions
solc-0.7.4 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.

Additional information: link

Low level call in PresidentInu.swapBack() (#592-641):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#623)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#624)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IDEXRouter.WETH() (#70) is not in mixedCase
Variable DividendDistributor._token (#127) is not in mixedCase
Variable DividendDistributor.RewardToken (#137) is not in mixedCase
Constant PresidentInu._name (#323) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PresidentInu._symbol (#324) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PresidentInu._decimals (#325) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PresidentInu.DEAD (#327) is not in mixedCase
Variable PresidentInu.ZERO (#328) is not in mixedCase
Variable PresidentInu.TEAM (#329) is not in mixedCase
Variable PresidentInu.RewardToken (#331) is not in mixedCase
Variable PresidentInu._totalSupply (#333) is not in mixedCase
Variable PresidentInu._maxTxAmount (#334) is not in mixedCase
Variable PresidentInu._walletMax (#335) is not in mixedCase
Variable PresidentInu._balances (#339) is not in mixedCase
Variable PresidentInu._allowances (#340) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#75) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#76)
Prevent variables from having similar names.

Additional information: link

PresidentInu.slitherConstructorVariables() (#319-646) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#327)
PresidentInu.slitherConstructorVariables() (#319-646) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#328)
PresidentInu.slitherConstructorVariables() (#319-646) uses literals with too many digits:
- _totalSupply = 1000000000000 * (10 ** _decimals) (#333)
PresidentInu.slitherConstructorVariables() (#319-646) uses literals with too many digits:
- distributorGas = 300000 (#365)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

PresidentInu.RewardToken (#331) is never used in PresidentInu (#319-646)
Remove unused state variables.

Additional information: link

DividendDistributor.dividendsPerShareAccuracyFactor (#148) should be constant
DividendDistributor.routerAddress (#136) should be constant
PresidentInu.DEAD (#327) should be constant
PresidentInu.RewardToken (#331) should be constant
PresidentInu.TEAM (#329) should be constant
PresidentInu.ZERO (#328) should be constant
PresidentInu._totalSupply (#333) should be constant
PresidentInu.routerAddress (#330) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#311-314)
getCirculatingSupply() should be declared external:
- PresidentInu.getCirculatingSupply() (#422-424)
claim() should be declared external:
- PresidentInu.claim() (#440-443)
tradingStatus(bool) should be declared external:
- PresidentInu.tradingStatus(bool) (#588-590)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Unable to find Twitter account


Telegram account has relatively few subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Unable to find website, listings and other project-related information


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for PRESIDENT