CorgiSwap belongs to the Corgidoge ecosystem. CorgiSwap helps holders make the most out of their crypto in three ways:
- Trade: Instantly swap crypto tokens, no registration or account needed.
- Earn: Earn CORIS and other tokens for free with super high interest rates.
- Win: CorgiSwap makes making money fun.
There's currently no hard cap on the supply of CORIS token, making it an inflationary token.
Community members often point to this as a cause for concern, and while the chefs certainly understand the wish for a hard cap, there's a big reason we don't expect to set one in the near future:
CORIS's primary function is to incentivize providing liquidity to the exchange. Without block rewards, there would be much less incentive to provide liquidity (LP fees etc. would remain).
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MasterChef.updatePool(uint256) (#1298-1314) uses a dangerous strict equality:
- lpSupply == 0 || pool.allocPoint == 0 (#1304)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
MasterChef.updatePool(uint256) (#1298-1314) performs a multiplication on the result of a division:
-corgiSReward = multiplier.mul(corgiSPerBlock).mul(pool.allocPoint).div(totalAllocPoint) (#1309)
-pool.accCorgiSPerShare = pool.accCorgiSPerShare.add(corgiSReward.mul(1e12).div(lpSupply)) (#1312)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1336-1351):
External calls:
- updatePool(_pid) (#1340)
- corgiS.mint(devaddr,corgiSReward.div(10)) (#1310)
- corgiS.mint(address(this),corgiSReward) (#1311)
- safeCorgiSTransfer(msg.sender,pending) (#1343)
- transferSuccess = corgiS.transfer(_to,corgiSBal) (#1369)
- transferSuccess = corgiS.transfer(_to,_amount) (#1371)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1347)
State variables written after the call(s):
- user.rewardDebt = user.amount.mul(pool.accCorgiSPerShare).div(1e12) (#1349)
Apply the check-effects-interactions pattern.
Additional information: link
BEP20.constructor(string,string).symbol (#536) shadows:
- BEP20.symbol() (#553-555) (function)
Rename the local variables that shadow another component.
Additional information: link
MasterChef.set(uint256,uint256,bool) (#1262-1268) should emit an event for:
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1266)
Emit an event for critical parameter changes.
Additional information: link
MasterChef.dev(address)._devaddr (#1377) lacks a zero-check on :
- devaddr = _devaddr (#1379)
Check that the address is not zero.
Additional information: link
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1336-1351):
External calls:
- updatePool(_pid) (#1340)
- corgiS.mint(devaddr,corgiSReward.div(10)) (#1310)
- corgiS.mint(address(this),corgiSReward) (#1311)
- safeCorgiSTransfer(msg.sender,pending) (#1343)
- transferSuccess = corgiS.transfer(_to,corgiSBal) (#1369)
- transferSuccess = corgiS.transfer(_to,_amount) (#1371)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1347)
Event emitted after the call(s):
- Withdraw(msg.sender,_pid,_amount) (#1350)
Apply the check-effects-interactions pattern.
Additional information: link
CorgiSToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1008-1049) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,CORIS:delegateBySig: signature expired) (#1047)
Avoid relying on block.timestamp.
Additional information: link
CorgiSToken.getChainId() (#1167-1171) uses assembly
- INLINE ASM (#1169)
Do not use evm assembly.
Additional information: link
MasterChef.nonDuplicated(IBEP20) (#1230-1233) compares to a boolean constant:
-require(bool,string)(poolExistence[_lpToken] == false,nonDuplicated: duplicated) (#1231)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '^0.6.0', '^0.6.2']
- ^0.6.0 (#5)
- ^0.6.0 (#31)
- ^0.6.0 (#100)
- ^0.6.0 (#179)
- ^0.6.2 (#340)
- ^0.6.0 (#483)
- ^0.6.0 (#791)
- ^0.6.0 (#867)
- 0.6.12 (#931)
- 0.6.12 (#1177)
Use one Solidity version.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#331-334) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#867) 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._functionCallWithValue(address,bytes,uint256,string) (#456-477):
- (success,returndata) = target.call{value: weiValue}(data) (#460)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MasterChef.dev(address)._devaddr (#1377) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#23)" inContext (#17-26)
Remove redundant statements if they congest code but offer no value.
Additional information: link
dev(address) should be declared external:
- MasterChef.dev(address) (#1377-1381)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has a considerable age, but social accounts / website are missing or have few users
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account