Did you miss PIGS? or DOGS? Don't miss the Son of Pig!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in SonOfPig._transfer(address,address,uint256) (#1012-1063):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- devAddress.sendValue(devFee) (#1120)
- treasuryAddress.sendValue(treasuryFee) (#1121)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1062)
- _rOwned[address(this)] += rToSwap (#919)
- _rOwned[sender] -= s.rAmount (#1081)
- _rOwned[recipient] += s.rTransferAmount (#1082)
- _tokenTransfer(from,to,amount,takeFee) (#1062)
- _rTotal -= rRfi (#914)
- _tokenTransfer(from,to,amount,takeFee) (#1062)
- _tOwned[sender] -= tAmount (#1075)
- _tOwned[address(this)] += tToSwap (#920)
- _tOwned[recipient] += s.tTransferAmount (#1078)
Reentrancy in SonOfPig.transferFrom(address,address,uint256) (#767-784):
External calls:
- _transfer(sender,recipient,amount) (#772)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- devAddress.sendValue(devFee) (#1120)
- treasuryAddress.sendValue(treasuryFee) (#1121)
External calls sending eth:
- _transfer(sender,recipient,amount) (#772)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#780)
- _allowances[owner][spender] = amount (#1008)
Apply the check-effects-interactions pattern.
Additional information: link
SonOfPig.rescueAnyBEP20Tokens(address,address,uint256) (#1243-1245) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#1244)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
Contract ticker ($OINKOINK) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
SonOfPig.addLiquidity(uint256,uint256) (#1144-1155) ignores return value by UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
Ensure that all the return values of the function calls are used.
Additional information: link
SonOfPig.allowance(address,address).owner (#749) shadows:
- Ownable.owner() (#72-74) (function)
SonOfPig._approve(address,address,uint256).owner (#1002) shadows:
- Ownable.owner() (#72-74) (function)
Rename the local variables that shadow another component.
Additional information: link
SonOfPig.setMaxTransactionAmount(uint256,uint256) (#1199-1205) should emit an event for:
- maxTxAmountBuy = _tTotal / _maxTxAmountBuyPct (#1203)
- maxTxAmountSell = _tTotal / _maxTxAmountSellPct (#1204)
SonOfPig.setNumTokensSellToAddToLiq(uint256) (#1207-1212) should emit an event for:
- numTokensSellToAddToLiquidity = amountTokens * 10 ** _decimals (#1211)
Emit an event for critical parameter changes.
Additional information: link
SonOfPig.setTreasuryAddress(address)._treasuryAddress (#1214) lacks a zero-check on :
- treasuryAddress = _treasuryAddress (#1218)
SonOfPig.setDevAddress(address)._devAddress (#1221) lacks a zero-check on :
- devAddress = _devAddress (#1222)
SonOfPig.manualSwapPercentage(uint256,address).toAddress (#1230) lacks a zero-check on :
- wAddress = address(toAddress) (#1233)
Check that the address is not zero.
Additional information: link
Reentrancy in SonOfPig._transfer(address,address,uint256) (#1012-1063):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- devAddress.sendValue(devFee) (#1120)
- treasuryAddress.sendValue(treasuryFee) (#1121)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1062)
- totFeesPaid.rfi += tRfi (#915)
- totFeesPaid.toSwap += tToSwap (#921)
Reentrancy in SonOfPig.constructor() (#690-715):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#694)
State variables written after the call(s):
- UniswapV2Router = _UniswapV2Router (#697)
- _isExcludedFromFee[owner()] = true (#702)
- _isExcludedFromFee[treasuryAddress] = true (#703)
- _isExcludedFromFee[devAddress] = true (#704)
- _isExcludedFromFee[address(this)] = true (#705)
- _isExcludedFromMaxWallet[owner()] = true (#707)
- _isExcludedFromMaxWallet[treasuryAddress] = true (#708)
- _isExcludedFromMaxWallet[devAddress] = true (#709)
- _isExcludedFromMaxWallet[address(this)] = true (#710)
- _isExcludedFromMaxWallet[uniswapPair] = true (#712)
- _rOwned[owner()] = _rTotal (#698)
- devAddress = address(msg.sender) (#700)
- isAutomatedMarketMakerPair[uniswapPair] = true (#695)
- treasuryAddress = address(msg.sender) (#699)
- wAddress = address(msg.sender) (#701)
Reentrancy in SonOfPig.manualSwapPercentage(uint256,address) (#1230-1236):
External calls:
- swapTokensForETH(tokenstosell) (#1232)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
State variables written after the call(s):
- ttk = address(this).balance (#1234)
- wAddress = address(toAddress) (#1233)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SonOfPig._transfer(address,address,uint256) (#1012-1063):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- devAddress.sendValue(devFee) (#1120)
- treasuryAddress.sendValue(treasuryFee) (#1121)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1059)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tToSwap) (#1086)
- _tokenTransfer(from,to,amount,takeFee) (#1062)
- Transfer(sender,recipient,s.tTransferAmount) (#1093)
- _tokenTransfer(from,to,amount,takeFee) (#1062)
Reentrancy in SonOfPig.addLiquidity(uint256,uint256) (#1144-1155):
External calls:
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1154)
Reentrancy in SonOfPig.constructor() (#690-715):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#694)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(uniswapPair,true) (#696)
- Transfer(address(0),owner(),_tTotal) (#714)
Reentrancy in SonOfPig.swapAndLiquify(uint256) (#1096-1122):
External calls:
- swapTokensForETH(toSwap) (#1105)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1112)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1112)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1154)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1112)
Reentrancy in SonOfPig.transferFrom(address,address,uint256) (#767-784):
External calls:
- _transfer(sender,recipient,amount) (#772)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1135-1141)
- devAddress.sendValue(devFee) (#1120)
- treasuryAddress.sendValue(treasuryFee) (#1121)
External calls sending eth:
- _transfer(sender,recipient,amount) (#772)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1146-1153)
- (success) = recipient.call{value: amount}() (#417)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1009)
- _approve(sender,_msgSender(),currentAllowance - amount) (#780)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#386-396) uses assembly
- INLINE ASM (#392-394)
Address.verifyCallResult(bool,bytes,string) (#555-575) uses assembly
- INLINE ASM (#567-570)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0']
- ^0.8.0 (#18)
- ^0.8.0 (#43)
- ^0.8.0 (#114)
- >=0.6.2 (#197)
- >=0.6.2 (#296)
- >=0.5.0 (#342)
- ^0.8.0 (#363)
- ^0.8.0 (#580)
Use one Solidity version.
Additional information: link
SonOfPig.includeInReward(address) (#858-869) has costly operations inside a loop:
- _excluded.pop() (#865)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (#439-441) is never used and should be removed
Address.functionCall(address,bytes,string) (#449-455) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#468-474) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#482-493) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#528-530) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#538-547) is never used and should be removed
Address.functionStaticCall(address,bytes) (#501-503) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#511-520) is never used and should be removed
Address.isContract(address) (#386-396) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (#555-575) is never used and should be removed
Context._msgData() (#35-37) is never used and should be removed
Remove unused functions.
Additional information: link
SonOfPig._rTotal (#601) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
SonOfPig.maxTxAmountBuy (#603) is set pre-construction with a non-constant function or state variable:
- _tTotal / 1
SonOfPig.maxTxAmountSell (#604) is set pre-construction with a non-constant function or state variable:
- _tTotal / 1
SonOfPig.maxWalletAmount (#605) is set pre-construction with a non-constant function or state variable:
- _tTotal / 2
SonOfPig.numTokensSellToAddToLiquidity (#625) is set pre-construction with a non-constant function or state variable:
- _tTotal / 650
SonOfPig.appliedRates (#653) is set pre-construction with a non-constant function or state variable:
- buyRates
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 (#18) allows old versions
Pragma version^0.8.0 (#43) allows old versions
Pragma version^0.8.0 (#114) allows old versions
Pragma version>=0.6.2 (#197) allows old versions
Pragma version>=0.6.2 (#296) allows old versions
Pragma version>=0.5.0 (#342) allows old versions
Pragma version^0.8.0 (#363) allows old versions
Pragma version^0.8.0 (#580) 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
Low level call in Address.sendValue(address,uint256) (#414-419):
- (success) = recipient.call{value: amount}() (#417)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#482-493):
- (success,returndata) = target.call{value: value}(data) (#491)
Low level call in Address.functionStaticCall(address,bytes,string) (#511-520):
- (success,returndata) = target.staticcall(data) (#518)
Low level call in Address.functionDelegateCall(address,bytes,string) (#538-547):
- (success,returndata) = target.delegatecall(data) (#545)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#201) is not in mixedCase
Struct SonOfPig.feeRatesStruct (#627-633) is not in CapWords
Struct SonOfPig.valuesFromGetValues (#661-669) is not in CapWords
Parameter SonOfPig.setSwapAndLiquifyEnabled(bool)._enabled (#905) is not in mixedCase
Parameter SonOfPig.addLiquidity(uint256,uint256).ETHAmount (#1144) is not in mixedCase
Parameter SonOfPig.setAutomatedMarketMakerPair(address,bool)._pair (#1157) is not in mixedCase
Parameter SonOfPig.setBuyFees(uint8,uint8,uint8,uint8)._rfi (#1174) is not in mixedCase
Parameter SonOfPig.setBuyFees(uint8,uint8,uint8,uint8)._treasury (#1175) is not in mixedCase
Parameter SonOfPig.setBuyFees(uint8,uint8,uint8,uint8)._dev (#1176) is not in mixedCase
Parameter SonOfPig.setBuyFees(uint8,uint8,uint8,uint8)._lp (#1177) is not in mixedCase
Parameter SonOfPig.setSellFees(uint8,uint8,uint8,uint8)._rfi (#1187) is not in mixedCase
Parameter SonOfPig.setSellFees(uint8,uint8,uint8,uint8)._treasury (#1188) is not in mixedCase
Parameter SonOfPig.setSellFees(uint8,uint8,uint8,uint8)._dev (#1189) is not in mixedCase
Parameter SonOfPig.setSellFees(uint8,uint8,uint8,uint8)._lp (#1190) is not in mixedCase
Parameter SonOfPig.setMaxTransactionAmount(uint256,uint256)._maxTxAmountBuyPct (#1200) is not in mixedCase
Parameter SonOfPig.setMaxTransactionAmount(uint256,uint256)._maxTxAmountSellPct (#1201) is not in mixedCase
Parameter SonOfPig.setTreasuryAddress(address)._treasuryAddress (#1214) is not in mixedCase
Parameter SonOfPig.setDevAddress(address)._devAddress (#1221) is not in mixedCase
Parameter SonOfPig.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#1243) is not in mixedCase
Parameter SonOfPig.rescueAnyBEP20Tokens(address,address,uint256)._to (#1243) is not in mixedCase
Parameter SonOfPig.rescueAnyBEP20Tokens(address,address,uint256)._amount (#1243) is not in mixedCase
Parameter SonOfPig.setMaxWalletAmount(uint256)._maxWalletAmountPct (#1252) is not in mixedCase
Constant SonOfPig._decimals (#597) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SonOfPig._name (#618) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SonOfPig._symbol (#619) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SonOfPig.UniswapV2Router (#622) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#206) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#207)
Prevent variables from having similar names.
Additional information: link
SonOfPig._tTotal (#600) should be constant
SonOfPig.blocksToWait (#611) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#91-93)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#99-102)
name() should be declared external:
- SonOfPig.name() (#718-720)
symbol() should be declared external:
- SonOfPig.symbol() (#722-724)
decimals() should be declared external:
- SonOfPig.decimals() (#726-728)
totalSupply() should be declared external:
- SonOfPig.totalSupply() (#731-733)
transfer(address,uint256) should be declared external:
- SonOfPig.transfer(address,uint256) (#740-747)
approve(address,uint256) should be declared external:
- SonOfPig.approve(address,uint256) (#758-765)
transferFrom(address,address,uint256) should be declared external:
- SonOfPig.transferFrom(address,address,uint256) (#767-784)
increaseAllowance(address,uint256) should be declared external:
- SonOfPig.increaseAllowance(address,uint256) (#786-797)
decreaseAllowance(address,uint256) should be declared external:
- SonOfPig.decreaseAllowance(address,uint256) (#799-814)
isExcludedFromReward(address) should be declared external:
- SonOfPig.isExcludedFromReward(address) (#816-818)
reflectionFromToken(uint256,bool) should be declared external:
- SonOfPig.reflectionFromToken(uint256,bool) (#820-833)
excludeMultipleAccountsFromMaxWallet(address[],bool) should be declared external:
- SonOfPig.excludeMultipleAccountsFromMaxWallet(address[],bool) (#875-887)
isExcludedFromFee(address) should be declared external:
- SonOfPig.isExcludedFromFee(address) (#893-895)
isExcludedFromMaxWallet(address) should be declared external:
- SonOfPig.isExcludedFromMaxWallet(address) (#897-903)
setSwapAndLiquifyEnabled(bool) should be declared external:
- SonOfPig.setSwapAndLiquifyEnabled(bool) (#905-908)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- SonOfPig.rescueAnyBEP20Tokens(address,address,uint256) (#1243-1245)
Use the external attribute for functions never called from the contract.
Additional information: link
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
Unable to find Twitter account
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account