WineProtocol's vision is to create an interactive ecosystem that will allow the community to interact with the wine world through the use of an innovative application. The ultimate aim of the project is to create a decentralized digital marketplace that exploits the use of a utility token.
Reentrancy in Wine._transfer(address,address,uint256) (#1067-1172):
External calls:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
External calls sending eth:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
State variables written after the call(s):
- swapping = false (#1134)
Reentrancy in Wine._transfer(address,address,uint256) (#1067-1172):
External calls:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
- autoBurnLiquidityPairTokens() (#1138)
- pair.sync() (#1274)
External calls sending eth:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
State variables written after the call(s):
- autoBurnLiquidityPairTokens() (#1138)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#364)
- _balances[recipient] = _balances[recipient].add(amount) (#365)
- super._transfer(from,address(this),fees) (#1165)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#364)
- _balances[recipient] = _balances[recipient].add(amount) (#365)
- super._transfer(from,to,amount) (#1171)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#364)
- _balances[recipient] = _balances[recipient].add(amount) (#365)
- tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees (#1154)
- tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees (#1160)
- tokensForMarketing += fees * sellMarketingFee / sellTotalFees (#1155)
- tokensForMarketing += fees * buyMarketingFee / buyTotalFees (#1161)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Wine.swapBack() (#1211-1247) uses a dangerous strict equality:
- contractBalance == 0 || totalTokensToSwap == 0 (#1216)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Wine.setAutoLPBurnSettings(uint256,uint256,bool) (#1249-1255) contains a tautology or contradiction:
- require(bool,string)(_percent <= 1000 && _percent >= 0,Must set auto LP burn percent between 0% and 10%) (#1251)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Wine._transfer(address,address,uint256) (#1067-1172) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1153)
-tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees (#1154)
Wine._transfer(address,address,uint256) (#1067-1172) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1153)
-tokensForMarketing += fees * sellMarketingFee / sellTotalFees (#1155)
Wine._transfer(address,address,uint256) (#1067-1172) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1159)
-tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees (#1160)
Wine._transfer(address,address,uint256) (#1067-1172) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1159)
-tokensForMarketing += fees * buyMarketingFee / buyTotalFees (#1161)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in Wine.swapBack() (#1211-1247):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1228)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
State variables written after the call(s):
- tokensForLiquidity = 0 (#1237)
- tokensForMarketing = 0 (#1238)
Apply the check-effects-interactions pattern.
Additional information: link
Wine._transfer(address,address,uint256) (#1067-1172) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1095)
Do not use tx.origin for authorization.
Additional information: link
Wine.addLiquidity(uint256,uint256) (#1196-1209) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
Ensure that all the return values of the function calls are used.
Additional information: link
Wine.constructor().totalSupply (#943) shadows:
- ERC20.totalSupply() (#238-240) (function)
- IERC20.totalSupply() (#88) (function)
Rename the local variables that shadow another component.
Additional information: link
Wine.updateSwapTokensAtAmount(uint256) (#999-1004) should emit an event for:
- swapTokensAtAmount = newAmount (#1002)
Wine.updateMaxTxnAmount(uint256) (#1006-1009) should emit an event for:
- maxTransactionAmount = newNum * (10 ** 18) (#1008)
Wine.updateMaxWalletAmount(uint256) (#1011-1014) should emit an event for:
- maxWallet = newNum * (10 ** 18) (#1013)
Wine.updateBuyFees(uint256,uint256,uint256) (#1025-1030) should emit an event for:
- buyMarketingFee = _marketingFee (#1026)
- buyLiquidityFee = _liquidityFee (#1027)
- buyTotalFees = buyMarketingFee + buyLiquidityFee (#1028)
Wine.updateSellFees(uint256,uint256,uint256) (#1032-1037) should emit an event for:
- sellMarketingFee = _marketingFee (#1033)
- sellLiquidityFee = _liquidityFee (#1034)
- sellTotalFees = sellMarketingFee + sellLiquidityFee (#1035)
Wine.setAutoLPBurnSettings(uint256,uint256,bool) (#1249-1255) should emit an event for:
- lpBurnFrequency = _frequencyInSeconds (#1252)
- percentForLPBurn = _percent (#1253)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in Wine.constructor() (#926-973):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#933)
State variables written after the call(s):
- _mint(msg.sender,totalSupply) (#972)
- _balances[account] = _balances[account].add(amount) (#384)
- excludeFromFees(owner(),true) (#960)
- _isExcludedFromFees[account] = excluded (#1040)
- excludeFromFees(address(this),true) (#961)
- _isExcludedFromFees[account] = excluded (#1040)
- excludeFromFees(address(0xdead),true) (#962)
- _isExcludedFromFees[account] = excluded (#1040)
- excludeFromMaxTransaction(address(uniswapV2Pair),true) (#934)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1017)
- excludeFromMaxTransaction(owner(),true) (#964)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1017)
- excludeFromMaxTransaction(address(this),true) (#965)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1017)
- excludeFromMaxTransaction(address(0xdead),true) (#966)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1017)
- _mint(msg.sender,totalSupply) (#972)
- _totalSupply = _totalSupply.add(amount) (#383)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#935)
- automatedMarketMakerPairs[pair] = value (#1051)
- buyLiquidityFee = _buyLiquidityFee (#950)
- buyMarketingFee = _buyMarketingFee (#949)
- buyTotalFees = buyMarketingFee + buyLiquidityFee (#951)
- marketingWallet = address(owner()) (#957)
- maxTransactionAmount = totalSupply * 1 / 1000 (#945)
- maxWallet = totalSupply * 5 / 1000 (#946)
- sellLiquidityFee = _sellLiquidityFee (#954)
- sellMarketingFee = _sellMarketingFee (#953)
- sellTotalFees = sellMarketingFee + sellLiquidityFee (#955)
- swapTokensAtAmount = totalSupply * 5 / 10000 (#947)
Reentrancy in Wine.swapBack() (#1211-1247):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1228)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
External calls sending eth:
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
State variables written after the call(s):
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- _allowances[owner][spender] = amount (#430)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Wine._transfer(address,address,uint256) (#1067-1172):
External calls:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
- autoBurnLiquidityPairTokens() (#1138)
- pair.sync() (#1274)
External calls sending eth:
- swapBack() (#1132)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
Event emitted after the call(s):
- AutoNukeLP() (#1275)
- autoBurnLiquidityPairTokens() (#1138)
- Transfer(sender,recipient,amount) (#366)
- autoBurnLiquidityPairTokens() (#1138)
- Transfer(sender,recipient,amount) (#366)
- super._transfer(from,to,amount) (#1171)
- Transfer(sender,recipient,amount) (#366)
- super._transfer(from,address(this),fees) (#1165)
Reentrancy in Wine.autoBurnLiquidityPairTokens() (#1257-1277):
External calls:
- pair.sync() (#1274)
Event emitted after the call(s):
- AutoNukeLP() (#1275)
Reentrancy in Wine.constructor() (#926-973):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#933)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1041)
- excludeFromFees(address(0xdead),true) (#962)
- ExcludeFromFees(account,excluded) (#1041)
- excludeFromFees(address(this),true) (#961)
- ExcludeFromFees(account,excluded) (#1041)
- excludeFromFees(owner(),true) (#960)
- SetAutomatedMarketMakerPair(pair,value) (#1053)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#935)
- Transfer(address(0),account,amount) (#385)
- _mint(msg.sender,totalSupply) (#972)
Reentrancy in Wine.manualBurnLiquidityPairTokens(uint256) (#1279-1300):
External calls:
- pair.sync() (#1297)
Event emitted after the call(s):
- ManualNukeLP() (#1298)
Reentrancy in Wine.swapBack() (#1211-1247):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1228)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1184-1190)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
External calls sending eth:
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1201-1208)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#431)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1241)
- SwapAndLiquify(amountToSwapForETH,ethForLiquidity,tokensForLiquidity) (#1242)
Apply the check-effects-interactions pattern.
Additional information: link
Wine._transfer(address,address,uint256) (#1067-1172) uses timestamp for comparisons
Dangerous comparisons:
- ! swapping && automatedMarketMakerPairs[to] && lpBurnEnabled && block.timestamp >= lastLpBurnTime + lpBurnFrequency && ! _isExcludedFromFees[from] (#1137)
Wine.manualBurnLiquidityPairTokens(uint256) (#1279-1300) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > lastManualLpBurnTime + manualBurnFrequency,Must wait for cooldown to finish) (#1280)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#11-14) is never used and should be removed
ERC20._burn(address,uint256) (#399-407) is never used and should be removed
SafeMath.mod(uint256,uint256) (#576-578) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#592-595) is never used and should be removed
SafeMathInt.abs(int256) (#700-703) is never used and should be removed
SafeMathInt.add(int256,int256) (#691-695) is never used and should be removed
SafeMathInt.div(int256,int256) (#671-677) is never used and should be removed
SafeMathInt.mul(int256,int256) (#659-666) is never used and should be removed
SafeMathInt.sub(int256,int256) (#682-686) is never used and should be removed
SafeMathInt.toUint256Safe(int256) (#706-709) is never used and should be removed
SafeMathUint.toInt256Safe(uint256) (#713-717) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version0.8.9 (#4) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 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
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#32) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#33) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#50) is not in mixedCase
Function IUniswapV2Router01.WETH() (#723) is not in mixedCase
Event WinemarketingWalletUpdated(address,address) (#914) is not in CapWords
Parameter Wine.updateBuyFees(uint256,uint256,uint256)._marketingFee (#1025) is not in mixedCase
Parameter Wine.updateBuyFees(uint256,uint256,uint256)._liquidityFee (#1025) is not in mixedCase
Parameter Wine.updateSellFees(uint256,uint256,uint256)._marketingFee (#1032) is not in mixedCase
Parameter Wine.updateSellFees(uint256,uint256,uint256)._liquidityFee (#1032) is not in mixedCase
Parameter Wine.setAutoLPBurnSettings(uint256,uint256,bool)._frequencyInSeconds (#1249) is not in mixedCase
Parameter Wine.setAutoLPBurnSettings(uint256,uint256,bool)._percent (#1249) is not in mixedCase
Parameter Wine.setAutoLPBurnSettings(uint256,uint256,bool)._Enabled (#1249) is not in mixedCase
Constant Wine.deadAddress (#861) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Wine._isExcludedMaxTransactionAmount (#902) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#728) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#729)
Prevent variables from having similar names.
Additional information: link
Wine.constructor() (#926-973) uses literals with too many digits:
- totalSupply = 400000000 * 1e18 (#943)
Wine.updateSwapTokensAtAmount(uint256) (#999-1004) uses literals with too many digits:
- require(bool,string)(newAmount >= totalSupply() * 1 / 100000,Swap amount cannot be lower than 0.001% total supply.) (#1000)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#654) is never used in SafeMathInt (#652-710)
Remove unused state variables.
Additional information: link
Wine.manualBurnFrequency (#876) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#206-208)
symbol() should be declared external:
- ERC20.symbol() (#214-216)
decimals() should be declared external:
- ERC20.decimals() (#231-233)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#257-260)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#265-267)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#276-279)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#294-302)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#316-319)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#335-338)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#634-637)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#643-647)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- Wine.setAutomatedMarketMakerPair(address,bool) (#1044-1048)
isExcludedFromFees(address) should be declared external:
- Wine.isExcludedFromFees(address) (#1061-1063)
Use the external attribute for functions never called from the contract.
Additional information: link
Wine.updateMarketingWallet(address).newMarketingWallet (#1056) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#1058)
Check that the address is not zero.
Additional information: link
Redundant expression "this (#12)" inContext (#6-15)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Low level call in Wine.swapBack() (#1211-1247):
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1246)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
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
Twitter account has less than 100 followers
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts