Pasta Token Token Logo

PASTA Token

ALERT: dead

About PASTA

Listings

Token 5 years
CoinGecko 5 years
CoinMarketCap 5 years

Pasta finance is a fork of goose finance and offer yield farming protocol.

Social

Laser Scorebeta Last Audit: 20 June 2022

report
Token seems to be unmaintained (no trading, inactive website, inactive socials, etc.).

Anti-Scam

Links

MasterChef.safePASTATransfer(address,uint256) (#1336-1343) ignores return value by pasta.transfer(_to,pastaBal) (#1339)
MasterChef.safePASTATransfer(address,uint256) (#1336-1343) ignores return value by pasta.transfer(_to,_amount) (#1341)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


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

PastaToken._writeCheckpoint(address,uint32,uint256,uint256) (#1089-1107) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1099)
MasterChef.updatePool(uint256) (#1263-1279) uses a dangerous strict equality:
- lpSupply == 0 || pool.allocPoint == 0 (#1269)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

PastaToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#955-996) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,TOKEN::delegateBySig: signature expired) (#994)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#279-288) uses assembly
- INLINE ASM (#286)
Address._verifyCallResult(bool,bytes,string) (#400-417) uses assembly
- INLINE ASM (#409-412)
PastaToken.getChainId() (#1114-1118) uses assembly
- INLINE ASM (#1116)
Do not use evm assembly.

Additional information: link

Redundant expression "this (#513)" inContext (#507-516)
Remove redundant statements if they congest code but offer no value.

Additional information: link

MasterChef.pendingPASTA(uint256,address) (#1241-1252) performs a multiplication on the result of a division:
-pastaReward = multiplier.mul(pastaPerBlock).mul(pool.allocPoint).div(totalAllocPoint) (#1248)
-accPASTAPerShare = accPASTAPerShare.add(pastaReward.mul(1e12).div(lpSupply)) (#1249)
MasterChef.updatePool(uint256) (#1263-1279) performs a multiplication on the result of a division:
-pastaReward = multiplier.mul(pastaPerBlock).mul(pool.allocPoint).div(totalAllocPoint) (#1274)
-pool.accPASTAPerShare = pool.accPASTAPerShare.add(pastaReward.mul(1e12).div(lpSupply)) (#1277)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in MasterChef.add(uint256,IBEP20,uint16,bool) (#1208-1222):
External calls:
- massUpdatePools() (#1211)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
State variables written after the call(s):
- poolInfo.push(PoolInfo(_lpToken,_allocPoint,lastRewardBlock,0,_depositFeeBP)) (#1215-1221)
- totalAllocPoint = totalAllocPoint.add(_allocPoint) (#1214)
Reentrancy in MasterChef.deposit(uint256,uint256) (#1282-1304):
External calls:
- updatePool(_pid) (#1285)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1289)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1293)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1296)
State variables written after the call(s):
- user.amount = user.amount.add(_amount).sub(depositFee) (#1297)
Reentrancy in MasterChef.deposit(uint256,uint256) (#1282-1304):
External calls:
- updatePool(_pid) (#1285)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1289)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1293)
State variables written after the call(s):
- user.amount = user.amount.add(_amount) (#1299)
Reentrancy in MasterChef.set(uint256,uint256,uint16,bool) (#1225-1233):
External calls:
- massUpdatePools() (#1228)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
State variables written after the call(s):
- poolInfo[_pid].allocPoint = _allocPoint (#1231)
- poolInfo[_pid].depositFeeBP = _depositFeeBP (#1232)
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1230)
Reentrancy in MasterChef.updateEmissionRate(uint256) (#1357-1360):
External calls:
- massUpdatePools() (#1358)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
State variables written after the call(s):
- pastaPerBlock = _pastaPerBlock (#1359)
Reentrancy in MasterChef.updatePool(uint256) (#1263-1279):
External calls:
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
State variables written after the call(s):
- pool.accPASTAPerShare = pool.accPASTAPerShare.add(pastaReward.mul(1e12).div(lpSupply)) (#1277)
- pool.lastRewardBlock = block.number (#1278)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1307-1322):
External calls:
- updatePool(_pid) (#1311)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1314)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
State variables written after the call(s):
- user.amount = user.amount.sub(_amount) (#1317)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1307-1322):
External calls:
- updatePool(_pid) (#1311)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1314)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1318)
State variables written after the call(s):
- user.rewardDebt = user.amount.mul(pool.accPASTAPerShare).div(1e12) (#1320)
Apply the check-effects-interactions pattern.

Additional information: link

BEP20.constructor(string,string).name (#636) shadows:
- BEP20.name() (#652-654) (function)
- IBEP20.name() (#182) (function)
BEP20.constructor(string,string).symbol (#636) shadows:
- BEP20.symbol() (#660-662) (function)
- IBEP20.symbol() (#177) (function)
BEP20.allowance(address,address).owner (#701) shadows:
- Ownable.owner() (#551-553) (function)
BEP20._approve(address,address,uint256).owner (#860) shadows:
- Ownable.owner() (#551-553) (function)
Rename the local variables that shadow another component.

Additional information: link

MasterChef.add(uint256,IBEP20,uint16,bool) (#1208-1222) should emit an event for:
- totalAllocPoint = totalAllocPoint.add(_allocPoint) (#1214)
MasterChef.set(uint256,uint256,uint16,bool) (#1225-1233) should emit an event for:
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1230)
MasterChef.updateEmissionRate(uint256) (#1357-1360) should emit an event for:
- pastaPerBlock = _pastaPerBlock (#1359)
Emit an event for critical parameter changes.

Additional information: link

MasterChef.constructor(PastaToken,address,address,uint256,uint256)._devaddr (#1190) lacks a zero-check on :
- devaddr = _devaddr (#1196)
MasterChef.constructor(PastaToken,address,address,uint256,uint256)._feeAddress (#1191) lacks a zero-check on :
- feeAddress = _feeAddress (#1197)
MasterChef.dev(address)._devaddr (#1346) lacks a zero-check on :
- devaddr = _devaddr (#1348)
MasterChef.setFeeAddress(address)._feeAddress (#1351) lacks a zero-check on :
- feeAddress = _feeAddress (#1353)
Check that the address is not zero.

Additional information: link

MasterChef.updatePool(uint256) (#1263-1279) has external calls inside a loop: lpSupply = pool.lpToken.balanceOf(address(this)) (#1268)
MasterChef.updatePool(uint256) (#1263-1279) has external calls inside a loop: pasta.mint(devaddr,pastaReward.div(10)) (#1275)
MasterChef.updatePool(uint256) (#1263-1279) has external calls inside a loop: pasta.mint(address(this),pastaReward) (#1276)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in MasterChef.deposit(uint256,uint256) (#1282-1304):
External calls:
- updatePool(_pid) (#1285)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1289)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1293)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1296)
Event emitted after the call(s):
- Deposit(msg.sender,_pid,_amount) (#1303)
Reentrancy in MasterChef.emergencyWithdraw(uint256) (#1325-1333):
External calls:
- pool.lpToken.safeTransfer(address(msg.sender),amount) (#1331)
Event emitted after the call(s):
- EmergencyWithdraw(msg.sender,_pid,amount) (#1332)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1307-1322):
External calls:
- updatePool(_pid) (#1311)
- pasta.mint(devaddr,pastaReward.div(10)) (#1275)
- pasta.mint(address(this),pastaReward) (#1276)
- safePASTATransfer(msg.sender,pending) (#1314)
- pasta.transfer(_to,pastaBal) (#1339)
- pasta.transfer(_to,_amount) (#1341)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1318)
Event emitted after the call(s):
- Withdraw(msg.sender,_pid,_amount) (#1321)
Apply the check-effects-interactions pattern.

Additional information: link

Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.6.0<0.8.0', '>=0.6.2<0.8.0', '>=0.6.4']
- >=0.6.0<0.8.0 (#3)
- >=0.6.4 (#161)
- >=0.6.2<0.8.0 (#256)
- >=0.6.0<0.8.0 (#422)
- >=0.6.0<0.8.0 (#495)
- >=0.6.0<0.8.0 (#520)
- >=0.4.0 (#588)
- 0.6.12 (#880)
- 0.6.12 (#1124)
Use one Solidity version.

Additional information: link

Address.functionCall(address,bytes) (#332-334) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#357-359) is never used and should be removed
Address.functionStaticCall(address,bytes) (#382-384) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#392-398) is never used and should be removed
Address.sendValue(address,uint256) (#306-312) is never used and should be removed
BEP20._burn(address,uint256) (#839-845) is never used and should be removed
BEP20._burnFrom(address,uint256) (#874-877) is never used and should be removed
Context._msgData() (#512-515) is never used and should be removed
SafeBEP20.safeApprove(IBEP20,address,uint256) (#453-462) is never used and should be removed
SafeBEP20.safeDecreaseAllowance(IBEP20,address,uint256) (#469-472) is never used and should be removed
SafeBEP20.safeIncreaseAllowance(IBEP20,address,uint256) (#464-467) is never used and should be removed
SafeMath.mod(uint256,uint256) (#139-141) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#155-158) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version>=0.6.0<0.8.0 (#3) is too complex
Pragma version>=0.6.4 (#161) allows old versions
Pragma version>=0.6.2<0.8.0 (#256) is too complex
Pragma version>=0.6.0<0.8.0 (#422) is too complex
Pragma version>=0.6.0<0.8.0 (#495) is too complex
Pragma version>=0.6.0<0.8.0 (#520) is too complex
Pragma version>=0.4.0 (#588) 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) (#306-312):
- (success) = recipient.call{value: amount}() (#310)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#367-374):
- (success,returndata) = target.call{value: value}(data) (#372)
Low level call in Address.functionStaticCall(address,bytes,string) (#392-398):
- (success,returndata) = target.staticcall(data) (#396)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Parameter PastaToken.mint(address,uint256)._to (#885) is not in mixedCase
Parameter PastaToken.mint(address,uint256)._amount (#885) is not in mixedCase
Variable PastaToken._delegates (#897) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._allocPoint (#1208) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._lpToken (#1208) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._depositFeeBP (#1208) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._withUpdate (#1208) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._pid (#1225) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._allocPoint (#1225) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._depositFeeBP (#1225) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._withUpdate (#1225) is not in mixedCase
Parameter MasterChef.getMultiplier(uint256,uint256)._from (#1236) is not in mixedCase
Parameter MasterChef.getMultiplier(uint256,uint256)._to (#1236) is not in mixedCase
Parameter MasterChef.pendingPASTA(uint256,address)._pid (#1241) is not in mixedCase
Parameter MasterChef.pendingPASTA(uint256,address)._user (#1241) is not in mixedCase
Parameter MasterChef.updatePool(uint256)._pid (#1263) is not in mixedCase
Parameter MasterChef.deposit(uint256,uint256)._pid (#1282) is not in mixedCase
Parameter MasterChef.deposit(uint256,uint256)._amount (#1282) is not in mixedCase
Parameter MasterChef.withdraw(uint256,uint256)._pid (#1307) is not in mixedCase
Parameter MasterChef.withdraw(uint256,uint256)._amount (#1307) is not in mixedCase
Parameter MasterChef.emergencyWithdraw(uint256)._pid (#1325) is not in mixedCase
Parameter MasterChef.safePASTATransfer(address,uint256)._to (#1336) is not in mixedCase
Parameter MasterChef.safePASTATransfer(address,uint256)._amount (#1336) is not in mixedCase
Parameter MasterChef.dev(address)._devaddr (#1346) is not in mixedCase
Parameter MasterChef.setFeeAddress(address)._feeAddress (#1351) is not in mixedCase
Parameter MasterChef.updateEmissionRate(uint256)._pastaPerBlock (#1357) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#570-573)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#579-583)
symbol() should be declared external:
- BEP20.symbol() (#660-662)
decimals() should be declared external:
- BEP20.decimals() (#667-669)
totalSupply() should be declared external:
- BEP20.totalSupply() (#674-676)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#693-696)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#701-703)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#712-715)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#729-737)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#751-754)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#770-773)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#783-786)
mint(address,uint256) should be declared external:
- PastaToken.mint(address,uint256) (#885-888)
add(uint256,IBEP20,uint16,bool) should be declared external:
- MasterChef.add(uint256,IBEP20,uint16,bool) (#1208-1222)
set(uint256,uint256,uint16,bool) should be declared external:
- MasterChef.set(uint256,uint256,uint16,bool) (#1225-1233)
deposit(uint256,uint256) should be declared external:
- MasterChef.deposit(uint256,uint256) (#1282-1304)
withdraw(uint256,uint256) should be declared external:
- MasterChef.withdraw(uint256,uint256) (#1307-1322)
emergencyWithdraw(uint256) should be declared external:
- MasterChef.emergencyWithdraw(uint256) (#1325-1333)
dev(address) should be declared external:
- MasterChef.dev(address) (#1346-1349)
setFeeAddress(address) should be declared external:
- MasterChef.setFeeAddress(address) (#1351-1354)
updateEmissionRate(uint256) should be declared external:
- MasterChef.updateEmissionRate(uint256) (#1357-1360)
Use the external attribute for functions never called from the contract.

Additional information: link


Contract ownership is semi-renounced (passed to a contract)

Holders:


Average 30d PancakeSwap liquidity is low.


Average 30d PancakeSwap volume is low.


Average 30d number of PancakeSwap swaps is low.


Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.


Token is deployed only at one blockchain


Last post in Twitter was more than 180 days ago


Telegram account has relatively few subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Unable to find audit link on the website


Unable to find whitepaper link on the website


Token is not listed at Mobula.Finance

Additional information: link


Token has a considerable age, but social accounts / website are missing or have few users


Token is marked as risky (blacklisted creator, fake name, dead project, etc.)

Additional information: link


Token has relatively low CoinGecko rank


Token has relatively low CoinMarketCap rank

Price for PASTA

News for PASTA