the future of Decentralized Oracle Networks.
OlinkToken.addLiquidity(uint256,uint256) (#813-831) ignores return value by IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
OlinkToken.setEst(address) (#887-899) uses a dangerous strict equality:
- lpInterest.token.balanceOf(owner) == 0 (#890)
OlinkToken.processEst() (#850-885) uses a dangerous strict equality:
- shareholderCount == 0 (#853)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
OlinkToken._transfer(address,address,uint256).param (#727) 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
Redundant expression "this (#88)" inContext (#82-91)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapAndLiquify(v_scope_1) (#720)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
State variables written after the call(s):
- swapAndLiquify(v_scope_1) (#720)
- _allowances[owner][spender] = amount (#619)
- fromAddress = from (#744)
- fromAddress = from (#752)
- _tokenTransfer(from,to,amount,param) (#742)
- lpInterest.award += param.tLp (#656)
- lpInterest.lastSendTime = block.timestamp (#762)
- processEst() (#763)
- lpInterest.index = index (#883)
- lpInterest.award = surplusAmount (#884)
- toAddress = to (#745)
- toAddress = to (#753)
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
State variables written after the call(s):
- mk1Amount = 0 (#713)
Reentrancy in OlinkToken.swapAndLiquify(uint256) (#784-794):
External calls:
- swapTokensForEth(half) (#789)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
- addLiquidity(otherHalf,newBalance) (#793)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#793)
- _allowances[owner][spender] = amount (#619)
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
State variables written after the call(s):
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- _allowances[owner][spender] = amount (#619)
- lqAmount = 0 (#719)
Reentrancy in OlinkToken.transferFrom(address,address,uint256) (#578-582):
External calls:
- _transfer(sender,recipient,amount) (#579)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#580)
- _allowances[owner][spender] = amount (#619)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapAndLiquify(v_scope_1) (#720)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,param) (#742)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#834)
- _tOwned[to] = _tOwned[to].add(tValue) (#611)
- _tOwned[recipient] = _tOwned[recipient].add(param.tTransferAmount) (#835)
- processEst() (#763)
- _tOwned[address(this)] = _tOwned[address(this)].sub(amount) (#875)
- _tOwned[shareholder] = _tOwned[shareholder].add(amount) (#876)
- inSwapAndLiquify = false (#722)
- _tokenTransfer(from,to,amount,param) (#742)
- lqAmount += param.tLq (#660)
- _tokenTransfer(from,to,amount,param) (#742)
- mk1Amount += param.tMk1 (#648)
- _tokenTransfer(from,to,amount,param) (#742)
- mk2Amount += param.tMk2 (#652)
Apply the check-effects-interactions pattern.
Additional information: link
TokenReceiver.constructor(address) (#405-407) ignores return value by IERC20(token).approve(msg.sender,10 ** 12 * 10 ** 18) (#406)
OlinkToken.addLiquidity(uint256,uint256) (#813-831) ignores return value by uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
OlinkToken.addLiquidity(uint256,uint256) (#813-831) ignores return value by IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
OlinkToken.setEst(address) (#887-899) ignores return value by lpInterest.tokenHolder.add(owner) (#897)
OlinkToken.setEst(address) (#887-899) ignores return value by lpInterest.tokenHolder.remove(owner) (#891)
Ensure that all the return values of the function calls are used.
Additional information: link
OlinkToken._approve(address,address,uint256).owner (#615) shadows:
- Ownable.owner() (#159-161) (function)
OlinkToken.setEst(address).owner (#887) shadows:
- Ownable.owner() (#159-161) (function)
OlinkToken.allowance(address,address).owner (#569) shadows:
- Ownable.owner() (#159-161) (function)
Rename the local variables that shadow another component.
Additional information: link
OlinkToken.setTxAmount(uint256,uint256,uint256,uint256) (#536-541) should emit an event for:
- mk1TxAmount = mta1 (#537)
- mk2TxAmount = mta2 (#538)
- lqTxAmount = lta (#539)
- addPriceTokenAmount = apta (#540)
Emit an event for critical parameter changes.
Additional information: link
OlinkToken.constructor(address,address,address,address,address,address)._usdt (#475) lacks a zero-check on :
- usdt = _usdt (#480)
OlinkToken.constructor(address,address,address,address,address,address)._mk1Address (#477) lacks a zero-check on :
- market1Address = _mk1Address (#482)
OlinkToken.constructor(address,address,address,address,address,address)._mk2Address (#477) lacks a zero-check on :
- market2Address = _mk2Address (#483)
OlinkToken.constructor(address,address,address,address,address,address)._lpAddress (#477) lacks a zero-check on :
- lpAddress = _lpAddress (#479)
Ownable.transferOwnership(address).newOwner (#168) lacks a zero-check on :
- _owner = newOwner (#170)
OlinkToken.constructor(address,address,address,address,address,address)._holder (#476) lacks a zero-check on :
- holder = _holder (#481)
Check that the address is not zero.
Additional information: link
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#620)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
Reentrancy in OlinkToken.transferFrom(address,address,uint256) (#578-582):
External calls:
- _transfer(sender,recipient,amount) (#579)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#620)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#580)
Reentrancy in OlinkToken.swapAndLiquify(uint256) (#784-794):
External calls:
- swapTokensForEth(half) (#789)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
- addLiquidity(otherHalf,newBalance) (#793)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#620)
- addLiquidity(otherHalf,newBalance) (#793)
Reentrancy in OlinkToken._transfer(address,address,uint256) (#680-765):
External calls:
- swapTokensToMarket(v,market2Address) (#708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapTokensToMarket(v_scope_0,market1Address) (#714)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#775-781)
- swapAndLiquify(v_scope_1) (#720)
- IERC20(usdt).transferFrom(tokenReceiver,address(this),ethAmount) (#817)
- IERC20(usdt).approve(address(uniswapV2Router),ethAmount) (#819)
- uniswapV2Router.addLiquidity(address(this),usdt,tokenAmount,ethAmount,0,0,lpAddress,block.timestamp) (#821-830)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,tokenReceiver,block.timestamp) (#804-810)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#620)
- swapAndLiquify(v_scope_1) (#720)
- Transfer(from,to,tValue) (#612)
- _tokenTransfer(from,to,amount,param) (#742)
- Transfer(sender,recipient,param.tTransferAmount) (#836)
- _tokenTransfer(from,to,amount,param) (#742)
- Transfer(address(this),shareholder,amount) (#877)
- processEst() (#763)
Apply the check-effects-interactions pattern.
Additional information: link
OlinkToken.processEst() (#850-885) uses timestamp for comparisons
Dangerous comparisons:
- shareholderCount == 0 (#853)
- sendedCount < sendCountLimit && iterations < shareholderCount (#863)
- index >= shareholderCount (#864)
- balanceOf(address(this)) < amount || surplusAmount < amount (#871)
- amount >= 1e4 (#873)
OlinkToken._transfer(address,address,uint256) (#680-765) uses timestamp for comparisons
Dangerous comparisons:
- from != address(this) && lpInterest.lastSendTime + lpInterest.period < block.timestamp && lpInterest.award > 0 && lpInterest.award <= balanceOf(address(this)) && lpInterest.token.totalSupply() > 1e5 (#756-760)
OlinkToken.setEst(address) (#887-899) uses timestamp for comparisons
Dangerous comparisons:
- lpInterest.token.balanceOf(owner) == 0 (#890)
- lpInterest.token.balanceOf(owner) > 0 (#896)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#130-151) uses assembly
- INLINE ASM (#143-146)
Address.isContract(address) (#95-100) uses assembly
- INLINE ASM (#98)
Do not use evm assembly.
Additional information: link
EnumerableSet.length(EnumerableSet.Bytes32Set) (#328-330) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (#333-335) is never used and should be removed
Address.sendValue(address,uint256) (#102-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#120-122) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UintSet,uint256) (#376-378) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (#323-325) is never used and should be removed
TransferHelper.safeTransferFrom(address,address,address,uint256) (#237-241) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (#381-383) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#76-79) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#125-128) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (#313-315) is never used and should be removed
Context._msgData() (#87-90) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
TransferHelper.safeApprove(address,address,uint256) (#225-229) is never used and should be removed
EnumerableSet.length(EnumerableSet.UintSet) (#386-388) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#130-151) is never used and should be removed
EnumerableSet.at(EnumerableSet.UintSet,uint256) (#391-393) is never used and should be removed
Address.isContract(address) (#95-100) is never used and should be removed
Address.functionCall(address,bytes,string) (#115-117) is never used and should be removed
EnumerableSet.add(EnumerableSet.UintSet,uint256) (#371-373) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (#318-320) is never used and should be removed
Address.functionCall(address,bytes) (#110-112) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in TransferHelper.safeTransferETH(address,uint256) (#243-246):
- (success) = to.call{value: value}(new bytes(0)) (#244)
Low level call in TransferHelper.safeTransfer(address,address,uint256) (#231-235):
- (success,data) = token.call(abi.encodeWithSelector(0xa9059cbb,to,value)) (#233)
Low level call in TransferHelper.safeApprove(address,address,uint256) (#225-229):
- (success,data) = token.call(abi.encodeWithSelector(0x095ea7b3,to,value)) (#227)
Low level call in TransferHelper.safeTransferFrom(address,address,address,uint256) (#237-241):
- (success,data) = token.call(abi.encodeWithSelector(0x23b872dd,from,to,value)) (#239)
Low level call in Address.sendValue(address,uint256) (#102-108):
- (success) = recipient.call{value: amount}() (#106)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#130-151):
- (success,returndata) = target.call{value: weiValue}(data) (#134)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router02.WETH() (#183) is not in mixedCase
Variable OlinkToken._mk1Fee (#427) is not in mixedCase
Variable Ownable._owner (#155) is not in mixedCase
Variable OlinkToken._mk2Fee (#428) is not in mixedCase
Variable OlinkToken._lpFee (#429) is not in mixedCase
Variable OlinkToken._lqFee (#426) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#210) is too similar to IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#211)
Variable OlinkToken.mk1TxAmount (#434) is too similar to OlinkToken.mk2TxAmount (#433)
Variable OlinkToken.market1Address (#436) is too similar to OlinkToken.market2Address (#437)
Variable OlinkToken.constructor(address,address,address,address,address,address)._mk1Address (#477) is too similar to OlinkToken.constructor(address,address,address,address,address,address)._mk2Address (#477)
Prevent variables from having similar names.
Additional information: link
OlinkToken._decimals (#420) should be constant
OlinkToken._lpFee (#429) should be constant
OlinkToken._tTotal (#421) should be constant
OlinkToken._lqFee (#426) should be constant
OlinkToken._name (#423) should be constant
OlinkToken.totalFee (#430) should be constant
OlinkToken._mk1Fee (#427) should be constant
OlinkToken._mk2Fee (#428) should be constant
OlinkToken._symbol (#424) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transfer(address,uint256) should be declared external:
- OlinkToken.transfer(address,uint256) (#563-566)
allowance(address,address) should be declared external:
- OlinkToken.allowance(address,address) (#569-571)
isExcludedFromFee(address) should be declared external:
- OlinkToken.isExcludedFromFee(address) (#604-606)
approve(address,uint256) should be declared external:
- OlinkToken.approve(address,uint256) (#573-576)
owner() should be declared external:
- Ownable.owner() (#159-161)
excludeFromFee(address[]) should be declared external:
- OlinkToken.excludeFromFee(address[]) (#594-598)
totalSupply() should be declared external:
- OlinkToken.totalSupply() (#555-557)
decimals() should be declared external:
- OlinkToken.decimals() (#551-553)
symbol() should be declared external:
- OlinkToken.symbol() (#547-549)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#168-171)
includeInFee(address) should be declared external:
- OlinkToken.includeInFee(address) (#600-602)
decreaseAllowance(address,uint256) should be declared external:
- OlinkToken.decreaseAllowance(address,uint256) (#589-592)
increaseAllowance(address,uint256) should be declared external:
- OlinkToken.increaseAllowance(address,uint256) (#584-587)
transferFrom(address,address,uint256) should be declared external:
- OlinkToken.transferFrom(address,address,uint256) (#578-582)
name() should be declared external:
- OlinkToken.name() (#543-545)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Contract has 4% buy tax and 4% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted from 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
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
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
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
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account