ApeSwap is a decentralized finance (DeFi) platform offering a full suite of tools to explore and engage with the future of wealth building, overseen by the ApeSwap Decentralized Autonomous Organization (DAO).
- Join by interacting with our community, using our DeFi platform, and purchasing our native utility tokens, BANANA and GNANA
- Swap between different cryptocurrency tokens on BNB Chain, Polygon, Ethereum and Telos using our decentralized exchange
- Create liquidity between cryptocurrency token pairs to receive liquidity provider (LP) tokens, which can earn trading fees (liquidity mining) and be staked in Yield Farms or Maximizers to earn BANANA
- Stake BANANA or GNANA in Staking Pools to earn tokens from partner projects
- Lend and borrow crypto assets with the ApeSwap Lending Network
- Participate in Initial Ape Offerings for new crypto projects
- Purchase Treasury Bills with LPs to receive discounted BANANA or partner tokens that vest over time
BananaToken._writeCheckpoint(address,uint32,uint256,uint256) (contracts/BananaToken.sol#222-240) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (contracts/BananaToken.sol#232)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract ownership is semi-renounced (passed to a contract)
BananaToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (contracts/BananaToken.sol#88-129) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,BANANA::delegateBySig: signature expired) (contracts/BananaToken.sol#127)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity are used:
- Version used: ['0.6.12', '>=0.4.0', '^0.6.2']
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#3)
- ^0.6.2 (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#3)
- 0.6.12 (contracts/BananaToken.sol#1)
Use one Solidity version.
Additional information: link
SafeMath.mul(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#81-93) is never used and should be removed
Address.sendValue(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#55-61) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#110-116) is never used and should be removed
SafeMath.sqrt(uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#177-188) is never used and should be removed
BEP20._burnFrom(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#311-318) is never used and should be removed
BEP20._burn(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#272-278) is never used and should be removed
SafeMath.min(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#172-174) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#163-170) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#124-132) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#123-133) is never used and should be removed
Context._msgData() (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#24-27) is never used and should be removed
SafeMath.mod(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#147-149) is never used and should be removed
SafeMath.div(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#107-109) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160) is never used and should be removed
Address.isContract(address) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#26-37) is never used and should be removed
Address.functionCall(address,bytes,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#91-97) is never used and should be removed
Address.functionCall(address,bytes) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#81-83) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#3) allows old versions
Pragma version^0.6.2 (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#3) 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
BEP20.allowance(address,address).owner (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#122) shadows:
- Ownable.owner() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#36-38) (function)
BEP20.constructor(string,string).symbol (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#58) shadows:
- BEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#88-90) (function)
- IBEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#19) (function)
BEP20._approve(address,address,uint256).owner (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#294) shadows:
- Ownable.owner() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#36-38) (function)
BEP20.constructor(string,string).name (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#58) shadows:
- BEP20.name() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#74-76) (function)
- IBEP20.name() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#24) (function)
Rename the local variables that shadow another component.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160) uses assembly
- INLINE ASM (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#152-155)
BananaToken.getChainId() (contracts/BananaToken.sol#247-251) uses assembly
- INLINE ASM (contracts/BananaToken.sol#249)
Address.isContract(address) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#26-37) uses assembly
- INLINE ASM (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#33-35)
Do not use evm assembly.
Additional information: link
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160):
- (success,returndata) = target.call{value: weiValue}(data) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#143)
Low level call in Address.sendValue(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#55-61):
- (success) = recipient.call{value: amount}() (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#59)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable BananaToken._delegates (contracts/BananaToken.sol#30) is not in mixedCase
Parameter BananaToken.mint(address,uint256)._to (contracts/BananaToken.sol#18) is not in mixedCase
Parameter BananaToken.mint(address,uint256)._amount (contracts/BananaToken.sol#18) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#25)" inContext (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#15-28)
Remove redundant statements if they congest code but offer no value.
Additional information: link
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#114-117)
symbol() should be declared external:
- BEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#88-90)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#55-58)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#150-162)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#64-66)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#212-215)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#122-124)
totalSupply() should be declared external:
- BEP20.totalSupply() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#95-97)
decimals() should be declared external:
- BEP20.decimals() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#81-83)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#176-179)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#195-202)
mint(address,uint256) should be declared external:
- BananaToken.mint(address,uint256) (contracts/BananaToken.sol#18-21)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find Youtube account