TRE Token Logo

TRE Token

About TRE

Listings

Token 10 months
CoinMarketCap 9 months
white paper

Turtle Finance is a decentralized, automatic and multichain smart trading platform. TRE is the Turtle Finance platform governance token, which can be used for community voting and revenue acceleration.
It connects professional trading strategists and amateur traders. Experienced strategists can upload their strategy to Turtle Finance and gain profit from it. On the other hand, the amateur traders provide their funds, and they can directly use these strategies to earn more with their tokens!
Turtle finance can do arbitrage between different DEXs at the same time. Arbitrage opportunities will not exist all the time. When that happens, Turtle Finance will invest idle funds into safe and stable mining pools with a high return rate to earn interest for users.

Social

Laser Scorebeta Last Audit: 19 February 2022

report
Code:


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

Reentrancy in TurtleFinanceMainV1.pairSwap(address,uint256,TurtleFinanceMainV1.UniswapRouterV2SwapTokenParams) (contracts/TurtleFinanceMainV1.sol#326-365):
External calls:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- (item,platformFee) = pair.swap(itemId,marketData) (contracts/TurtleFinanceMainV1.sol#349)
- et.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#354)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
State variables written after the call(s):
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- pool.totalQuantity = pool.totalQuantity + quantity (contracts/TurtleFinanceMainV1.sol#161)
- pool.mainBalance = IERC20(token).balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#162)
- pool.bankBalance = 0 (contracts/TurtleFinanceMainV1.sol#122)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#123)
- pool.bankTotalSaveQuantity += quantity (contracts/TurtleFinanceMainV1.sol#99)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#100)
- pool.bankTotalTakeQuantity += quantity (contracts/TurtleFinanceMainV1.sol#112)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#113)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#101)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#114)
Reentrancy in TurtleFinanceMainV1.pairSwap(address,uint256,TurtleFinanceMainV1.UniswapRouterV2SwapTokenParams) (contracts/TurtleFinanceMainV1.sol#326-365):
External calls:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- (item,platformFee) = pair.swap(itemId,marketData) (contracts/TurtleFinanceMainV1.sol#349)
- et_scope_1.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#360)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
State variables written after the call(s):
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- pool.totalQuantity = pool.totalQuantity + quantity (contracts/TurtleFinanceMainV1.sol#161)
- pool.mainBalance = IERC20(token).balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#162)
- pool.bankBalance = 0 (contracts/TurtleFinanceMainV1.sol#122)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#123)
- pool.bankTotalSaveQuantity += quantity (contracts/TurtleFinanceMainV1.sol#99)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#100)
- pool.bankTotalTakeQuantity += quantity (contracts/TurtleFinanceMainV1.sol#112)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#113)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#101)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#114)
Apply the check-effects-interactions pattern.

Additional information: link

TurtleFinancePairV1.mdexSwapMiningTakerWithdraw(address,address) (contracts/TurtleFinancePairV1.sol#120-127) ignores return value by mdx.transfer(to,mdx.balanceOf(address(this)) - beforeMdxBalance) (contracts/TurtleFinancePairV1.sol#126)
TurtleFinancePairV1.kswapMiningTakerWithdraw(address,uint256,address) (contracts/TurtleFinancePairV1.sol#129-136) ignores return value by kst.transfer(to,kst.balanceOf(address(this)) - beforeKstBalance) (contracts/TurtleFinancePairV1.sol#135)
TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256) (contracts/TurtleFinanceTreRewardV1.sol#58-72) ignores return value by tre.transferFrom(sender,address(this),totalRewardQuantity_) (contracts/TurtleFinanceTreRewardV1.sol#61)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link

TurtleFinanceMainV1._tokenBankTake(address,uint256) (contracts/TurtleFinanceMainV1.sol#105-116) uses a dangerous strict equality:
- require(bool,string)(et.balanceOf(address(this)) - balance == quantity,bank take fail.) (contracts/TurtleFinanceMainV1.sol#111)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

ERC20Contract.constructor(string,string,uint256).name (contracts/ERC20.sol#9) shadows:
- ERC20.name() (@openzeppelin/contracts/token/ERC20/ERC20.sol#60-62) (function)
- IERC20Metadata.name() (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#16) (function)
ERC20Contract.constructor(string,string,uint256).symbol (contracts/ERC20.sol#9) shadows:
- ERC20.symbol() (@openzeppelin/contracts/token/ERC20/ERC20.sol#68-70) (function)
- IERC20Metadata.symbol() (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#21) (function)
ERC721Contract.constructor(string,string).name (contracts/ERC721.sol#11) shadows:
- ERC721.name() (@openzeppelin/contracts/token/ERC721/ERC721.sol#77-79) (function)
- IERC721Metadata.name() (@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol#16) (function)
ERC721Contract.constructor(string,string).symbol (contracts/ERC721.sol#11) shadows:
- ERC721.symbol() (@openzeppelin/contracts/token/ERC721/ERC721.sol#84-86) (function)
- IERC721Metadata.symbol() (@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol#21) (function)
Rename the local variables that shadow another component.

Additional information: link

TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256).item (contracts/TurtleFinancePairV1.sol#180) is a local variable never initialized
ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes).reason (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#361) is a local variable never initialized
TurtleFinanceMainV1._autoCreateTokenPool(address).pool (contracts/TurtleFinanceMainV1.sol#86) is a local variable never initialized
TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256).pool (contracts/TurtleFinanceTreRewardV1.sol#62) is a local variable never initialized
ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes).response (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#357) is a local variable never initialized
ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes).response (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#380) is a local variable never initialized
ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes).reason (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#384) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.

Additional information: link

Reentrancy in TurtleFinanceMainV1._tokenBankSave(address,uint256) (contracts/TurtleFinanceMainV1.sol#93-103):
External calls:
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
State variables written after the call(s):
- pool.bankTotalSaveQuantity += quantity (contracts/TurtleFinanceMainV1.sol#99)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#100)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#101)
Reentrancy in TurtleFinanceMainV1._tokenBankTake(address,uint256) (contracts/TurtleFinanceMainV1.sol#105-116):
External calls:
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
State variables written after the call(s):
- pool.bankTotalTakeQuantity += quantity (contracts/TurtleFinanceMainV1.sol#112)
- pool.bankBalance = bank.balanceOf(token) (contracts/TurtleFinanceMainV1.sol#113)
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#114)
Reentrancy in TurtleFinanceMainV1._tokenPoolTransfer(address,address,uint256) (contracts/TurtleFinanceMainV1.sol#142-157):
External calls:
- _tokenBankTake(token,needTake) (contracts/TurtleFinanceMainV1.sol#151)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
State variables written after the call(s):
- pool.mainBalance = et.balanceOf(address(this)) (contracts/TurtleFinanceMainV1.sol#155)
Reentrancy in TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256) (contracts/TurtleFinancePairV1.sol#174-208):
External calls:
- reward.plusBalance(maker,token0Balance) (contracts/TurtleFinancePairV1.sol#201)
State variables written after the call(s):
- _pairStats.totalItemCount += 1 (contracts/TurtleFinancePairV1.sol#202)
- _pairStats.activeItemCount += 1 (contracts/TurtleFinancePairV1.sol#203)
Reentrancy in TurtleFinancePairV1.swap(uint256,bytes) (contracts/TurtleFinancePairV1.sol#138-172):
External calls:
- et0.approve(uniswapRouterV2Addr,item.token0Balance) (contracts/TurtleFinancePairV1.sol#148)
- Utils.functionCall(uniswapRouterV2Addr,marketData,string(abi.encodePacked(swap 0 to 1 fail-> ,balance: ,Strings.toString(beforeTotal1Balance)))) (contracts/TurtleFinancePairV1.sol#150)
State variables written after the call(s):
- _pairStats.totalRealToken1 += item.token1Balance (contracts/TurtleFinancePairV1.sol#155)
- _pairStats.totalFeeToken1 += uint256(platformFee) (contracts/TurtleFinancePairV1.sol#156)
- item.token1Balance = balance1Changed - uint256(platformFee) (contracts/TurtleFinancePairV1.sol#154)
Reentrancy in TurtleFinancePairV1.swap(uint256,bytes) (contracts/TurtleFinancePairV1.sol#138-172):
External calls:
- et1.approve(uniswapRouterV2Addr,item.token1Balance) (contracts/TurtleFinancePairV1.sol#161)
- Utils.functionCall(uniswapRouterV2Addr,marketData,string(abi.encodePacked(swap 1 to 0 fail-> ,balance: ,Strings.toString(beforeTotal0Balance)))) (contracts/TurtleFinancePairV1.sol#163)
State variables written after the call(s):
- _pairStats.totalRealToken0 += item.token0Balance (contracts/TurtleFinancePairV1.sol#168)
- _pairStats.totalFeeToken0 += uint256(platformFee) (contracts/TurtleFinancePairV1.sol#169)
- item.token0Balance = balance0Changed - uint256(platformFee) (contracts/TurtleFinancePairV1.sol#167)
Reentrancy in TurtleFinanceMainV1.tokenPoolSet(address,address,uint256,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#255-277):
External calls:
- _tokenBankTake(pool.addr,pool.bankBalance) (contracts/TurtleFinanceMainV1.sol#264)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- ITurtleFinanceTokenPoolBank(pool.bankAddr).destroy(pool.addr) (contracts/TurtleFinanceMainV1.sol#265)
State variables written after the call(s):
- pool.bankTotalTakeQuantity = 0 (contracts/TurtleFinanceMainV1.sol#266)
- pool.bankTotalSaveQuantity = 0 (contracts/TurtleFinanceMainV1.sol#267)
Reentrancy in TurtleFinanceMainV1.tokenPoolSet(address,address,uint256,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#255-277):
External calls:
- _tokenBankTake(pool.addr,pool.bankBalance) (contracts/TurtleFinanceMainV1.sol#264)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- ITurtleFinanceTokenPoolBank(pool.bankAddr).destroy(pool.addr) (contracts/TurtleFinanceMainV1.sol#265)
- newBank.create(pool.addr) (contracts/TurtleFinanceMainV1.sol#271)
State variables written after the call(s):
- pool.bankAddr = bankAddr (contracts/TurtleFinanceMainV1.sol#274)
Apply the check-effects-interactions pattern.

Additional information: link

ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#346-367) ignores return value by IERC1155Receiver(to).onERC1155Received(operator,from,id,amount,data) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#357-365)
ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#369-390) ignores return value by IERC1155Receiver(to).onERC1155BatchReceived(operator,from,ids,amounts,data) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#380-388)
ERC721._checkOnERC721Received(address,address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#339-358) ignores return value by IERC721Receiver(to).onERC721Received(_msgSender(),from,tokenId,_data) (@openzeppelin/contracts/token/ERC721/ERC721.sol#343-354)
BankCoinWind.save(address,uint256) (contracts/BankCoinWind.sol#161-164) ignores return value by IERC20(token).approve(address(coinWind),quantity) (contracts/BankCoinWind.sol#162)
BankSoloTop.save(address,uint256) (contracts/BankSoloTop.sol#144-147) ignores return value by IERC20Token(token).approve(address(solo),quantity) (contracts/BankSoloTop.sol#145)
TurtleFinanceMainV1._autoCreateTokenPool(address) (contracts/TurtleFinanceMainV1.sol#84-91) ignores return value by tokenPools.add(token) (contracts/TurtleFinanceMainV1.sol#89)
TurtleFinanceMainV1.addPair(address,address) (contracts/TurtleFinanceMainV1.sol#291-305) ignores return value by pairs.add(pairAddress) (contracts/TurtleFinanceMainV1.sol#302)
TurtleFinancePairV1.swap(uint256,bytes) (contracts/TurtleFinancePairV1.sol#138-172) ignores return value by et0.approve(uniswapRouterV2Addr,item.token0Balance) (contracts/TurtleFinancePairV1.sol#148)
TurtleFinancePairV1.swap(uint256,bytes) (contracts/TurtleFinancePairV1.sol#138-172) ignores return value by et1.approve(uniswapRouterV2Addr,item.token1Balance) (contracts/TurtleFinancePairV1.sol#161)
TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256) (contracts/TurtleFinancePairV1.sol#174-208) ignores return value by swapItems.add(id) (contracts/TurtleFinancePairV1.sol#193)
TurtleFinancePairV1.remove(uint256) (contracts/TurtleFinancePairV1.sol#210-225) ignores return value by swapItems.remove(itemId) (contracts/TurtleFinancePairV1.sol#223)
TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256) (contracts/TurtleFinanceTreRewardV1.sol#58-72) ignores return value by poolIdList.add(pool.id) (contracts/TurtleFinanceTreRewardV1.sol#70)
Ensure that all the return values of the function calls are used.

Additional information: link

TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256) (contracts/TurtleFinancePairV1.sol#174-208) should emit an event for:
- _firstItemId = id (contracts/TurtleFinancePairV1.sol#205)
- _lastItemId = id (contracts/TurtleFinancePairV1.sol#206)
TurtleFinanceTreRewardV1.plusBalance(address,uint256) (contracts/TurtleFinanceTreRewardV1.sol#113-121) should emit an event for:
- totalBalance = totalBalance + quantity (contracts/TurtleFinanceTreRewardV1.sol#120)
TurtleFinanceTreRewardV1.minusBalance(address,uint256) (contracts/TurtleFinanceTreRewardV1.sol#123-131) should emit an event for:
- totalBalance = totalBalance - quantity (contracts/TurtleFinanceTreRewardV1.sol#130)
Emit an event for critical parameter changes.

Additional information: link

BankCoinWind.withdrawToken(address,address,uint256).to (contracts/BankCoinWind.sol#141) lacks a zero-check on :
- to.transfer(quantity) (contracts/BankCoinWind.sol#143)
BankDefault.withdrawToken(address,address,uint256).to (contracts/BankDefault.sol#41) lacks a zero-check on :
- to.transfer(quantity) (contracts/BankDefault.sol#43)
BankSoloTop.withdrawToken(address,address,uint256).to (contracts/BankSoloTop.sol#123) lacks a zero-check on :
- to.transfer(quantity) (contracts/BankSoloTop.sol#125)
TurtleFinanceMainV1.constructor(address,address,address,address).mdexSwapMiningAddr_ (contracts/TurtleFinanceMainV1.sol#64) lacks a zero-check on :
- mdexSwapMiningAddr = mdexSwapMiningAddr_ (contracts/TurtleFinanceMainV1.sol#71)
TurtleFinanceMainV1.constructor(address,address,address,address).kswapDexMiningAddr_ (contracts/TurtleFinanceMainV1.sol#64) lacks a zero-check on :
- kswapDexMiningAddr = kswapDexMiningAddr_ (contracts/TurtleFinanceMainV1.sol#72)
TurtleFinanceMainV1.withdrawToken(address,address,uint256).to (contracts/TurtleFinanceMainV1.sol#284) lacks a zero-check on :
- to.transfer(quantity) (contracts/TurtleFinanceMainV1.sol#286)
TurtleFinancePairV1.setUniswapRouterV2Addr(address).uniswapRouterV2Addr_ (contracts/TurtleFinancePairV1.sol#104) lacks a zero-check on :
- uniswapRouterV2Addr = uniswapRouterV2Addr_ (contracts/TurtleFinancePairV1.sol#105)
Check that the address is not zero.

Additional information: link

BankCoinWind.withdrawProfit(address,address,address[]) (contracts/BankCoinWind.sol#125-139) has external calls inside a loop: quantity = profitTokenContract.balanceOf(address(this)) (contracts/BankCoinWind.sol#129)
BankCoinWind.withdrawProfit(address,address,address[]) (contracts/BankCoinWind.sol#125-139) has external calls inside a loop: quantity_scope_2 = profitTokenContract_scope_1.balanceOf(address(this)) - beforeBalances[i_scope_0] (contracts/BankCoinWind.sol#135)
TurtleFinanceMainV1.getPairs() (contracts/TurtleFinanceMainV1.sol#198-207) has external calls inside a loop: pi = TurtleFinancePairV1(pairAddr).pairInfo() (contracts/TurtleFinanceMainV1.sol#203)
TurtleFinanceMainV1.pairRewardEarned() (contracts/TurtleFinanceMainV1.sol#407-417) has external calls inside a loop: e = pair.rewardEarned(msg.sender) (contracts/TurtleFinanceMainV1.sol#413)
TurtleFinanceMainV1.pairRewardGet() (contracts/TurtleFinanceMainV1.sol#419-426) has external calls inside a loop: pair.rewardGet(msg.sender) (contracts/TurtleFinanceMainV1.sol#424)
Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#114-121) has external calls inside a loop: (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes).response (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#357)' in ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#346-367) potentially used before declaration: response != IERC1155Receiver(to).onERC1155Received.selector (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#358)
Variable 'ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes).reason (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#361)' in ERC1155._doSafeTransferAcceptanceCheck(address,address,address,uint256,uint256,bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#346-367) potentially used before declaration: revert(string)(reason) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#362)
Variable 'ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes).response (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#380)' in ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#369-390) potentially used before declaration: response != IERC1155Receiver(to).onERC1155BatchReceived.selector (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#381)
Variable 'ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes).reason (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#384)' in ERC1155._doSafeBatchTransferAcceptanceCheck(address,address,address,uint256[],uint256[],bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#369-390) potentially used before declaration: revert(string)(reason) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#385)
Variable 'ERC721._checkOnERC721Received(address,address,uint256,bytes).retval (@openzeppelin/contracts/token/ERC721/ERC721.sol#343)' in ERC721._checkOnERC721Received(address,address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#339-358) potentially used before declaration: retval == IERC721Receiver(to).onERC721Received.selector (@openzeppelin/contracts/token/ERC721/ERC721.sol#344)
Variable 'ERC721._checkOnERC721Received(address,address,uint256,bytes).reason (@openzeppelin/contracts/token/ERC721/ERC721.sol#345)' in ERC721._checkOnERC721Received(address,address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#339-358) potentially used before declaration: reason.length == 0 (@openzeppelin/contracts/token/ERC721/ERC721.sol#346)
Variable 'ERC721._checkOnERC721Received(address,address,uint256,bytes).reason (@openzeppelin/contracts/token/ERC721/ERC721.sol#345)' in ERC721._checkOnERC721Received(address,address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#339-358) potentially used before declaration: revert(uint256,uint256)(32 + reason,mload(uint256)(reason)) (@openzeppelin/contracts/token/ERC721/ERC721.sol#351)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.

Additional information: link

Reentrancy in TurtleFinanceMainV1.addPair(address,address) (contracts/TurtleFinanceMainV1.sol#291-305):
External calls:
- pair.setUniswapRouterV2Addr(uniswapRouterV2Addr_) (contracts/TurtleFinanceMainV1.sol#296)
- pair.setUniswapRouterV2Addr(uniswapRouterV2Addr) (contracts/TurtleFinanceMainV1.sol#298)
State variables written after the call(s):
- pairsSwapItemIdSEQMap[pairAddress] = pairs.length() * 1E10 (contracts/TurtleFinanceMainV1.sol#303)
- _autoCreateTokenPool(info.token0) (contracts/TurtleFinanceMainV1.sol#300)
- tokenPoolMap[token] = pool (contracts/TurtleFinanceMainV1.sol#88)
- _autoCreateTokenPool(info.token1) (contracts/TurtleFinanceMainV1.sol#301)
- tokenPoolMap[token] = pool (contracts/TurtleFinanceMainV1.sol#88)
Reentrancy in TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256) (contracts/TurtleFinanceTreRewardV1.sol#58-72):
External calls:
- tre.transferFrom(sender,address(this),totalRewardQuantity_) (contracts/TurtleFinanceTreRewardV1.sol#61)
State variables written after the call(s):
- pool.id = pool_id_seq_ ++ (contracts/TurtleFinanceTreRewardV1.sol#63)
- pools[pool.id] = pool (contracts/TurtleFinanceTreRewardV1.sol#69)
Reentrancy in TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256) (contracts/TurtleFinancePairV1.sol#174-208):
External calls:
- reward.plusBalance(maker,token0Balance) (contracts/TurtleFinancePairV1.sol#201)
State variables written after the call(s):
- _firstItemId = id (contracts/TurtleFinancePairV1.sol#205)
- _lastItemId = id (contracts/TurtleFinancePairV1.sol#206)
Reentrancy in TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#367-389):
External calls:
- et.safeTransferFrom(maker,address(address(this)),token0Balance) (contracts/TurtleFinanceMainV1.sol#376)
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et_scope_0.safeTransferFrom(maker,address(address(this)),token1Balance) (contracts/TurtleFinanceMainV1.sol#382)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
State variables written after the call(s):
- pairsSwapItemIdSEQMap[pairAddress] = pairsSwapItemIdSEQMap[pairAddress] + 1 (contracts/TurtleFinanceMainV1.sol#385)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in TurtleFinanceTreRewardV1._getRewardByPool(uint256,address) (contracts/TurtleFinanceTreRewardV1.sol#133-143):
External calls:
- tre.safeTransfer(account,reward) (contracts/TurtleFinanceTreRewardV1.sol#140)
Event emitted after the call(s):
- RewardPaid(pid,account,reward) (contracts/TurtleFinanceTreRewardV1.sol#141)
Reentrancy in TurtleFinanceMainV1._tokenBankSave(address,uint256) (contracts/TurtleFinanceMainV1.sol#93-103):
External calls:
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
Reentrancy in TurtleFinanceMainV1._tokenBankTake(address,uint256) (contracts/TurtleFinanceMainV1.sol#105-116):
External calls:
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
Event emitted after the call(s):
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
Reentrancy in TurtleFinanceMainV1._tokenPoolTransfer(address,address,uint256) (contracts/TurtleFinanceMainV1.sol#142-157):
External calls:
- _tokenBankTake(token,needTake) (contracts/TurtleFinanceMainV1.sol#151)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolBalanceChange(token) (contracts/TurtleFinanceMainV1.sol#156)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolBalanceChange(token) (contracts/TurtleFinanceMainV1.sol#156)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolBalanceChange(token) (contracts/TurtleFinanceMainV1.sol#156)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolBalanceChange(token) (contracts/TurtleFinanceMainV1.sol#156)
Reentrancy in TurtleFinanceMainV1.addPair(address,address) (contracts/TurtleFinanceMainV1.sol#291-305):
External calls:
- pair.setUniswapRouterV2Addr(uniswapRouterV2Addr_) (contracts/TurtleFinanceMainV1.sol#296)
- pair.setUniswapRouterV2Addr(uniswapRouterV2Addr) (contracts/TurtleFinanceMainV1.sol#298)
Event emitted after the call(s):
- AddPair(pairAddress) (contracts/TurtleFinanceMainV1.sol#304)
Reentrancy in TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256) (contracts/TurtleFinanceTreRewardV1.sol#58-72):
External calls:
- tre.transferFrom(sender,address(this),totalRewardQuantity_) (contracts/TurtleFinanceTreRewardV1.sol#61)
Event emitted after the call(s):
- AddPool(pool.id,totalRewardQuantity_,startTime,periodTime) (contracts/TurtleFinanceTreRewardV1.sol#71)
Reentrancy in TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#367-389):
External calls:
- et.safeTransferFrom(maker,address(address(this)),token0Balance) (contracts/TurtleFinanceMainV1.sol#376)
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
Reentrancy in TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#367-389):
External calls:
- et_scope_0.safeTransferFrom(maker,address(address(this)),token1Balance) (contracts/TurtleFinanceMainV1.sol#382)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
Reentrancy in TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#367-389):
External calls:
- et.safeTransferFrom(maker,address(address(this)),token0Balance) (contracts/TurtleFinanceMainV1.sol#376)
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et_scope_0.safeTransferFrom(maker,address(address(this)),token1Balance) (contracts/TurtleFinanceMainV1.sol#382)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- item = pair.create(maker,itemId,extId,holdIdx,token0Balance,token1Balance) (contracts/TurtleFinanceMainV1.sol#387)
External calls sending eth:
- _tokenPoolReceived(info.token0,token0Balance) (contracts/TurtleFinanceMainV1.sol#377)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token1,token1Balance) (contracts/TurtleFinanceMainV1.sol#383)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- Action(pairAddress,create,item.maker,item.id,item.holdIdx,item.token0Balance,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#388)
Reentrancy in TurtleFinanceMainV1.pairRemove(address,uint256) (contracts/TurtleFinanceMainV1.sol#391-405):
External calls:
- _tokenPoolTransfer(msg.sender,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#399)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(msg.sender,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#401)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- item = pair.remove(itemId) (contracts/TurtleFinanceMainV1.sol#403)
External calls sending eth:
- _tokenPoolTransfer(msg.sender,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#399)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(msg.sender,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#401)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- Action(pairAddress,remove,item.maker,item.id,item.holdIdx,item.token0Balance,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#404)
Reentrancy in TurtleFinanceMainV1.pairSwap(address,uint256,TurtleFinanceMainV1.UniswapRouterV2SwapTokenParams) (contracts/TurtleFinanceMainV1.sol#326-365):
External calls:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- (item,platformFee) = pair.swap(itemId,marketData) (contracts/TurtleFinanceMainV1.sol#349)
- et.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#354)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
Reentrancy in TurtleFinanceMainV1.pairSwap(address,uint256,TurtleFinanceMainV1.UniswapRouterV2SwapTokenParams) (contracts/TurtleFinanceMainV1.sol#326-365):
External calls:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- (item,platformFee) = pair.swap(itemId,marketData) (contracts/TurtleFinanceMainV1.sol#349)
- et_scope_1.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#360)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
Reentrancy in TurtleFinanceMainV1.pairSwap(address,uint256,TurtleFinanceMainV1.UniswapRouterV2SwapTokenParams) (contracts/TurtleFinanceMainV1.sol#326-365):
External calls:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et.safeTransfer(toAddr,quantity) (contracts/TurtleFinanceMainV1.sol#154)
- (item,platformFee) = pair.swap(itemId,marketData) (contracts/TurtleFinanceMainV1.sol#349)
- et.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#354)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- et_scope_1.safeTransfer(platformFeeReceiver,platformFee) (contracts/TurtleFinanceMainV1.sol#360)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolTransfer(pairAddress,info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#337)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolTransfer(pairAddress,info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#343)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token0,item.token0Balance) (contracts/TurtleFinanceMainV1.sol#356)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
- _tokenPoolReceived(info.token1,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#362)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- Action(pairAddress,swap,item.maker,item.id,item.holdIdx,item.token0Balance,item.token1Balance) (contracts/TurtleFinanceMainV1.sol#364)
Reentrancy in TurtleFinanceMainV1.tokenPoolSet(address,address,uint256,uint256,uint256) (contracts/TurtleFinanceMainV1.sol#255-277):
External calls:
- _tokenBankTake(pool.addr,pool.bankBalance) (contracts/TurtleFinanceMainV1.sol#264)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- ITurtleFinanceTokenPoolBank(pool.bankAddr).destroy(pool.addr) (contracts/TurtleFinanceMainV1.sol#265)
- newBank.create(pool.addr) (contracts/TurtleFinanceMainV1.sol#271)
- _tokenPoolBalanceChange(pool.addr) (contracts/TurtleFinanceMainV1.sol#275)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#71)
- et.safeTransfer(address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#97)
- bank.take(token,quantity) (contracts/TurtleFinanceMainV1.sol#110)
- bank.save(token,quantity) (contracts/TurtleFinanceMainV1.sol#98)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
External calls sending eth:
- _tokenPoolBalanceChange(pool.addr) (contracts/TurtleFinanceMainV1.sol#275)
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Event emitted after the call(s):
- SetTokenPool(pool.addr,bankAddr,min,exp,max) (contracts/TurtleFinanceMainV1.sol#276)
- TokenBankSave(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#102)
- _tokenPoolBalanceChange(pool.addr) (contracts/TurtleFinanceMainV1.sol#275)
- TokenBankTake(token,address(bank),quantity) (contracts/TurtleFinanceMainV1.sol#115)
- _tokenPoolBalanceChange(pool.addr) (contracts/TurtleFinanceMainV1.sol#275)
Apply the check-effects-interactions pattern.

Additional information: link

TurtleFinanceTreRewardV1.updateReward(uint256,address) (contracts/TurtleFinanceTreRewardV1.sol#47-56) uses timestamp for comparisons
Dangerous comparisons:
- pool.startTime > block.timestamp (contracts/TurtleFinanceTreRewardV1.sol#49)
TurtleFinanceTreRewardV1.addPool(address,uint256,uint256,uint256) (contracts/TurtleFinanceTreRewardV1.sol#58-72) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(startTime >= block.timestamp,startTime < now) (contracts/TurtleFinanceTreRewardV1.sol#59)
TurtleFinanceTreRewardV1.lastTimeRewardApplicable(uint256) (contracts/TurtleFinanceTreRewardV1.sol#84-87) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp < pools[pid].startTime (contracts/TurtleFinanceTreRewardV1.sol#85)
TurtleFinanceTreRewardV1.earnedByPool(uint256,address) (contracts/TurtleFinanceTreRewardV1.sol#96-101) uses timestamp for comparisons
Dangerous comparisons:
- pools[pid].startTime > block.timestamp (contracts/TurtleFinanceTreRewardV1.sol#97)
TurtleFinanceTreRewardV1._getRewardByPool(uint256,address) (contracts/TurtleFinanceTreRewardV1.sol#133-143) uses timestamp for comparisons
Dangerous comparisons:
- reward > 0 (contracts/TurtleFinanceTreRewardV1.sol#136)
Avoid relying on block.timestamp.

Additional information: link

ERC721._checkOnERC721Received(address,address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#339-358) uses assembly
- INLINE ASM (@openzeppelin/contracts/token/ERC721/ERC721.sol#350-352)
Address.isContract(address) (@openzeppelin/contracts/utils/Address.sol#26-35) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#33)
Address._verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#171-188) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#180-183)
Do not use evm assembly.

Additional information: link

Different versions of Solidity is used:
- Version used: ['>0.6.0', '^0.8.0', '^0.8.5']
- ^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/security/ReentrancyGuard.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC1155/IERC1155.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/ERC721.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/IERC721.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Address.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Strings.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/introspection/ERC165.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/introspection/IERC165.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/math/Math.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#3)
- ^0.8.5 (contracts/BankCoinWind.sol#3)
- ^0.8.5 (contracts/BankDefault.sol#3)
- >0.6.0 (contracts/BankSoloTop.sol#3)
- ^0.8.5 (contracts/ERC1155.sol#3)
- ^0.8.5 (contracts/ERC20.sol#3)
- ^0.8.5 (contracts/ERC721.sol#3)
- ^0.8.5 (contracts/TurtleFinanceMainV1.sol#3)
- ^0.8.5 (contracts/TurtleFinancePairV1.sol#3)
- ^0.8.5 (contracts/TurtleFinanceTreRewardV1.sol#1)
- ^0.8.5 (contracts/Utils.sol#1)
- ^0.8.5 (contracts/interfaces/IERC20Token.sol#2)
- ^0.8.5 (contracts/interfaces/IKswapDexMining.sol#2)
- ^0.8.5 (contracts/interfaces/IMdexSwapMining.sol#2)
- ^0.8.5 (contracts/interfaces/ITurtleFinanceMainV1.sol#2)
- ^0.8.5 (contracts/interfaces/ITurtleFinanceTokenPoolBank.sol#2)
- ^0.8.5 (contracts/interfaces/IUniswapRouterV2.sol#2)
Use one Solidity version.

Additional information: link

Address.functionCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#79-81) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@openzeppelin/contracts/utils/Address.sol#104-106) is never used and should be removed
Address.functionDelegateCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#153-155) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#163-169) is never used and should be removed
Address.functionStaticCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#129-131) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#139-145) is never used and should be removed
Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#53-59) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-23) is never used and should be removed
ERC1155._burn(address,uint256,uint256) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#273-285) is never used and should be removed
ERC1155._burnBatch(address,uint256[],uint256[]) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#294-312) is never used and should be removed
ERC1155._mint(address,uint256,uint256,bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#226-237) is never used and should be removed
ERC1155._mintBatch(address,uint256[],uint256[],bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#248-263) is never used and should be removed
ERC20._burn(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#255-266) is never used and should be removed
ERC721._burn(uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#278-290) is never used and should be removed
ERC721._mint(address,uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#256-266) is never used and should be removed
ERC721._safeMint(address,uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#231-233) is never used and should be removed
ERC721._safeMint(address,uint256,bytes) (@openzeppelin/contracts/token/ERC721/ERC721.sol#239-242) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#147-149) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#185-187) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#164-166) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#273-275) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes32Set) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#171-173) is never used and should be removed
EnumerableSet.remove(EnumerableSet.AddressSet,address) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#211-213) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#157-159) is never used and should be removed
Math.average(uint256,uint256) (@openzeppelin/contracts/utils/math/Math.sol#27-30) is never used and should be removed
Math.max(uint256,uint256) (@openzeppelin/contracts/utils/math/Math.sol#12-14) is never used and should be removed
SafeERC20.safeApprove(IERC20,address,uint256) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#35-44) is never used and should be removed
SafeERC20.safeDecreaseAllowance(IERC20,address,uint256) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#51-58) is never used and should be removed
SafeERC20.safeIncreaseAllowance(IERC20,address,uint256) (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#46-49) is never used and should be removed
Strings.toHexString(uint256) (@openzeppelin/contracts/utils/Strings.sol#39-50) is never used and should be removed
Strings.toHexString(uint256,uint256) (@openzeppelin/contracts/utils/Strings.sol#55-65) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/security/ReentrancyGuard.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC1155/IERC1155.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/ERC721.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/IERC721.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Address.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Strings.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/introspection/ERC165.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/introspection/IERC165.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/Math.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/structs/EnumerableSet.sol#3) allows old versions
Pragma version>0.6.0 (contracts/BankSoloTop.sol#3) 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.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#53-59):
- (success) = recipient.call{value: amount}() (@openzeppelin/contracts/utils/Address.sol#57)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#114-121):
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Low level call in Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#139-145):
- (success,returndata) = target.staticcall(data) (@openzeppelin/contracts/utils/Address.sol#143)
Low level call in Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#163-169):
- (success,returndata) = target.delegatecall(data) (@openzeppelin/contracts/utils/Address.sol#167)
Low level call in Utils.functionCall(address,bytes,string) (contracts/Utils.sol#36-44):
- (success,retData) = addr.call(data) (contracts/Utils.sol#37)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Parameter ERC721.safeTransferFrom(address,address,uint256,bytes)._data (@openzeppelin/contracts/token/ERC721/ERC721.sol#168) is not in mixedCase
Constant Strings.alphabet (@openzeppelin/contracts/utils/Strings.sol#9) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter TurtleFinanceMainV1.setLockOperator(bool).is_lock (contracts/TurtleFinanceMainV1.sol#280) is not in mixedCase
Variable TurtleFinanceTreRewardV1.pool_id_seq_ (contracts/TurtleFinanceTreRewardV1.sol#15) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (@openzeppelin/contracts/utils/Context.sol#21)" inContext (@openzeppelin/contracts/utils/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256).token0Balance (contracts/TurtleFinanceMainV1.sol#367) is too similar to TurtleFinanceMainV1.pairCreate(address,address,uint256,uint16,uint256,uint256).token1Balance (contracts/TurtleFinanceMainV1.sol#367)
Variable TurtleFinancePairV1.swap(uint256,bytes).balance0Changed (contracts/TurtleFinancePairV1.sol#164) is too similar to TurtleFinancePairV1.swap(uint256,bytes).balance1Changed (contracts/TurtleFinancePairV1.sol#151)
Variable TurtleFinancePairV1.swap(uint256,bytes).beforeTotal0Balance (contracts/TurtleFinancePairV1.sol#162) is too similar to TurtleFinancePairV1.swap(uint256,bytes).beforeTotal1Balance (contracts/TurtleFinancePairV1.sol#149)
Variable TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256).token0Balance (contracts/TurtleFinancePairV1.sol#174) is too similar to TurtleFinancePairV1.create(address,uint256,uint256,uint16,uint256,uint256).token1Balance (contracts/TurtleFinancePairV1.sol#174)
Prevent variables from having similar names.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-57)
uri(uint256) should be declared external:
- ERC1155.uri(uint256) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#57-59)
balanceOfBatch(address[],uint256[]) should be declared external:
- ERC1155.balanceOfBatch(address[],uint256[]) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#80-99)
setApprovalForAll(address,bool) should be declared external:
- ERC1155.setApprovalForAll(address,bool) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#104-109)
safeTransferFrom(address,address,uint256,uint256,bytes) should be declared external:
- ERC1155.safeTransferFrom(address,address,uint256,uint256,bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#121-150)
safeBatchTransferFrom(address,address,uint256[],uint256[],bytes) should be declared external:
- ERC1155.safeBatchTransferFrom(address,address,uint256[],uint256[],bytes) (@openzeppelin/contracts/token/ERC1155/ERC1155.sol#155-190)
name() should be declared external:
- ERC20.name() (@openzeppelin/contracts/token/ERC20/ERC20.sol#60-62)
symbol() should be declared external:
- ERC20.symbol() (@openzeppelin/contracts/token/ERC20/ERC20.sol#68-70)
decimals() should be declared external:
- ERC20.decimals() (@openzeppelin/contracts/token/ERC20/ERC20.sol#85-87)
totalSupply() should be declared external:
- ERC20.totalSupply() (@openzeppelin/contracts/token/ERC20/ERC20.sol#92-94)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (@openzeppelin/contracts/token/ERC20/ERC20.sol#99-101)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#111-114)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (@openzeppelin/contracts/token/ERC20/ERC20.sol#119-121)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#130-133)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#148-156)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#170-173)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#189-195)
name() should be declared external:
- ERC721.name() (@openzeppelin/contracts/token/ERC721/ERC721.sol#77-79)
symbol() should be declared external:
- ERC721.symbol() (@openzeppelin/contracts/token/ERC721/ERC721.sol#84-86)
tokenURI(uint256) should be declared external:
- ERC721.tokenURI(uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#91-98)
approve(address,uint256) should be declared external:
- ERC721.approve(address,uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#111-120)
setApprovalForAll(address,bool) should be declared external:
- ERC721.setApprovalForAll(address,bool) (@openzeppelin/contracts/token/ERC721/ERC721.sol#134-139)
transferFrom(address,address,uint256) should be declared external:
- ERC721.transferFrom(address,address,uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#151-156)
safeTransferFrom(address,address,uint256) should be declared external:
- ERC721.safeTransferFrom(address,address,uint256) (@openzeppelin/contracts/token/ERC721/ERC721.sol#161-163)
tokenOfOwnerByIndex(address,uint256) should be declared external:
- ERC721Enumerable.tokenOfOwnerByIndex(address,uint256) (@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol#37-40)
tokenByIndex(uint256) should be declared external:
- ERC721Enumerable.tokenByIndex(uint256) (@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol#52-55)
getProfit(address) should be declared external:
- BankCoinWind.getProfit(address) (contracts/BankCoinWind.sol#112-117)
withdrawToken(address,address,uint256) should be declared external:
- BankCoinWind.withdrawToken(address,address,uint256) (contracts/BankCoinWind.sol#141-146)
withdrawToken(address,address,uint256) should be declared external:
- BankDefault.withdrawToken(address,address,uint256) (contracts/BankDefault.sol#41-46)
withdrawToken(address,address,uint256) should be declared external:
- BankSoloTop.withdrawToken(address,address,uint256) (contracts/BankSoloTop.sol#123-128)
getSwapItemIdRange() should be declared external:
- TurtleFinancePairV1.getSwapItemIdRange() (contracts/TurtleFinancePairV1.sol#84-86)
getSwapInfo(uint256) should be declared external:
- TurtleFinancePairV1.getSwapInfo(uint256) (contracts/TurtleFinancePairV1.sol#88-90)
pairInfo() should be declared external:
- TurtleFinancePairV1.pairInfo() (contracts/TurtleFinancePairV1.sol#92-94)
pairStats() should be declared external:
- TurtleFinancePairV1.pairStats() (contracts/TurtleFinancePairV1.sol#96-98)
mdexSwapMiningGetUserReward(address,uint256) should be declared external:
- TurtleFinancePairV1.mdexSwapMiningGetUserReward(address,uint256) (contracts/TurtleFinancePairV1.sol#100-102)
getPools() should be declared external:
- TurtleFinanceTreRewardV1.getPools() (contracts/TurtleFinanceTreRewardV1.sol#75-82)
earned(address) should be declared external:
- TurtleFinanceTreRewardV1.earned(address) (contracts/TurtleFinanceTreRewardV1.sol#103-110)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive.


Unable to find Youtube account

Search:


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token on CoinGecko

Additional information: link


Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap

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


Unable to find code repository for the project


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Token has a considerable age, but average PancakeSwap 30d trading volume is low


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

Anti-Scam Checks

Price for TRE

News for TRE