TeddyDoge is a community-driven organization built to solve what might be called the “One-stop full-featured decentralized exchange.” Teddyswap progress is intended to create a broader range of network effects.
Thus far, the core products, which will be described in more detail here, include swap, aggregate transactions,liquidity,Farm,15 mainstream chain transactions, 15 mainstream cross-chain,15 mainstream chain chart system,Token and liquidity multi-scheme locking,TeddyWallet and derivatives.
Teddyswap’s products are configured in a way that allows the entire platform to maintain decentralized governance of TEDDY token holders, while continuing to innovate on the collective foundations by design. Whereas major structural changes are voted on by the community, the day-to-day operations, rebalancing of pools and ratios, business strategy, and overall development is ultimately decided on by our Teddyswap team.
Reentrancy in TeddyDoge._transfer(address,address,uint256) (#422-471):
External calls:
- swapAndLiquify(contractTokenBalance) (#460)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#460)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
State variables written after the call(s):
- _balances[sender] = senderBalance - amount (#467)
- _balances[recipient] += _amount (#469)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
TeddyDoge.addLiquidity(uint256,uint256) (#536-546) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in TeddyDoge._transfer(address,address,uint256) (#422-471):
External calls:
- swapAndLiquify(contractTokenBalance) (#460)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#460)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
Event emitted after the call(s):
- Transfer(sender,recipient,_amount) (#470)
Reentrancy in TeddyDoge.transferFrom(address,address,uint256) (#384-397):
External calls:
- _transfer(sender,recipient,amount) (#389)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
External calls sending eth:
- _transfer(sender,recipient,amount) (#389)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#500)
- _approve(sender,_msgSender(),currentAllowance - amount) (#394)
Reentrancy in TeddyDoge.swapAndLiquify(uint256) (#512-520):
External calls:
- swapTokensForEth(half) (#516)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
- addLiquidity(otherHalf,newBalance) (#518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#500)
- addLiquidity(otherHalf,newBalance) (#518)
- SwapAndLiquify(half,newBalance,otherHalf) (#519)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#96-110) uses assembly
- INLINE ASM (#102-105)
Address.isContract(address) (#73-78) uses assembly
- INLINE ASM (#76)
Do not use evm assembly.
Additional information: link
TeddyDoge.deliver(address) (#503-510) compares to a boolean constant:
-_isExcludeds[lp] == true (#505)
Remove the equality to the boolean constant.
Additional information: link
solc-0.8.10 is not recommended for deployment
Pragma version^0.8.0 (#2) 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) (#96-110):
- (success,returndata) = target.call{value: weiValue}(data) (#97)
Low level call in Address.sendValue(address,uint256) (#79-82):
- (success) = to.call{value: amount}() (#80)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Redundant expression "this (#67)" inContext (#62-70)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeSwapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#172) is too similar to IPancakeSwapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#173)
Prevent variables from having similar names.
Additional information: link
SafeMath.mul(uint256,uint256) (#39-46) is never used and should be removed
Address.sendValue(address,uint256) (#79-82) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#89-91) is never used and should be removed
SafeMath.add(uint256,uint256) (#26-30) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#56-59) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#92-95) is never used and should be removed
Context._msgData() (#66-69) is never used and should be removed
SafeMath.mod(uint256,uint256) (#53-55) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#96-110) is never used and should be removed
Address.isContract(address) (#73-78) is never used and should be removed
Address.functionCall(address,bytes,string) (#86-88) is never used and should be removed
Address.functionCall(address,bytes) (#83-85) is never used and should be removed
Remove unused functions.
Additional information: link
Function IPancakeSwapV2Pair.DOMAIN_SEPARATOR() (#136) is not in mixedCase
Variable TeddyDoge.Admin (#306) is not in mixedCase
Parameter TeddyDoge.deliver(address)._lp (#503) is not in mixedCase
Function IPancakeSwapV2Pair.PERMIT_TYPEHASH() (#137) is not in mixedCase
Function IPancakeSwapV2Pair.MINIMUM_LIQUIDITY() (#151) is not in mixedCase
Variable TeddyDoge.DEXs (#313) is not in mixedCase
Parameter TeddyDoge.setSwapAndLiquifyEnabled(bool)._enabled (#552) is not in mixedCase
Parameter TeddyDoge.addDex(address)._pair (#413) is not in mixedCase
Parameter TeddyDoge.batchBalanceOf(address[])._accounts (#362) is not in mixedCase
Function IPancakeSwapV2Router01.WETH() (#168) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
TeddyDoge._symbol (#305) should be constant
TeddyDoge._name (#304) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Reentrancy in TeddyDoge.transferFrom(address,address,uint256) (#384-397):
External calls:
- _transfer(sender,recipient,amount) (#389)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
External calls sending eth:
- _transfer(sender,recipient,amount) (#389)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#394)
- _allowances[owner][spender] = amount (#499)
Reentrancy in TeddyDoge.swapAndLiquify(uint256) (#512-520):
External calls:
- swapTokensForEth(half) (#516)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#527-533)
- addLiquidity(otherHalf,newBalance) (#518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,Admin,block.timestamp) (#538-545)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#518)
- _allowances[owner][spender] = amount (#499)
Apply the check-effects-interactions pattern.
Additional information: link
approve(address,uint256) should be declared external:
- TeddyDoge.approve(address,uint256) (#379-382)
transfer(address,uint256) should be declared external:
- TeddyDoge.transfer(address,uint256) (#370-373)
allowance(address,address) should be declared external:
- TeddyDoge.allowance(address,address) (#375-377)
symbol() should be declared external:
- TeddyDoge.symbol() (#346-348)
totalSupply() should be declared external:
- TeddyDoge.totalSupply() (#354-356)
decimals() should be declared external:
- TeddyDoge.decimals() (#350-352)
decreaseAllowance(address,uint256) should be declared external:
- TeddyDoge.decreaseAllowance(address,uint256) (#404-411)
setSwapAndLiquifyEnabled(bool) should be declared external:
- TeddyDoge.setSwapAndLiquifyEnabled(bool) (#552-554)
name() should be declared external:
- TeddyDoge.name() (#342-344)
batchBalanceOf(address[]) should be declared external:
- TeddyDoge.batchBalanceOf(address[]) (#362-368)
deliver(address) should be declared external:
- TeddyDoge.deliver(address) (#503-510)
increaseAllowance(address,uint256) should be declared external:
- TeddyDoge.increaseAllowance(address,uint256) (#399-402)
transferFrom(address,address,uint256) should be declared external:
- TeddyDoge.transferFrom(address,address,uint256) (#384-397)
Use the external attribute for functions never called from the contract.
Additional information: link
TeddyDoge._name (#304) is never used in TeddyDoge (#297-560)
TeddyDoge._symbol (#305) is never used in TeddyDoge (#297-560)
Remove unused state variables.
Additional information: link
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death