SWAPP Protocol is a **MultiChain** smart Contract that has been launched on **Ethereum (ERC-20)** and **Binance Smart Chain (BEP-20)**.
SWAPP is a decentralized, fairly launched, ETH and BNB paired utility token used to both facilitate yield farming rewards in the SWAPP DeFi platform as well as serve as the form of rewards within the SWAPP smartphone app and browser extensions.
The purpose of the SWAPP Token is two-sided (yes, like a coin!):
The DeFi Launch - The initial purpose of SWAPP is to create a thriving DeFi ecosystem consisting of token holders who can participate in various forms of yield farming and who will ultimately become founding users of the forthcoming SWAPP mobile app.
The SWAPP Mobile App - Upon launch of the subsequent SWAPP mobile app, users will then enjoy powerful, new features including turn-key data monetization and privacy-enhancing capabilities.
SwappToken.getTokens(address,address) (#730-735) ignores return value by IERC20(tokenAddress).transfer(to,balance) (#733)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Reentrancy in SwappToken._transfer(address,address,uint256) (#497-540):
External calls:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
External calls sending eth:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
State variables written after the call(s):
- _balances[sender] = senderBalance - amount (#515)
- fee_scope_0 = takeLiquidityFee(sender,recipient,amount) (#533)
- _balances[address(this)] += fee (#548)
- _balances[recipient] += amount (#535)
Reentrancy in SwappToken._transfer(address,address,uint256) (#497-540):
External calls:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- (sBalance,rBalance,taxAmount,recipientAmount) = GuardianInterface(guardian).checkTransfer(sender,recipient,amount,_balances[sender],_balances[recipient]) (#519-520)
External calls sending eth:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
State variables written after the call(s):
- _balances[sender] = sBalance (#522)
- fee = takeLiquidityFee(sender,recipient,amount) (#523)
- _balances[address(this)] += fee (#548)
- _balances[recipient] = rBalance - fee (#524)
- _balances[taxer] += taxAmount (#528)
Apply the check-effects-interactions pattern.
Additional information: link
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.
SwappToken.addLiquidity(uint256,uint256) (#818-831) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
Ensure that all the return values of the function calls are used.
Additional information: link
SwappToken.allowance(address,address).owner (#379) shadows:
- Ownable.owner() (#152-154) (function)
SwappToken._approve(address,address,uint256).owner (#618) shadows:
- Ownable.owner() (#152-154) (function)
Rename the local variables that shadow another component.
Additional information: link
SwappToken.setLiquidityFeePercent(uint256) (#713-715) should emit an event for:
- liquidityFee = _liquidityFee (#714)
SwappToken.setMaxTxAmount(uint256) (#722-724) should emit an event for:
- maxTxAmount = amount (#723)
SwappToken.setNumTokensSellToAddToLiquidity(uint256) (#726-728) should emit an event for:
- _numTokensSellToAddToLiquidity = amount (#727)
Emit an event for critical parameter changes.
Additional information: link
SwappToken.setGuardian(address)._guardian (#760) lacks a zero-check on :
- guardian = _guardian (#761)
SwappToken.setTaxer(address)._taxer (#764) lacks a zero-check on :
- taxer = _taxer (#765)
Check that the address is not zero.
Additional information: link
Reentrancy in SwappToken.constructor() (#301-315):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#311)
State variables written after the call(s):
- uniswapV2Router = _uniswapV2Router (#312)
- wallet = 0xcF00d2403C08Ef845b6C9CB215D4FaAd3E18C71e (#314)
Reentrancy in SwappToken.swapAndLiquify(uint256) (#777-798):
External calls:
- swapTokensForBaseCurrency(half) (#789)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- addLiquidity(otherHalf,newBalance) (#795)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#795)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#795)
- _allowances[owner][spender] = amount (#625)
Reentrancy in SwappToken.transferFrom(address,address,uint256) (#408-422):
External calls:
- _transfer(sender,recipient,amount) (#413)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- (sBalance,rBalance,taxAmount,recipientAmount) = GuardianInterface(guardian).checkTransfer(sender,recipient,amount,_balances[sender],_balances[recipient]) (#519-520)
External calls sending eth:
- _transfer(sender,recipient,amount) (#413)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#418)
- _allowances[owner][spender] = amount (#625)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SwappToken._transfer(address,address,uint256) (#497-540):
External calls:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- (sBalance,rBalance,taxAmount,recipientAmount) = GuardianInterface(guardian).checkTransfer(sender,recipient,amount,_balances[sender],_balances[recipient]) (#519-520)
External calls sending eth:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
Event emitted after the call(s):
- Transfer(sender,address(this),fee) (#549)
- fee = takeLiquidityFee(sender,recipient,amount) (#523)
- Transfer(sender,taxer,taxAmount) (#529)
- Transfer(sender,recipient,recipientAmount) (#531)
Reentrancy in SwappToken._transfer(address,address,uint256) (#497-540):
External calls:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
External calls sending eth:
- _handleLiquidity(sender) (#512)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
Event emitted after the call(s):
- Transfer(sender,address(this),fee) (#549)
- fee_scope_0 = takeLiquidityFee(sender,recipient,amount) (#533)
- Transfer(sender,recipient,amount) (#536)
Reentrancy in SwappToken.swapAndLiquify(uint256) (#777-798):
External calls:
- swapTokensForBaseCurrency(half) (#789)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- addLiquidity(otherHalf,newBalance) (#795)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#795)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#626)
- addLiquidity(otherHalf,newBalance) (#795)
- SwapAndLiquify(half,newBalance,otherHalf) (#797)
Reentrancy in SwappToken.transferFrom(address,address,uint256) (#408-422):
External calls:
- _transfer(sender,recipient,amount) (#413)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#809-815)
- (sBalance,rBalance,taxAmount,recipientAmount) = GuardianInterface(guardian).checkTransfer(sender,recipient,amount,_balances[sender],_balances[recipient]) (#519-520)
External calls sending eth:
- _transfer(sender,recipient,amount) (#413)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#823-830)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#626)
- _approve(sender,_msgSender(),currentAllowance - amount) (#418)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#120-122) is never used and should be removed
Remove unused functions.
Additional information: link
SwappToken._previousLiquidityFee (#262) is set pre-construction with a non-constant function or state variable:
- liquidityFee
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.8.0 (#3) allows old versions
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
Function IUniswapV2Router01.WETH() (#197) is not in mixedCase
Parameter SwappToken.setLiquidityFeePercent(uint256)._liquidityFee (#713) is not in mixedCase
Parameter SwappToken.setSwapAndLiquifyEnabled(bool)._enabled (#717) is not in mixedCase
Parameter SwappToken.setGuardian(address)._guardian (#760) is not in mixedCase
Parameter SwappToken.setTaxer(address)._taxer (#764) is not in mixedCase
Parameter SwappToken.pause(bool)._paused (#768) is not in mixedCase
Parameter SwappToken.calculateLiquidityFee(uint256)._amount (#773) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
SwappToken.slitherConstructorVariables() (#248-833) uses literals with too many digits:
- maxTxAmount = 5000000000000000000000000 (#267)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SwappToken._previousLiquidityFee (#262) is never used in SwappToken (#248-833)
Remove unused state variables.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#171-173)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#179-182)
name() should be declared external:
- SwappToken.name() (#320-322)
symbol() should be declared external:
- SwappToken.symbol() (#328-330)
decimals() should be declared external:
- SwappToken.decimals() (#345-347)
totalSupply() should be declared external:
- SwappToken.totalSupply() (#352-354)
transfer(address,uint256) should be declared external:
- SwappToken.transfer(address,uint256) (#371-374)
allowance(address,address) should be declared external:
- SwappToken.allowance(address,address) (#379-381)
approve(address,uint256) should be declared external:
- SwappToken.approve(address,uint256) (#390-393)
transferFrom(address,address,uint256) should be declared external:
- SwappToken.transferFrom(address,address,uint256) (#408-422)
increaseAllowance(address,uint256) should be declared external:
- SwappToken.increaseAllowance(address,uint256) (#436-439)
decreaseAllowance(address,uint256) should be declared external:
- SwappToken.decreaseAllowance(address,uint256) (#455-463)
mint(address,uint256) should be declared external:
- SwappToken.mint(address,uint256) (#470-472)
burn(uint256) should be declared external:
- SwappToken.burn(uint256) (#479-481)
handleLiquidity() should be declared external:
- SwappToken.handleLiquidity() (#693-695)
excludeFromFee(address) should be declared external:
- SwappToken.excludeFromFee(address) (#700-702)
includeInFee(address) should be declared external:
- SwappToken.includeInFee(address) (#704-706)
isExcludedFromFee(address) should be declared external:
- SwappToken.isExcludedFromFee(address) (#708-710)
setSwapAndLiquifyEnabled(bool) should be declared external:
- SwappToken.setSwapAndLiquifyEnabled(bool) (#717-720)
Use the external attribute for functions never called from the contract.
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
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Discord account