Betswamp is a decentralized peer-to-peer iGaming platform built on Binance smart chain. The platform completely takes out the traditional odds and booking system found in conventional centralized platforms and provide gamers the flexibility to create betting events on any category and terms of choice that other players can wager on, hence offering no limitation on the types of event created nor the size of the reward pool attached to the event.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in BETS._transfer(address,address,uint256) (#912-994):
External calls:
- swapAndLiquify(_liquidityTokens) (#966)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1132-1138)
- swapAndSendFee(marketingTokens,marketing_wallet_address) (#969)
- (success) = feeAddress.call{value: newBalance}() (#1147)
- _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1132-1138)
External calls sending eth:
- swapAndLiquify(_liquidityTokens) (#966)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- address(marketing_wallet_address).transfer(ethAmount - ethFromLiquidity) (#1181-1183)
- swapAndSendFee(marketingTokens,marketing_wallet_address) (#969)
- (success) = feeAddress.call{value: newBalance}() (#1147)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient balance.) (#988-991)
- _balances[recipient] = _balances[recipient].add(amount) (#992)
- _betswamp_addresses[sender] = block.timestamp + 2419200 (#983)
- _isSwapping = false (#971)
Apply the check-effects-interactions pattern.
Additional information: link
BETS._transfer(address,address,uint256) (#912-994) performs a multiplication on the result of a division:
-amount > (_balances[sender] / 100) * 2 (#979)
Consider ordering multiplication before division.
Additional information: link
BETS.allowance(address,address)._owner (#999) shadows:
- Ownable._owner (#166) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BETS.updateMarketingWalletAddress(address)._marketing_wallet_address (#1216) lacks a zero-check on :
- marketing_wallet_address = address(_marketing_wallet_address) (#1221)
Check that the address is not zero.
Additional information: link
Reentrancy in BETS.transferFrom(address,address,uint256) (#1056-1067):
External calls:
- _transfer(sender,recipient,amount) (#1061)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- (success) = feeAddress.call{value: newBalance}() (#1147)
- _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1132-1138)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1061)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- (success) = feeAddress.call{value: newBalance}() (#1147)
- address(marketing_wallet_address).transfer(ethAmount - ethFromLiquidity) (#1181-1183)
State variables written after the call(s):
- _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount,Amount exceeds allowance) (#1062-1065)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BETS.swapAndLiquify(uint256) (#1151-1163):
External calls:
- newBalance = swapTokens(half) (#1157)
- _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1132-1138)
- addLiquidity(otherHalf,newBalance) (#1160)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1160)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- address(marketing_wallet_address).transfer(ethAmount - ethFromLiquidity) (#1181-1183)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1045)
- addLiquidity(otherHalf,newBalance) (#1160)
- SwapAndLiquify(half,newBalance,otherHalf) (#1162)
Apply the check-effects-interactions pattern.
Additional information: link
BETS.addLiquidity(uint256,uint256) (#1165-1184) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#1180)
Avoid relying on block.timestamp.
Additional information: link
BETS._transfer(address,address,uint256) (#912-994) compares to a boolean constant:
-_full_withdrawal_betswamp_address[sender] != true (#977)
Remove the equality to the boolean constant.
Additional information: link
SafeMath.mul(uint256,uint256) (#71-83) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.7 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 BETS.swapAndSendFee(uint256,address) (#1143-1149):
- (success) = feeAddress.call{value: newBalance}() (#1147)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable BETS._liquidity_sell_tax (#704) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in BETS.transferFrom(address,address,uint256) (#1056-1067):
External calls:
- _transfer(sender,recipient,amount) (#1061)
- address(marketing_wallet_address).transfer(ethAmount - ethFromLiquidity) (#1181-1183)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1061)
- (ethFromLiquidity) = _uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1170-1179)
- (success) = feeAddress.call{value: newBalance}() (#1147)
- address(marketing_wallet_address).transfer(ethAmount - ethFromLiquidity) (#1181-1183)
State variables written after the call(s):
- _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount,Amount exceeds allowance) (#1062-1065)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#474) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#475)
Prevent variables from having similar names.
Additional information: link
BETS.constructor(address,address,address,address,address,address,address,address,address,address,address) (#720-829) uses literals with too many digits:
- _totalSupply = 250000000 * 10 ** 18 (#736)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BETS.swapTokensAtAmount (#707) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
setAutoMarketMakerPair(address,bool) should be declared external:
- BETS.setAutoMarketMakerPair(address,bool) (#1235-1244)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is low.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
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 verify token contract address on the website
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of price dump / death
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
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account