Welcome to the Official Twitter for the Teddinu Ecosystem #TEDDINU #autostaking TG: https://t.co/uJdNtJW2Pg
Teddi.swapBack() (contracts/Teddi.sol#896-926) sends eth to arbitrary user
Dangerous calls:
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Teddi._transferFrom(address,address,uint256) (contracts/Teddi.sol#749-785):
External calls:
- rebase() (contracts/Teddi.sol#766)
- pairContract.sync() (contracts/Teddi.sol#709)
- addLiquidity() (contracts/Teddi.sol#767)
- router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#873-879)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
- swapBack() (contracts/Teddi.sol#768)
- router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#910-916)
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
External calls sending eth:
- addLiquidity() (contracts/Teddi.sol#767)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
- swapBack() (contracts/Teddi.sol#768)
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
State variables written after the call(s):
- _gonBalances[sender] = _gonBalances[sender].sub(gonAmount) (contracts/Teddi.sol#771)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived) (contracts/Teddi.sol#775-777)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (contracts/Teddi.sol#772-774)
- _gonBalances[firePit] = _gonBalances[firePit].add(gonAmount.mul(firePitFee).div(feeDenominator)) (contracts/Teddi.sol#832-834)
- _gonBalances[treasuryReceiver] = _gonBalances[treasuryReceiver].add(gonAmount.mul(_treasuryFee).div(feeDenominator)) (contracts/Teddi.sol#835-839)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(gonAmount.mul(_tedRiskFreeValueFee).div(feeDenominator)) (contracts/Teddi.sol#840-844)
- _gonBalances[autoLiquidityReceiver] = _gonBalances[autoLiquidityReceiver].add(gonAmount.mul(_liquidityFee).div(feeDenominator)) (contracts/Teddi.sol#845-847)
- swapBack() (contracts/Teddi.sol#768)
- inSwap = true (contracts/Teddi.sol#596)
- inSwap = false (contracts/Teddi.sol#598)
Apply the check-effects-interactions pattern.
Additional information: link
Teddi._name (contracts/Teddi.sol#545) shadows:
- ERC20Detailed._name (contracts/Teddi.sol#512)
Teddi._symbol (contracts/Teddi.sol#546) shadows:
- ERC20Detailed._symbol (contracts/Teddi.sol#513)
Teddi._decimals (contracts/Teddi.sol#547) shadows:
- ERC20Detailed._decimals (contracts/Teddi.sol#514)
Remove the state variable shadowing.
Additional information: link
Teddi.isAntiBotEnded() (contracts/Teddi.sol#636-643) uses a dangerous strict equality:
- antiBotStart == 0 (contracts/Teddi.sol#641)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
Teddi.rebase() (contracts/Teddi.sol#682-712) performs a multiplication on the result of a division:
-times = deltaTime.div(720) (contracts/Teddi.sol#687)
-epoch = times.mul(12) (contracts/Teddi.sol#688)
Teddi.rebase() (contracts/Teddi.sol#682-712) performs a multiplication on the result of a division:
-times = deltaTime.div(720) (contracts/Teddi.sol#687)
-_lastRebasedTime = _lastRebasedTime.add(times.mul(720)) (contracts/Teddi.sol#707)
Teddi.getLiquidityBacking(uint256) (contracts/Teddi.sol#1078-1086) performs a multiplication on the result of a division:
-liquidityBalance = _gonBalances[pair].div(_gonsPerFragment) (contracts/Teddi.sol#1083)
-accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()) (contracts/Teddi.sol#1084-1085)
Consider ordering multiplication before division.
Additional information: link
Teddi.addLiquidity() (contracts/Teddi.sol#853-894) ignores return value by router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#873-879)
Teddi.addLiquidity() (contracts/Teddi.sol#853-894) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
Teddi.swapBack() (contracts/Teddi.sol#896-926) ignores return value by router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#910-916)
Teddi.withdrawAllToTreasury() (contracts/Teddi.sol#928-946) ignores return value by router.swapExactTokensForETH(amountToSwap,0,path,treasuryReceiver,block.timestamp) (contracts/Teddi.sol#939-945)
Ensure that all the return values of the function calls are used.
Additional information: link
Teddi.setAntiBotAmount(uint256,uint256) (contracts/Teddi.sol#628-634) should emit an event for:
- antiBotDuration = _duration (contracts/Teddi.sol#632)
Teddi.setFee(uint256,uint256,uint256,uint256,uint256,uint256,uint256) (contracts/Teddi.sol#787-803) should emit an event for:
- firePitFee = firePitFee_ (contracts/Teddi.sol#796)
- sellLiquidityFee = sellLiquidityFee_ (contracts/Teddi.sol#797)
- sellTreasuryFee = sellTreasuryFee_ (contracts/Teddi.sol#798)
- sellTedRiskFreeValueFe = sellTedRiskFreeValueFee (contracts/Teddi.sol#799)
- buyLiquidityFee = buyLiquidityFee_ (contracts/Teddi.sol#800)
- buyTreasuryFee = buyTreasuryFee_ (contracts/Teddi.sol#801)
- buyTedRiskFreeValueFee = buyTedRiskFreeValueFee_ (contracts/Teddi.sol#802)
Emit an event for critical parameter changes.
Additional information: link
Teddi.constructor(address,address,address)._autoLiquidityReceiver (contracts/Teddi.sol#647) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (contracts/Teddi.sol#660)
Teddi.constructor(address,address,address)._treasuryReceiver (contracts/Teddi.sol#648) lacks a zero-check on :
- treasuryReceiver = _treasuryReceiver (contracts/Teddi.sol#661)
Teddi.constructor(address,address,address)._tedRiskFreeValueReceiver (contracts/Teddi.sol#649) lacks a zero-check on :
- tedRiskFreeValueReceiver = _tedRiskFreeValueReceiver (contracts/Teddi.sol#662)
Teddi.setFeeReceivers(address,address,address)._autoLiquidityReceiver (contracts/Teddi.sol#1069) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (contracts/Teddi.sol#1073)
Teddi.setFeeReceivers(address,address,address)._treasuryReceiver (contracts/Teddi.sol#1070) lacks a zero-check on :
- treasuryReceiver = _treasuryReceiver (contracts/Teddi.sol#1074)
Teddi.setFeeReceivers(address,address,address)._tedRiskFreeValueReceiver (contracts/Teddi.sol#1071) lacks a zero-check on :
- tedRiskFreeValueReceiver = _tedRiskFreeValueReceiver (contracts/Teddi.sol#1075)
Teddi.setPairAddress(address)._pairAddress (contracts/Teddi.sol#1092) lacks a zero-check on :
- pairAddress = _pairAddress (contracts/Teddi.sol#1093)
Check that the address is not zero.
Additional information: link
Reentrancy in Teddi.addLiquidity() (contracts/Teddi.sol#853-894):
External calls:
- router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#873-879)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
External calls sending eth:
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
State variables written after the call(s):
- _lastAddLiquidityTime = block.timestamp (contracts/Teddi.sol#893)
Reentrancy in Teddi.constructor(address,address,address) (contracts/Teddi.sol#646-680):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (contracts/Teddi.sol#655-658)
State variables written after the call(s):
- _allowedFragments[address(this)][address(router)] = 115792089237316195423570985008687907853269984665640564039457584007913129639935 (contracts/Teddi.sol#664)
- _autoAddLiquidity = false (contracts/Teddi.sol#674)
- _autoRebase = false (contracts/Teddi.sol#673)
- _gonBalances[treasuryReceiver] = TOTAL_GONS (contracts/Teddi.sol#669)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (contracts/Teddi.sol#670)
- _initRebaseStartTime = block.timestamp (contracts/Teddi.sol#671)
- _isFeeExempt[treasuryReceiver] = true (contracts/Teddi.sol#675)
- _isFeeExempt[address(this)] = true (contracts/Teddi.sol#676)
- _lastRebasedTime = block.timestamp (contracts/Teddi.sol#672)
- _transferOwnership(treasuryReceiver) (contracts/Teddi.sol#678)
- _owner = newOwner (contracts/Teddi.sol#507)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (contracts/Teddi.sol#668)
- autoLiquidityReceiver = _autoLiquidityReceiver (contracts/Teddi.sol#660)
- pairAddress = pair (contracts/Teddi.sol#665)
- pairContract = IPancakeSwapPair(pair) (contracts/Teddi.sol#666)
- tedRiskFreeValueReceiver = _tedRiskFreeValueReceiver (contracts/Teddi.sol#662)
- treasuryReceiver = _treasuryReceiver (contracts/Teddi.sol#661)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Teddi._transferFrom(address,address,uint256) (contracts/Teddi.sol#749-785):
External calls:
- rebase() (contracts/Teddi.sol#766)
- pairContract.sync() (contracts/Teddi.sol#709)
- addLiquidity() (contracts/Teddi.sol#767)
- router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#873-879)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
- swapBack() (contracts/Teddi.sol#768)
- router.swapExactTokensForETH(amountToSwap,0,path,address(this),block.timestamp) (contracts/Teddi.sol#910-916)
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
External calls sending eth:
- addLiquidity() (contracts/Teddi.sol#767)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (contracts/Teddi.sol#884-891)
- swapBack() (contracts/Teddi.sol#768)
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount.div(_gonsPerFragment)) (contracts/Teddi.sol#849)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (contracts/Teddi.sol#772-774)
- Transfer(sender,recipient,gonAmountReceived.div(_gonsPerFragment)) (contracts/Teddi.sol#779-783)
Reentrancy in Teddi.constructor(address,address,address) (contracts/Teddi.sol#646-680):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (contracts/Teddi.sol#655-658)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (contracts/Teddi.sol#506)
- _transferOwnership(treasuryReceiver) (contracts/Teddi.sol#678)
- Transfer(address(0x0),treasuryReceiver,_totalSupply) (contracts/Teddi.sol#679)
Reentrancy in Teddi.rebase() (contracts/Teddi.sol#682-712):
External calls:
- pairContract.sync() (contracts/Teddi.sol#709)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (contracts/Teddi.sol#711)
Apply the check-effects-interactions pattern.
Additional information: link
Teddi.isAntiBotEnded() (contracts/Teddi.sol#636-643) uses timestamp for comparisons
Dangerous comparisons:
- antiBotStart == 0 (contracts/Teddi.sol#641)
- block.timestamp > antiBotStart.add(antiBotDuration) (contracts/Teddi.sol#642)
Teddi.rebase() (contracts/Teddi.sol#682-712) uses timestamp for comparisons
Dangerous comparisons:
- deltaTimeFromInit < (31536000) (contracts/Teddi.sol#690)
- deltaTimeFromInit >= (7 * 31536000) (contracts/Teddi.sol#692)
- deltaTimeFromInit >= (2 * 31536000) (contracts/Teddi.sol#694)
- i < times (contracts/Teddi.sol#700)
Teddi.shouldRebase() (contracts/Teddi.sol#956-963) uses timestamp for comparisons
Dangerous comparisons:
- _autoRebase && (_totalSupply < MAX_SUPPLY) && msg.sender != pair && ! inSwap && block.timestamp >= (_lastRebasedTime + 720) (contracts/Teddi.sol#957-962)
Teddi.shouldAddLiquidity() (contracts/Teddi.sol#965-971) uses timestamp for comparisons
Dangerous comparisons:
- _autoAddLiquidity && ! inSwap && msg.sender != pair && block.timestamp >= (_lastAddLiquidityTime + 86400) (contracts/Teddi.sol#966-970)
Avoid relying on block.timestamp.
Additional information: link
SafeMath.mod(uint256,uint256) (contracts/Teddi.sol#90-93) is never used and should be removed
SafeMathInt.abs(int256) (contracts/Teddi.sol#35-38) is never used and should be removed
SafeMathInt.add(int256,int256) (contracts/Teddi.sol#29-33) is never used and should be removed
SafeMathInt.div(int256,int256) (contracts/Teddi.sol#17-21) is never used and should be removed
SafeMathInt.mul(int256,int256) (contracts/Teddi.sol#9-15) is never used and should be removed
SafeMathInt.sub(int256,int256) (contracts/Teddi.sol#23-27) is never used and should be removed
Remove unused functions.
Additional information: link
Teddi.totalFee (contracts/Teddi.sol#568-571) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(treasuryFee).add(tedRiskFreeValueFee).add(firePitFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Low level call in Teddi.swapBack() (contracts/Teddi.sol#896-926):
- (success) = address(tedRiskFreeValueReceiver).call{gas: 30000,value: amountETHToTreasuryAndRFV}() (contracts/Teddi.sol#922-925)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeSwapPair.DOMAIN_SEPARATOR() (contracts/Teddi.sol#158) is not in mixedCase
Function IPancakeSwapPair.PERMIT_TYPEHASH() (contracts/Teddi.sol#160) is not in mixedCase
Function IPancakeSwapPair.MINIMUM_LIQUIDITY() (contracts/Teddi.sol#191) is not in mixedCase
Function IPancakeSwapRouter.WETH() (contracts/Teddi.sol#237) is not in mixedCase
Parameter Teddi.setAddLPAddress(address)._address (contracts/Teddi.sol#623) is not in mixedCase
Parameter Teddi.setAntiBotAmount(uint256,uint256)._amount (contracts/Teddi.sol#628) is not in mixedCase
Parameter Teddi.setAntiBotAmount(uint256,uint256)._duration (contracts/Teddi.sol#628) is not in mixedCase
Parameter Teddi.setAutoRebase(bool)._flag (contracts/Teddi.sol#977) is not in mixedCase
Parameter Teddi.setAutoAddLiquidity(bool)._flag (contracts/Teddi.sol#986) is not in mixedCase
Parameter Teddi.checkFeeExempt(address)._addr (contracts/Teddi.sol#1049) is not in mixedCase
Parameter Teddi.setFeeReceivers(address,address,address)._autoLiquidityReceiver (contracts/Teddi.sol#1069) is not in mixedCase
Parameter Teddi.setFeeReceivers(address,address,address)._treasuryReceiver (contracts/Teddi.sol#1070) is not in mixedCase
Parameter Teddi.setFeeReceivers(address,address,address)._tedRiskFreeValueReceiver (contracts/Teddi.sol#1071) is not in mixedCase
Parameter Teddi.setWhitelist(address)._addr (contracts/Teddi.sol#1088) is not in mixedCase
Parameter Teddi.setPairAddress(address)._pairAddress (contracts/Teddi.sol#1092) is not in mixedCase
Parameter Teddi.setLP(address)._address (contracts/Teddi.sol#1096) is not in mixedCase
Constant Teddi._name (contracts/Teddi.sol#545) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi._symbol (contracts/Teddi.sol#546) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi._decimals (contracts/Teddi.sol#547) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Teddi._isFeeExempt (contracts/Teddi.sol#550) is not in mixedCase
Constant Teddi.liquidityFee (contracts/Teddi.sol#564) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi.treasuryFee (contracts/Teddi.sol#565) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi.tedRiskFreeValueFee (contracts/Teddi.sol#566) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi.feeDenominator (contracts/Teddi.sol#579) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Teddi.firePit (contracts/Teddi.sol#583-584) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Teddi._autoRebase (contracts/Teddi.sol#606) is not in mixedCase
Variable Teddi._autoAddLiquidity (contracts/Teddi.sol#607) is not in mixedCase
Variable Teddi._initRebaseStartTime (contracts/Teddi.sol#608) is not in mixedCase
Variable Teddi._lastRebasedTime (contracts/Teddi.sol#609) is not in mixedCase
Variable Teddi._lastAddLiquidityTime (contracts/Teddi.sol#610) is not in mixedCase
Variable Teddi._totalSupply (contracts/Teddi.sol#611) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/Teddi.sol#242) is too similar to IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/Teddi.sol#243)
Prevent variables from having similar names.
Additional information: link
Teddi.slitherConstructorConstantVariables() (contracts/Teddi.sol#539-1110) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (contracts/Teddi.sol#581)
Teddi.slitherConstructorConstantVariables() (contracts/Teddi.sol#539-1110) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (contracts/Teddi.sol#582)
Teddi.slitherConstructorConstantVariables() (contracts/Teddi.sol#539-1110) uses literals with too many digits:
- firePit = 0x0000000000000000000000000000000000000000 (contracts/Teddi.sol#583-584)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (contracts/Teddi.sol#7) is never used in SafeMathInt (contracts/Teddi.sol#5-39)
Remove unused state variables.
Additional information: link
owner() should be declared external:
- Ownable.owner() (contracts/Teddi.sol#482-484)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/Teddi.sol#495-498)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Teddi.sol#500-502)
name() should be declared external:
- ERC20Detailed.name() (contracts/Teddi.sol#526-528)
symbol() should be declared external:
- ERC20Detailed.symbol() (contracts/Teddi.sol#530-532)
decimals() should be declared external:
- ERC20Detailed.decimals() (contracts/Teddi.sol#534-536)
setAddLPAddress(address) should be declared external:
- Teddi.setAddLPAddress(address) (contracts/Teddi.sol#623-627)
setAntiBotAmount(uint256,uint256) should be declared external:
- Teddi.setAntiBotAmount(uint256,uint256) (contracts/Teddi.sol#628-634)
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 KYC or doxxing proof
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token is relatively young, but twitter if very old (probably it's fake).
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account