PancakeSwap is an automated market maker (AMM) — a decentralized finance (DeFi) application that allows users to exchange tokens, providing liquidity via farming and earning fees in return.
It is a decentralized exchange for swapping BEP20 tokens on Binance Smart Chain. PancakeSwap uses an automated market maker model where users trade against a liquidity pool. These pools are filled by users who deposit their funds into the pool and receive liquidity provider (LP) tokens in return.
These tokens can later be used to reclaim their share of the pool, as well as a portion of the trading fees. These LP tokens are known as FLIP. PancakeSwap also allows users to farm additional tokens such as CAKE and SYRUP. On the farm, users can deposit LP tokens and get rewarded with CAKE.
PancakeSwap allows users to trade BEP20 tokens, provide liquidity to the exchange and earn fees, stake LP tokens to earn CAKE, stake CAKE to earn more CAKE and stake CAKE to earn tokens of other projects.
CakeToken._writeCheckpoint(address,uint32,uint256,uint256) (#1062-1080) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1072)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Redundant expression "this (#25)" inContext (#15-28)
Remove redundant statements if they congest code but offer no value.
Additional information: link
CakeToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#928-969) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,CAKE::delegateBySig: signature expired) (#967)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#407-418) uses assembly
- INLINE ASM (#414-416)
CakeToken.getChainId() (#1087-1091) uses assembly
- INLINE ASM (#1089)
Address._functionCallWithValue(address,bytes,uint256,string) (#515-541) uses assembly
- INLINE ASM (#533-536)
Do not use evm assembly.
Additional information: link
Parameter CakeToken.mint(address,uint256)._to (#858) is not in mixedCase
Parameter CakeToken.mint(address,uint256)._amount (#858) is not in mixedCase
Variable CakeToken._delegates (#870) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
BEP20.allowance(address,address).owner (#656) shadows:
- Ownable.owner() (#60-62) (function)
BEP20.constructor(string,string).symbol (#592) shadows:
- BEP20.symbol() (#622-624) (function)
- IBEP20.symbol() (#117) (function)
BEP20._approve(address,address,uint256).owner (#828) shadows:
- Ownable.owner() (#60-62) (function)
BEP20.constructor(string,string).name (#592) shadows:
- BEP20.name() (#608-610) (function)
- IBEP20.name() (#122) (function)
Rename the local variables that shadow another component.
Additional information: link
SafeMath.mul(uint256,uint256) (#275-287) is never used and should be removed
Address.sendValue(address,uint256) (#436-442) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#491-497) is never used and should be removed
SafeMath.sqrt(uint256) (#371-382) is never used and should be removed
BEP20._burnFrom(address,uint256) (#845-852) is never used and should be removed
BEP20._burn(address,uint256) (#806-812) is never used and should be removed
SafeMath.min(uint256,uint256) (#366-368) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#357-364) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#505-513) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#317-327) is never used and should be removed
Context._msgData() (#24-27) is never used and should be removed
SafeMath.mod(uint256,uint256) (#341-343) is never used and should be removed
SafeMath.div(uint256,uint256) (#301-303) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#515-541) is never used and should be removed
Address.isContract(address) (#407-418) is never used and should be removed
Address.functionCall(address,bytes,string) (#472-478) is never used and should be removed
Address.functionCall(address,bytes) (#462-464) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#515-541):
- (success,returndata) = target.call{value: weiValue}(data) (#524)
Low level call in Address.sendValue(address,uint256) (#436-442):
- (success) = recipient.call{value: amount}() (#440)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#648-651)
symbol() should be declared external:
- BEP20.symbol() (#622-624)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#79-82)
mint(address,uint256) should be declared external:
- CakeToken.mint(address,uint256) (#858-861)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#667-670)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#684-696)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#88-90)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#746-749)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#656-658)
totalSupply() should be declared external:
- BEP20.totalSupply() (#629-631)
decimals() should be declared external:
- BEP20.decimals() (#615-617)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#710-713)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#729-736)
Use the external attribute for functions never called from the contract.
Additional information: link
Twitter account link seems to be invalid
Unable to find Youtube account