Torii Finance is a next generation decentralized finance protocol focused on NextGen fungible tokens and digital assets
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in TORII._transfer(address,address,uint256) (#465-524):
External calls:
- swapAndLiquify(addToLiquidityAmount) (#507)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
External calls sending eth:
- swapAndLiquify(addToLiquidityAmount) (#507)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,TORII: transfer amount exceeds balance) (#510)
- _balances[address(this)] = _balances[address(this)].add(taxAmount) (#517)
- _balances[recipient] = _balances[recipient].add(amount) (#522)
Apply the check-effects-interactions pattern.
Additional information: link
TORII.migrateAccounts(address[],uint256[]) (#604-614) contains a tautology or contradiction:
- require(bool,string)(cnt > 0 && cnt <= 255,TORII: number or recipients must be more then 0 and not much than 255) (#606)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Address.isContract(address) (#128-139) uses assembly
- INLINE ASM (#135-137)
Address._functionCallWithValue(address,bytes,uint256,string) (#173-198) uses assembly
- INLINE ASM (#190-193)
Do not use evm assembly.
Additional information: link
Address.functionCall(address,bytes) (#147-149) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#157-163) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#164-172) is never used and should be removed
Address.sendValue(address,uint256) (#140-146) is never used and should be removed
Context._msgData() (#24-26) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.9 (#17) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 is not recommended for deployment
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._mint(address,uint256) (#263-268) has costly operations inside a loop:
- _totalSupply = _totalSupply.add(amount) (#265)
Use a local variable to hold the loop computation result.
Additional information: link
TORII.addLiquidity(uint256,uint256) (#409-422) ignores return value by pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
Ensure that all the return values of the function calls are used.
Additional information: link
BEP20.allowance(address,address).owner (#240) shadows:
- Ownable.owner() (#33-35) (function)
BEP20._approve(address,address,uint256).owner (#271) shadows:
- Ownable.owner() (#33-35) (function)
Rename the local variables that shadow another component.
Additional information: link
TORII.setTaxPercent(uint256) (#565-568) should emit an event for:
- taxPercent = newTaxPercent (#567)
TORII.setMaxTransferAmount(uint256) (#570-572) should emit an event for:
- maxTransferAmount = newMaxTransferAmount (#571)
TORII.setAddToLiquidityAmount(uint256) (#595-597) should emit an event for:
- addToLiquidityAmount = newAddToLiquidityAmount (#596)
TORII.setMaxTaxFreeTransferAmount(uint256) (#599-601) should emit an event for:
- maxTaxFreeTransferAmount = newMaxTaxFreeTransferAmount (#600)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in TORII.constructor() (#375-396):
External calls:
- pancakeSwapV2Pair = IPancakeSwapV2Factory(pancakeSwapV2Router.factory()).createPair(address(this),pancakeSwapV2Router.WETH()) (#382-383)
State variables written after the call(s):
- _owner = _msgSender() (#394)
- addToLiquidityAmount = 3 * 1e18 (#387)
- exchangesList[pancakeSwapV2Pair] = true (#384)
- maxTaxFreeTransferAmount = 3 * 1e18 (#388)
- maxTransferAmount = 6 * 1e18 (#389)
- swapAndLiquifyEnabled = true (#386)
- taxExcludedList[address(this)] = true (#392)
- taxExcludedList[_owner] = true (#395)
- taxPercent = 100 (#390)
Reentrancy in TORII.swapAndLiquify(uint256) (#424-445):
External calls:
- swapTokensForBnb(half) (#436)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
- addLiquidity(otherHalf,newBalance) (#442)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#442)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#442)
- _allowances[owner][spender] = amount (#278)
Reentrancy in TORII.transferFrom(address,address,uint256) (#547-551):
External calls:
- _transfer(sender,recipient,amount) (#548)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
External calls sending eth:
- _transfer(sender,recipient,amount) (#548)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,TORII: transfer amount exceeds allowance)) (#549)
- _allowances[owner][spender] = amount (#278)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TORII._transfer(address,address,uint256) (#465-524):
External calls:
- swapAndLiquify(addToLiquidityAmount) (#507)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
External calls sending eth:
- swapAndLiquify(addToLiquidityAmount) (#507)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
Event emitted after the call(s):
- Taxed(sender,recipient,taxAmount) (#518)
- Transfer(sender,address(this),taxAmount) (#519)
- Transfer(sender,recipient,amount) (#523)
Reentrancy in TORII.addLockedLiquidity(uint256,uint256) (#398-407):
External calls:
- addLiquidity(tokenAmount,bnbAmount) (#405)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
Event emitted after the call(s):
- Liquify(_msgSender(),tokenAmount,bnbAmount) (#406)
Reentrancy in TORII.swapAndLiquify(uint256) (#424-445):
External calls:
- swapTokensForBnb(half) (#436)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
- addLiquidity(otherHalf,newBalance) (#442)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#442)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#279)
- addLiquidity(otherHalf,newBalance) (#442)
- SwapAndLiquify(half,newBalance,otherHalf) (#444)
Reentrancy in TORII.transferFrom(address,address,uint256) (#547-551):
External calls:
- _transfer(sender,recipient,amount) (#548)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
- pancakeSwapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#456-462)
External calls sending eth:
- _transfer(sender,recipient,amount) (#548)
- pancakeSwapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#414-421)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#279)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,TORII: transfer amount exceeds allowance)) (#549)
Apply the check-effects-interactions pattern.
Additional information: link
TORII.lockLpTokens(uint256) (#553-557) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(lpUnlockTimestamp <= block.timestamp,TORII: already locked) (#554)
TORII.recoverTokens(address,uint256) (#630-635) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(lpUnlockTimestamp <= block.timestamp,TORII: can`t withdraw LP tokens before unlock time) (#632)
Avoid relying on block.timestamp.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#140-146):
- (success) = recipient.call{value: amount}() (#144)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#173-198):
- (success,returndata) = target.call{value: weiValue}(data) (#181)
Low level call in TORII.recoverBnb(uint256) (#637-641):
- (sent) = _msgSender().call{value: amount}() (#639)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Ownable._owner (#31) is not in mixedCase
Variable BEP20._balances (#206) is not in mixedCase
Variable BEP20._allowances (#208) is not in mixedCase
Variable BEP20._totalSupply (#210) is not in mixedCase
Variable BEP20._name (#212) is not in mixedCase
Variable BEP20._symbol (#213) is not in mixedCase
Variable BEP20._decimals (#214) is not in mixedCase
Function IPancakeSwapV2Router01.WETH() (#302) is not in mixedCase
Variable TORII.MAX_SYPPLY (#332) is not in mixedCase
Variable TORII.MAX_INT (#333) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
TORII.MAX_INT (#333) is never used in TORII (#328-647)
Remove unused state variables.
Additional information: link
TORII.MAX_INT (#333) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#40-42)
pause() should be declared external:
- Pausable.pause() (#63-66)
unpause() should be declared external:
- Pausable.unpause() (#67-70)
name() should be declared external:
- BEP20.name() (#220-222)
decimals() should be declared external:
- BEP20.decimals() (#224-226)
symbol() should be declared external:
- BEP20.symbol() (#228-230)
totalSupply() should be declared external:
- BEP20.totalSupply() (#232-234)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#240-242)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#244-247)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#249-252)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#254-261)
addLockedLiquidity(uint256,uint256) should be declared external:
- TORII.addLockedLiquidity(uint256,uint256) (#398-407)
balanceOfLp() should be declared external:
- TORII.balanceOfLp() (#534-536)
balanceOfBep20(address) should be declared external:
- TORII.balanceOfBep20(address) (#538-540)
transfer(address,uint256) should be declared external:
- TORII.transfer(address,uint256) (#542-545)
transferFrom(address,address,uint256) should be declared external:
- TORII.transferFrom(address,address,uint256) (#547-551)
migrateAccounts(address[],uint256[]) should be declared external:
- TORII.migrateAccounts(address[],uint256[]) (#604-614)
availableTokensToMint() should be declared external:
- TORII.availableTokensToMint() (#616-618)
mint(uint256) should be declared external:
- TORII.mint(uint256) (#620-623)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper 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 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 CoinGecko rank
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account