Lego Protocol Token Logo

LPRO [Lego Protocol] Token

ALERT: rug pull scam

About LPRO

Listings

Not Found
Token 4 years

The World’s Largest Defi 3.0 Auto-Staking & Auto-Compounding Protocol, Which Rewards Users With Big Apy.

Social

Laser Scorebeta Last Audit: 19 April 2022

report
Token seems to be a scam (type: rug pull scam).

Anti-Scam

Links

LPRO.swapBack() (#314-357) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link


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

Reentrancy in LPRO._transferFrom(address,address,uint256) (#235-268):
External calls:
- swapBack() (#259)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#332-338)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
External calls sending eth:
- swapBack() (#259)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
State variables written after the call(s):
- _balances[sender] = _balances[sender] - amount (#261)
- _balances[recipient] = _balances[recipient] + amountReceived (#264)
- amountReceived = takeFee(recipient,amount) (#263)
- _balances[address(this)] = _balances[address(this)] + (feeAmount) (#301)
Apply the check-effects-interactions pattern.

Additional information: link


Contract ownership is not renounced (belongs to a wallet)


Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

LPRO.takeFee(address,uint256) (#298-305) performs a multiplication on the result of a division:
-feeAmount = amount / 100 * (totalFee) (#299)
LPRO.swapBack() (#314-357) performs a multiplication on the result of a division:
-amountToLiquify = tokensToSell / (totalFee) * (liquidityFee) / (2) (#323)
LPRO.setSwapBackSettings(bool,uint256,uint256) (#418-422) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / (10000) * (_percentage_min_base10000) (#420)
LPRO.setSwapBackSettings(bool,uint256,uint256) (#418-422) performs a multiplication on the result of a division:
-maxSwapSize = _totalSupply / (10000) * (_percentage_max_base10000) (#421)
LPRO.setMaxWalletPercent_base1000(uint256) (#432-434) performs a multiplication on the result of a division:
-_maxWalletToken = _totalSupply / (1000) * (maxWallPercent_base1000) (#433)
LPRO.setMaxBuyTxPercent_base1000(uint256) (#436-438) performs a multiplication on the result of a division:
-_maxBuyTxAmount = _totalSupply / (1000) * (maxBuyTXPercentage_base1000) (#437)
LPRO.setMaxSellTxPercent_base1000(uint256) (#440-442) performs a multiplication on the result of a division:
-_maxSellTxAmount = _totalSupply / (1000) * (maxSellTXPercentage_base1000) (#441)
LPRO.slitherConstructorVariables() (#135-457) performs a multiplication on the result of a division:
-_maxBuyTxAmount = _totalSupply / (100) * (30) (#171)
LPRO.slitherConstructorVariables() (#135-457) performs a multiplication on the result of a division:
-_maxSellTxAmount = _totalSupply / (100) * (20) (#172)
LPRO.slitherConstructorVariables() (#135-457) performs a multiplication on the result of a division:
-_maxWalletToken = _totalSupply / (100) * (30) (#173)
LPRO.slitherConstructorVariables() (#135-457) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 1 (#185)
LPRO.slitherConstructorVariables() (#135-457) performs a multiplication on the result of a division:
-maxSwapSize = _totalSupply / 100 * 1 (#186)
Consider ordering multiplication before division.

Additional information: link

LPRO.addLiquidity(uint256,uint256) (#359-371) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
Ensure that all the return values of the function calls are used.

Additional information: link

LPRO.setBuyFees(uint256,uint256,uint256,uint256) (#395-401) should emit an event for:
- BuyliquidityFee = _liquidityFee (#396)
- BuybuybackFee = _buybackFee (#397)
- BuymarketingFee = _marketingFee (#398)
- BuycharityFee = _devFee (#399)
- BuytotalFee = _liquidityFee + (_buybackFee) + (_marketingFee) + (_devFee) (#400)
LPRO.setSellFees(uint256,uint256,uint256,uint256) (#403-409) should emit an event for:
- SellliquidityFee = _liquidityFee (#404)
- SellbuybackFee = _buybackFee (#405)
- SellmarketingFee = _marketingFee (#406)
- SellcharityFee = _devFee (#407)
- SelltotalFee = _liquidityFee + (_buybackFee) + (_marketingFee) + (_devFee) (#408)
LPRO.setSwapBackSettings(bool,uint256,uint256) (#418-422) should emit an event for:
- swapThreshold = _totalSupply / (10000) * (_percentage_min_base10000) (#420)
- maxSwapSize = _totalSupply / (10000) * (_percentage_max_base10000) (#421)
LPRO.setMaxWalletPercent_base1000(uint256) (#432-434) should emit an event for:
- _maxWalletToken = _totalSupply / (1000) * (maxWallPercent_base1000) (#433)
LPRO.setMaxBuyTxPercent_base1000(uint256) (#436-438) should emit an event for:
- _maxBuyTxAmount = _totalSupply / (1000) * (maxBuyTXPercentage_base1000) (#437)
LPRO.setMaxSellTxPercent_base1000(uint256) (#440-442) should emit an event for:
- _maxSellTxAmount = _totalSupply / (1000) * (maxSellTXPercentage_base1000) (#441)
Emit an event for critical parameter changes.

Additional information: link

LPRO.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (#411) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#412)
LPRO.setFeeReceivers(address,address,address,address)._marketingFeeReceiver (#411) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#413)
LPRO.setFeeReceivers(address,address,address,address)._buybackFeeReceiver (#411) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#414)
LPRO.setFeeReceivers(address,address,address,address)._devFeeReceiver (#411) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#415)
Check that the address is not zero.

Additional information: link

Reentrancy in LPRO.constructor() (#192-202):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#194)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#195)
- _balances[msg.sender] = _totalSupply (#200)
- isFeeExempt[msg.sender] = true (#197)
- isTxLimitExempt[msg.sender] = true (#198)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LPRO._transferFrom(address,address,uint256) (#235-268):
External calls:
- swapBack() (#259)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#332-338)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
External calls sending eth:
- swapBack() (#259)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#302)
- amountReceived = takeFee(recipient,amount) (#263)
- Transfer(sender,recipient,amountReceived) (#266)
Reentrancy in LPRO.addLiquidity(uint256,uint256) (#359-371):
External calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
Event emitted after the call(s):
- AutoLiquify(bnbAmount,tokenAmount) (#369)
Reentrancy in LPRO.constructor() (#192-202):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#194)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#201)
Reentrancy in LPRO.swapBack() (#314-357):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#332-338)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#356)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#356)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,autoLiquidityReceiver,block.timestamp) (#361-368)
Event emitted after the call(s):
- AutoLiquify(bnbAmount,tokenAmount) (#369)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#356)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.Ownershipunlock() (#67-72) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked) (#69)
Avoid relying on block.timestamp.

Additional information: link

LPRO.BuytotalFee (#162) is set pre-construction with a non-constant function or state variable:
- BuyliquidityFee + BuycharityFee + BuymarketingFee + BuybuybackFee
LPRO.SelltotalFee (#168) is set pre-construction with a non-constant function or state variable:
- SellliquidityFee + SellcharityFee + SellmarketingFee + SellbuybackFee
LPRO._maxBuyTxAmount (#171) is set pre-construction with a non-constant function or state variable:
- _totalSupply / (100) * (30)
LPRO._maxSellTxAmount (#172) is set pre-construction with a non-constant function or state variable:
- _totalSupply / (100) * (20)
LPRO._maxWalletToken (#173) is set pre-construction with a non-constant function or state variable:
- _totalSupply / (100) * (30)
LPRO.swapThreshold (#185) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 1
LPRO.maxSwapSize (#186) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100 * 1
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

Low level call in LPRO.swapBack() (#314-357):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- (devSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#353)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function Ownable.Ownershiplock(uint256) (#60-65) is not in mixedCase
Function Ownable.Ownershipunlock() (#67-72) is not in mixedCase
Function IDEXRouter.WETH() (#85) is not in mixedCase
Parameter LPRO.setBuyFees(uint256,uint256,uint256,uint256)._liquidityFee (#395) is not in mixedCase
Parameter LPRO.setBuyFees(uint256,uint256,uint256,uint256)._buybackFee (#395) is not in mixedCase
Parameter LPRO.setBuyFees(uint256,uint256,uint256,uint256)._marketingFee (#395) is not in mixedCase
Parameter LPRO.setBuyFees(uint256,uint256,uint256,uint256)._devFee (#395) is not in mixedCase
Parameter LPRO.setSellFees(uint256,uint256,uint256,uint256)._liquidityFee (#403) is not in mixedCase
Parameter LPRO.setSellFees(uint256,uint256,uint256,uint256)._buybackFee (#403) is not in mixedCase
Parameter LPRO.setSellFees(uint256,uint256,uint256,uint256)._marketingFee (#403) is not in mixedCase
Parameter LPRO.setSellFees(uint256,uint256,uint256,uint256)._devFee (#403) is not in mixedCase
Parameter LPRO.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (#411) is not in mixedCase
Parameter LPRO.setFeeReceivers(address,address,address,address)._marketingFeeReceiver (#411) is not in mixedCase
Parameter LPRO.setFeeReceivers(address,address,address,address)._buybackFeeReceiver (#411) is not in mixedCase
Parameter LPRO.setFeeReceivers(address,address,address,address)._devFeeReceiver (#411) is not in mixedCase
Parameter LPRO.setSwapBackSettings(bool,uint256,uint256)._enabled (#418) is not in mixedCase
Parameter LPRO.setSwapBackSettings(bool,uint256,uint256)._percentage_min_base10000 (#418) is not in mixedCase
Parameter LPRO.setSwapBackSettings(bool,uint256,uint256)._percentage_max_base10000 (#418) is not in mixedCase
Function LPRO.setMaxWalletPercent_base1000(uint256) (#432-434) is not in mixedCase
Parameter LPRO.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#432) is not in mixedCase
Function LPRO.setMaxBuyTxPercent_base1000(uint256) (#436-438) is not in mixedCase
Parameter LPRO.setMaxBuyTxPercent_base1000(uint256).maxBuyTXPercentage_base1000 (#436) is not in mixedCase
Function LPRO.setMaxSellTxPercent_base1000(uint256) (#440-442) is not in mixedCase
Parameter LPRO.setMaxSellTxPercent_base1000(uint256).maxSellTXPercentage_base1000 (#440) is not in mixedCase
Variable LPRO.WBNB (#137) is not in mixedCase
Variable LPRO.DEAD (#138) is not in mixedCase
Variable LPRO.ZERO (#139) is not in mixedCase
Constant LPRO._name (#141) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LPRO._symbol (#142) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LPRO._decimals (#143) is not in UPPER_CASE_WITH_UNDERSCORES
Variable LPRO._totalSupply (#144) is not in mixedCase
Variable LPRO._balances (#146) is not in mixedCase
Variable LPRO._allowances (#147) is not in mixedCase
Variable LPRO.BuyliquidityFee (#158) is not in mixedCase
Variable LPRO.BuycharityFee (#159) is not in mixedCase
Variable LPRO.BuymarketingFee (#160) is not in mixedCase
Variable LPRO.BuybuybackFee (#161) is not in mixedCase
Variable LPRO.BuytotalFee (#162) is not in mixedCase
Variable LPRO.SellliquidityFee (#164) is not in mixedCase
Variable LPRO.SellcharityFee (#165) is not in mixedCase
Variable LPRO.SellmarketingFee (#166) is not in mixedCase
Variable LPRO.SellbuybackFee (#167) is not in mixedCase
Variable LPRO.SelltotalFee (#168) is not in mixedCase
Variable LPRO._maxBuyTxAmount (#171) is not in mixedCase
Variable LPRO._maxSellTxAmount (#172) is not in mixedCase
Variable LPRO._maxWalletToken (#173) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#90) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#91)
Variable LPRO.setSwapBackSettings(bool,uint256,uint256)._percentage_max_base10000 (#418) is too similar to LPRO.setSwapBackSettings(bool,uint256,uint256)._percentage_min_base10000 (#418)
Prevent variables from having similar names.

Additional information: link

LPRO.slitherConstructorVariables() (#135-457) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#138)
LPRO.slitherConstructorVariables() (#135-457) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#139)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

LPRO.ZERO (#139) is never used in LPRO (#135-457)
Remove unused state variables.

Additional information: link

LPRO.DEAD (#138) should be constant
LPRO.WBNB (#137) should be constant
LPRO.ZERO (#139) should be constant
LPRO._totalSupply (#144) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#50-54)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#56-58)
Ownershiplock(uint256) should be declared external:
- Ownable.Ownershiplock(uint256) (#60-65)
Ownershipunlock() should be declared external:
- Ownable.Ownershipunlock() (#67-72)
rescueToken(address,uint256) should be declared external:
- LPRO.rescueToken(address,uint256) (#445-447)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


Average 30d PancakeSwap liquidity is low.


Average 30d PancakeSwap volume is low.


Token is deployed only at one blockchain


Token has only one trading pair


Telegram account link seems to be invalid


Unable to find Youtube account


Unable to find Discord account


Twitter account has few posts


Unable to find Blog account (Reddit or Medium)


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token on CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)


Unable to verify token contract address on the website


Unable to find token on CoinHunt

Additional information: link


Unable to find code repository for the project


Token is marked as scam (rug pull, honeypot, phishing, etc.)

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 scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for LPRO

News for LPRO