AnchorSwap Token Logo

ANCHOR [AnchorSwap] Token

About ANCHOR

Listings

Token 2 years
white paper

AnchorSwap is the first automatic liquidity acquisition yield farm and AMM decentralized exchange running on Binance Smart Chain with numerous creative features

Social

Laser Scorebeta Last Audit: 30 November 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

Anti-Scam

Links


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

AnchorToken.addLiquidity(uint256,uint256) (#1378-1391) sends eth to arbitrary user
Dangerous calls:
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in AnchorToken._transfer(address,address,uint256) (#1292-1323):
External calls:
- swapAndLiquify() (#1302)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
- AnchorSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1368-1374)
External calls sending eth:
- swapAndLiquify() (#1302)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1306)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1107)
- _balances[recipient] = _balances[recipient].add(amount) (#1108)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#1318)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1107)
- _balances[recipient] = _balances[recipient].add(amount) (#1108)
- super._transfer(sender,address(this),liquidityAmount) (#1319)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1107)
- _balances[recipient] = _balances[recipient].add(amount) (#1108)
- super._transfer(sender,recipient,sendAmount) (#1320)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1107)
- _balances[recipient] = _balances[recipient].add(amount) (#1108)
Apply the check-effects-interactions pattern.

Additional information: link

AnchorToken._writeCheckpoint(address,uint32,uint256,uint256) (#1693-1711) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1703)
Don't use strict equality to determine if an account has enough Ether or tokens.

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.

AnchorToken._transfer(address,address,uint256) (#1292-1323) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1309)
-burnAmount = taxAmount.mul(burnRate).div(100) (#1310)
Consider ordering multiplication before division.

Additional information: link

AnchorToken.addLiquidity(uint256,uint256) (#1378-1391) ignores return value by AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
Ensure that all the return values of the function calls are used.

Additional information: link

AnchorToken.swapAndLiquify().maxTransferAmount (#1328) shadows:
- AnchorToken.maxTransferAmount() (#1396-1398) (function)
Rename the local variables that shadow another component.

Additional information: link

Reentrancy in AnchorToken.swapAndLiquify() (#1326-1356):
External calls:
- swapTokensForEth(half) (#1346)
- AnchorSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1368-1374)
- addLiquidity(otherHalf,newBalance) (#1352)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1352)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1352)
- _allowances[owner][spender] = amount (#1169)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in AnchorToken.swapAndLiquify() (#1326-1356):
External calls:
- swapTokensForEth(half) (#1346)
- AnchorSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1368-1374)
- addLiquidity(otherHalf,newBalance) (#1352)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1352)
- AnchorSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1383-1390)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1170)
- addLiquidity(otherHalf,newBalance) (#1352)
- SwapAndLiquify(half,newBalance,otherHalf) (#1354)
Apply the check-effects-interactions pattern.

Additional information: link

AnchorToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1559-1600) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= expiry,Anchor::delegateBySig: signature expired) (#1598)
Avoid relying on block.timestamp.

Additional information: link

AnchorToken.getChainId() (#1718-1725) uses assembly
- INLINE ASM (#1720-1723)
Do not use evm assembly.

Additional information: link

AnchorToken.antiWhale(address,address,uint256) (#1247-1257) compares to a boolean constant:
-_excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false (#1250-1251)
Remove the equality to the boolean constant.

Additional information: link

Different versions of Solidity is used:
- Version used: ['>=0.4.0', '>=0.5.0', '>=0.6.12', '>=0.6.2', '^0.8.0']
- >=0.5.0 (#3)
- >=0.5.0 (#23)
- >=0.6.2 (#78)
- >=0.6.2 (#176)
- ^0.8.0 (#224)
- ^0.8.0 (#443)
- >=0.4.0 (#672)
- ^0.8.0 (#773)
- ^0.8.0 (#799)
- >=0.4.0 (#872)
- >=0.6.12 (#1193)
Use one Solidity version.

Additional information: link

SafeMath.trySub(uint256,uint256) (#474-479) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.8.0 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 Address.functionDelegateCall(address,bytes,string) (#399-408):
- (success,returndata) = target.delegatecall(data) (#406)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable AnchorToken._delegates (#1501) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#87) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#88)
Prevent variables from having similar names.

Additional information: link

AnchorToken.slitherConstructorConstantVariables() (#1203-1727) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#1212)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

transferOperator(address) should be declared external:
- AnchorToken.transferOperator(address) (#1488-1492)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token is deployed only at one blockchain


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute number of swaps.


Twitter account link seems to be invalid


Unable to find Youtube account


Unable to find Discord account


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token contract audit


Unable to find audit link on the website


Unable to find token on CoinHunt

Additional information: link


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


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


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Token has relatively low CoinGecko rank

Price for ANCHOR