Little PIGS Token Logo

Little PIGS Token

About Little PIGS

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Laser Scorebeta Last Audit: 4 February 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

Reentrancy in PIGS._transfer(address,address,uint256) (#802-838):
External calls:
- swapAndSendToFee(sellTokens) (#824)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
External calls sending eth:
- swapAndSendToFee(sellTokens) (#824)
- address(_marketingWallet).transfer(ethToSend) (#845)
State variables written after the call(s):
- _tOwned[from] -= amount (#828)
- transferAmount = _getValues(amount,from) (#833)
- _tOwned[address(this)] += marketingFee + liquidityFee (#784)
- _tOwned[to] += transferAmount (#836)
- swapping = false (#825)
Apply the check-effects-interactions pattern.

Additional information: link

Contract ticker (Little PIGS) 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.

PIGS.allowance(address,address).owner (#743) shadows:
- Ownable.owner() (#422-424) (function)
PIGS._approve(address,address,uint256).owner (#794) shadows:
- Ownable.owner() (#422-424) (function)
Rename the local variables that shadow another component.

Additional information: link

Reentrancy in PIGS.constructor() (#700-716):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#705)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#711)
- _isExcludedFromFee[address(this)] = true (#712)
- _isExcludedFromFee[_marketingWallet] = true (#713)
- uniswapV2Pair = _uniswapV2Pair (#708)
- uniswapV2Router = _uniswapV2Router (#707)
Reentrancy in PIGS.swapAndLiquify() (#848-860):
External calls:
- newBalance = swapTokensForEth(half) (#853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
- addLiquidity(otherHalf,newBalance) (#857)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#887-894)
- (success) = recipient.call{value: amount}() (#307)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#897)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#857)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#887-894)
- (success) = recipient.call{value: amount}() (#307)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#857)
- _allowances[owner][spender] = amount (#798)
Reentrancy in PIGS.transferFrom(address,address,uint256) (#752-756):
External calls:
- _transfer(sender,recipient,amount) (#753)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
External calls sending eth:
- _transfer(sender,recipient,amount) (#753)
- address(_marketingWallet).transfer(ethToSend) (#845)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#754)
- _allowances[owner][spender] = amount (#798)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in PIGS._transfer(address,address,uint256) (#802-838):
External calls:
- swapAndSendToFee(sellTokens) (#824)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
External calls sending eth:
- swapAndSendToFee(sellTokens) (#824)
- address(_marketingWallet).transfer(ethToSend) (#845)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#785)
- transferAmount = _getValues(amount,from) (#833)
- Transfer(from,to,transferAmount) (#837)
Reentrancy in PIGS.constructor() (#700-716):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#705)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#715)
Reentrancy in PIGS.swapAndLiquify() (#848-860):
External calls:
- newBalance = swapTokensForEth(half) (#853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
- addLiquidity(otherHalf,newBalance) (#857)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#887-894)
- (success) = recipient.call{value: amount}() (#307)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#897)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#857)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#887-894)
- (success) = recipient.call{value: amount}() (#307)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#799)
- addLiquidity(otherHalf,newBalance) (#857)
- SwapAndLiquify(half,newBalance,otherHalf) (#858)
Reentrancy in PIGS.transferFrom(address,address,uint256) (#752-756):
External calls:
- _transfer(sender,recipient,amount) (#753)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#872-878)
External calls sending eth:
- _transfer(sender,recipient,amount) (#753)
- address(_marketingWallet).transfer(ethToSend) (#845)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#799)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#754)
Apply the check-effects-interactions pattern.

Additional information: link

PIGS._transfer(address,address,uint256) (#802-838) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_lastBuy[to] + _buyCooldown < block.timestamp,Must wait til after coooldown to buy) (#816)
PIGS.addLiquidity(uint256,uint256) (#882-898) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#896)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#276-285) uses assembly
- INLINE ASM (#283)
Address._functionCallWithValue(address,bytes,uint256,string) (#369-390) uses assembly
- INLINE ASM (#382-385)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#369-390) is never used and should be removed
Address.functionCall(address,bytes) (#329-331) is never used and should be removed
Address.functionCall(address,bytes,string) (#339-341) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#354-356) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#364-367) is never used and should be removed
Address.isContract(address) (#276-285) is never used and should be removed
Address.sendValue(address,uint256) (#303-309) is never used and should be removed
Context._msgData() (#248-251) is never used and should be removed
PIGS.addLiquidity(uint256,uint256) (#882-898) is never used and should be removed
PIGS.swapAndLiquify() (#848-860) is never used and should be removed
SafeMath.add(uint256,uint256) (#111-116) is never used and should be removed
SafeMath.div(uint256,uint256) (#185-187) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#201-207) is never used and should be removed
SafeMath.mod(uint256,uint256) (#221-223) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#237-240) is never used and should be removed
SafeMath.mul(uint256,uint256) (#159-171) is never used and should be removed
SafeMath.sub(uint256,uint256) (#128-130) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#142-147) is never used and should be removed
Remove unused functions.

Additional information: link

Low level call in Address.sendValue(address,uint256) (#303-309):
- (success) = recipient.call{value: amount}() (#307)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#369-390):
- (success,returndata) = target.call{value: weiValue}(data) (#373)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#493) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#494) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#511) is not in mixedCase
Function IUniswapV2Router01.WETH() (#533) is not in mixedCase
Variable PIGS._maxTxAmount (#683) is not in mixedCase
Constant PIGS._name (#685) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PIGS._symbol (#686) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PIGS._decimals (#687) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PIGS._marketingFee (#689) is not in mixedCase
Variable PIGS._liquidityFee (#690) is not in mixedCase
Variable PIGS._marketingWallet (#691) is not in mixedCase
Variable PIGS._buyCooldown (#693) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#249)" inContext (#243-252)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in PIGS._transfer(address,address,uint256) (#802-838):
External calls:
- swapAndSendToFee(sellTokens) (#824)
- address(_marketingWallet).transfer(ethToSend) (#845)
State variables written after the call(s):
- _tOwned[from] -= amount (#828)
- transferAmount = _getValues(amount,from) (#833)
- _tOwned[address(this)] += marketingFee + liquidityFee (#784)
- _tOwned[to] += transferAmount (#836)
- swapping = false (#825)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#785)
- transferAmount = _getValues(amount,from) (#833)
- Transfer(from,to,transferAmount) (#837)
Reentrancy in PIGS.transferFrom(address,address,uint256) (#752-756):
External calls:
- _transfer(sender,recipient,amount) (#753)
- address(_marketingWallet).transfer(ethToSend) (#845)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#754)
- _allowances[owner][spender] = amount (#798)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#799)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#754)
Apply the check-effects-interactions pattern.

Additional information: link

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

Additional information: link

Address.sendValue(address,uint256) (#303-309) uses literals with too many digits:
- recipient = address(0x000000000000000000000000000000000000dEaD) (#305)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

PIGS._buyCooldown (#693) should be constant
PIGS._liquidityFee (#690) should be constant
PIGS._marketingFee (#689) should be constant
PIGS._marketingWallet (#691) should be constant
PIGS._maxTxAmount (#683) should be constant
PIGS._tTotal (#682) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#441-444)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#450-454)
name() should be declared external:
- PIGS.name() (#718-720)
symbol() should be declared external:
- PIGS.symbol() (#722-724)
decimals() should be declared external:
- PIGS.decimals() (#726-728)
totalSupply() should be declared external:
- PIGS.totalSupply() (#730-732)
transfer(address,uint256) should be declared external:
- PIGS.transfer(address,uint256) (#738-741)
allowance(address,address) should be declared external:
- PIGS.allowance(address,address) (#743-745)
approve(address,uint256) should be declared external:
- PIGS.approve(address,uint256) (#747-750)
transferFrom(address,address,uint256) should be declared external:
- PIGS.transferFrom(address,address,uint256) (#752-756)
increaseAllowance(address,uint256) should be declared external:
- PIGS.increaseAllowance(address,uint256) (#758-761)
decreaseAllowance(address,uint256) should be declared external:
- PIGS.decreaseAllowance(address,uint256) (#763-766)
excludeFromFee(address) should be declared external:
- PIGS.excludeFromFee(address) (#768-770)
includeInFee(address) should be declared external:
- PIGS.includeInFee(address) (#772-774)
isExcludedFromFee(address) should be declared external:
- PIGS.isExcludedFromFee(address) (#790-792)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


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


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

Price for Little PIGS