DCVC Finance - A decentralized marketplace for rewards.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DCVCToken._writeCheckpoint(address,uint32,uint256,uint256) (#1564-1582) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1574)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract DCVCToken (#1125-1616) has payable functions:
- DCVCToken.receive() (#1273-1277)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#467-473):
- (success) = recipient.call{value: amount}() (#471)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#528-535):
- (success,returndata) = target.call{value: value}(data) (#533)
Low level call in Address.functionStaticCall(address,bytes,string) (#553-559):
- (success,returndata) = target.staticcall(data) (#557)
Low level call in Address.functionDelegateCall(address,bytes,string) (#577-583):
- (success,returndata) = target.delegatecall(data) (#581)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
DCVCToken._transfer(address,address,uint256) (#1199-1233) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1216)
-burnAmount = taxAmount.mul(burnRate).div(100) (#1217)
DCVCToken._transfer(address,address,uint256) (#1199-1233) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1216)
-teamAmount = taxAmount.mul(125).div(1000) (#1218)
DCVCToken._transfer(address,address,uint256) (#1199-1233) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1216)
-marketAmount = taxAmount.mul(125).div(1000) (#1219)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DCVCToken._transfer(address,address,uint256) (#1199-1233):
External calls:
- swapAndLiquify() (#1209)
- perSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(bonus),block.timestamp) (#1264-1270)
- bonus.addRepo(newBalance) (#1252)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1213)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
- super._transfer(sender,address(this),burnAmount) (#1226)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
- super._transfer(sender,team,teamAmount) (#1227)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
- super._transfer(sender,market,marketAmount) (#1228)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
- super._transfer(sender,reward,liquidityAmount) (#1229)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
- super._transfer(sender,recipient,sendAmount) (#1230)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#815)
- _balances[recipient] = _balances[recipient].add(amount) (#816)
Apply the check-effects-interactions pattern.
Additional information: link
BEP20.constructor(string,string).name (#634) shadows:
- BEP20.name() (#650-652) (function)
- IBEP20.name() (#124) (function)
BEP20.constructor(string,string).symbol (#634) shadows:
- BEP20.symbol() (#664-666) (function)
- IBEP20.symbol() (#119) (function)
BEP20.allowance(address,address).owner (#698) shadows:
- Ownable.owner() (#61-63) (function)
BEP20._approve(address,address,uint256).owner (#870) shadows:
- Ownable.owner() (#61-63) (function)
Rename the local variables that shadow another component.
Additional information: link
DCVCToken.setMaxTxAmount(uint256) (#1291-1294) should emit an event for:
- maxTxAmount = _maxTxAmount (#1293)
Emit an event for critical parameter changes.
Additional information: link
DCVCToken.setMasterchef(address)._masterchef (#1295) lacks a zero-check on :
- masterChef = _masterchef (#1296)
Check that the address is not zero.
Additional information: link
DCVCToken.disperseToken(IBEP20,address[],uint256[]) (#1596-1603) has external calls inside a loop: require(bool)(token.transfer(address(recipients[i_scope_0]),values[i_scope_0])) (#1602)
DCVCToken.disperseTokenSimple(IBEP20,address[],uint256[]) (#1605-1608) has external calls inside a loop: require(bool)(token.transferFrom(msg.sender,address(recipients[i]),values[i])) (#1607)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in DCVCToken._transfer(address,address,uint256) (#1199-1233):
External calls:
- swapAndLiquify() (#1209)
- perSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(bonus),block.timestamp) (#1264-1270)
- bonus.addRepo(newBalance) (#1252)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,recipient,sendAmount) (#1230)
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,recipient,amount) (#1213)
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,team,teamAmount) (#1227)
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,address(this),burnAmount) (#1226)
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,reward,liquidityAmount) (#1229)
- Transfer(sender,recipient,amount) (#817)
- super._transfer(sender,market,marketAmount) (#1228)
Apply the check-effects-interactions pattern.
Additional information: link
DCVCToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1430-1471) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,DCVC::delegateBySig: signature expired) (#1469)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#440-449) uses assembly
- INLINE ASM (#447)
Address._verifyCallResult(bool,bytes,string) (#585-602) uses assembly
- INLINE ASM (#594-597)
DCVCToken.getChainId() (#1589-1593) uses assembly
- INLINE ASM (#1591)
Do not use evm assembly.
Additional information: link
DCVCToken._transfer(address,address,uint256) (#1199-1233) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(perSwapRouter) != address(0) && perSwapPair != address(0) && sender != perSwapPair && sender != owner() (#1202-1207)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.5.0', '>=0.6.0<0.8.0', '>=0.6.2', '>=0.6.2<0.8.0', '>=0.6.4']
- >=0.6.0<0.8.0 (#5)
- >=0.6.0<0.8.0 (#30)
- >=0.6.0<0.8.0 (#98)
- >=0.6.4 (#103)
- >=0.6.0<0.8.0 (#200)
- >=0.6.2<0.8.0 (#417)
- >=0.6.2<0.8.0 (#609)
- >=0.5.0 (#903)
- >=0.5.0 (#923)
- >=0.6.2 (#978)
- >=0.6.2 (#1076)
- 0.6.12 (#1122)
Use one Solidity version.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#585-602) is never used and should be removed
Address.functionCall(address,bytes) (#493-495) is never used and should be removed
Address.functionCall(address,bytes,string) (#503-505) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#518-520) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#528-535) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#567-569) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#577-583) is never used and should be removed
Address.functionStaticCall(address,bytes) (#543-545) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#553-559) is never used and should be removed
Address.isContract(address) (#440-449) is never used and should be removed
Address.sendValue(address,uint256) (#467-473) is never used and should be removed
BEP20._burn(address,uint256) (#848-854) is never used and should be removed
BEP20._burnFrom(address,uint256) (#887-894) is never used and should be removed
Context._msgData() (#22-25) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#387-390) is never used and should be removed
SafeMath.mod(uint256,uint256) (#349-352) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#407-410) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#221-225) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#257-260) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#267-270) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#242-250) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#232-235) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.6.0<0.8.0 (#5) is too complex
Pragma version>=0.6.0<0.8.0 (#30) is too complex
Pragma version>=0.6.0<0.8.0 (#98) is too complex
Pragma version>=0.6.4 (#103) allows old versions
Pragma version>=0.6.0<0.8.0 (#200) is too complex
Pragma version>=0.6.2<0.8.0 (#417) is too complex
Pragma version>=0.6.2<0.8.0 (#609) is too complex
Pragma version>=0.5.0 (#903) allows old versions
Pragma version>=0.5.0 (#923) allows old versions
Pragma version>=0.6.2 (#978) allows old versions
Pragma version>=0.6.2 (#1076) 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
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#940) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#941) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#958) is not in mixedCase
Function IUniswapV2Router01.WETH() (#982) is not in mixedCase
Parameter DCVCToken.mint(address,uint256)._to (#1193) is not in mixedCase
Parameter DCVCToken.mint(address,uint256)._amount (#1193) is not in mixedCase
Parameter DCVCToken.updateTransferTaxRate(uint16)._transferTaxRate (#1283) is not in mixedCase
Parameter DCVCToken.setBank(address)._bank (#1288) is not in mixedCase
Parameter DCVCToken.setMaxTxAmount(uint256)._maxTxAmount (#1291) is not in mixedCase
Parameter DCVCToken.setMasterchef(address)._masterchef (#1295) is not in mixedCase
Parameter DCVCToken.setMasterchefTeam(address,address,address,address)._team (#1299) is not in mixedCase
Parameter DCVCToken.setMasterchefTeam(address,address,address,address)._market (#1299) is not in mixedCase
Parameter DCVCToken.setMasterchefTeam(address,address,address,address)._reward (#1299) is not in mixedCase
Parameter DCVCToken.setMasterchefTeam(address,address,address,address)._USDT (#1299) is not in mixedCase
Parameter DCVCToken.updateBurnRate(uint16)._burnRate (#1313) is not in mixedCase
Parameter DCVCToken.updateMinAmountToLiquify(uint256)._minAmount (#1323) is not in mixedCase
Parameter DCVCToken.updateSwapAndLiquifyEnabled(bool)._enabled (#1332) is not in mixedCase
Parameter DCVCToken.updateDCVCSwapRouter(address)._router (#1341) is not in mixedCase
Parameter DCVCToken.updateOperator(address,bool)._operators (#1611) is not in mixedCase
Parameter DCVCToken.updateOperator(address,bool)._status (#1611) is not in mixedCase
Variable DCVCToken.BUSD (#1134) is not in mixedCase
Variable DCVCToken._delegates (#1372) 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
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#987) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#988)
Prevent variables from having similar names.
Additional information: link
DCVCToken.slitherConstructorVariables() (#1125-1616) uses literals with too many digits:
- minAmountToLiquify = 100000000000000000000 (#1141)
DCVCToken.slitherConstructorVariables() (#1125-1616) uses literals with too many digits:
- maxTxAmount = 1000000000000000000000 (#1142)
DCVCToken.slitherConstructorConstantVariables() (#1125-1616) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#1133)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#80-83)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#89-93)
decimals() should be declared external:
- BEP20.decimals() (#657-659)
symbol() should be declared external:
- BEP20.symbol() (#664-666)
totalSupply() should be declared external:
- BEP20.totalSupply() (#671-673)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#690-693)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#698-700)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#709-712)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#726-738)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#752-755)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#771-778)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#788-791)
mint(address,uint256) should be declared external:
- DCVCToken.mint(address,uint256) (#1193-1196)
updateTransferTaxRate(uint16) should be declared external:
- DCVCToken.updateTransferTaxRate(uint16) (#1283-1287)
setBank(address) should be declared external:
- DCVCToken.setBank(address) (#1288-1290)
setMaxTxAmount(uint256) should be declared external:
- DCVCToken.setMaxTxAmount(uint256) (#1291-1294)
setMasterchef(address) should be declared external:
- DCVCToken.setMasterchef(address) (#1295-1297)
setMasterchefTeam(address,address,address,address) should be declared external:
- DCVCToken.setMasterchefTeam(address,address,address,address) (#1299-1308)
updateBurnRate(uint16) should be declared external:
- DCVCToken.updateBurnRate(uint16) (#1313-1317)
updateMinAmountToLiquify(uint256) should be declared external:
- DCVCToken.updateMinAmountToLiquify(uint256) (#1323-1326)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- DCVCToken.updateSwapAndLiquifyEnabled(bool) (#1332-1335)
updateDCVCSwapRouter(address) should be declared external:
- DCVCToken.updateDCVCSwapRouter(address) (#1341-1346)
operator() should be declared external:
- DCVCToken.operator() (#1351-1353)
transferOperator(address) should be declared external:
- DCVCToken.transferOperator(address) (#1359-1363)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 8% buy tax and 8% sell tax.
Taxes are low and contract ownership is renounced.
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Telegram account has relatively few subscribers
Twitter account has relatively few followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account