SPY Token Logo

SPY Token

About SPY

Listings

Token 13 months
CoinMarketCap 12 months

Website

white paper

The $SPY token, created by SpyWolf, is aimed to eliminate monetary fraud in the crypto space and help investors gain their trust back through an ecosystem of helpful resources.

Laser Scorebeta Last Audit: 2 March 2022

report
Token seems to be (relatively) fine. It still become a scam, but probability is moderate.

Anti-Scam

Links


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

SPY.addLiquidity(uint256,uint256) (SPY.sol#487-502) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (SPY.sol#411)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- super._transfer(from,to,amount) (SPY.sol#414)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- swapping = false (SPY.sol#393)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#89-105):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#94)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#97)
Apply the check-effects-interactions pattern.

Additional information: link


Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

Reentrancy in SPY.updateDividendTracker(address) (SPY.sol#186-201):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (SPY.sol#193)
- newDividendTracker.excludeFromDividends(address(this)) (SPY.sol#194)
- newDividendTracker.excludeFromDividends(owner()) (SPY.sol#195)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (SPY.sol#196)
State variables written after the call(s):
- dividendTracker = newDividendTracker (SPY.sol#200)
Apply the check-effects-interactions pattern.

Additional information: link

SPY._transfer(address,address,uint256).iterations (SPY.sol#422) is a local variable never initialized
SPY._transfer(address,address,uint256).claims (SPY.sol#422) is a local variable never initialized
SPY._transfer(address,address,uint256).lastProcessedIndex (SPY.sol#422) 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

SPY.claim() (SPY.sol#345-347) ignores return value by dividendTracker.processAccount(msg.sender,false) (SPY.sol#346)
SPY._transfer(address,address,uint256) (SPY.sol#358-429) ignores return value by dividendTracker.process(gas) (SPY.sol#422-427)
SPY.addLiquidity(uint256,uint256) (SPY.sol#487-502) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string)._name (DividendPayingToken.sol#46) shadows:
- ERC20._name (ERC20.sol#43) (state variable)
DividendPayingToken.constructor(string,string)._symbol (DividendPayingToken.sol#46) shadows:
- ERC20._symbol (ERC20.sol#44) (state variable)
Rename the local variables that shadow another component.

Additional information: link

SPY.setBNBRewardsFee(uint256) (SPY.sol#231-234) should emit an event for:
- BNBRewardsFee = value (SPY.sol#232)
- totalFees = BNBRewardsFee.add(liquidityFee).add(marketingFee) (SPY.sol#233)
SPY.setLiquiditFee(uint256) (SPY.sol#236-239) should emit an event for:
- liquidityFee = value (SPY.sol#237)
- totalFees = BNBRewardsFee.add(liquidityFee).add(marketingFee) (SPY.sol#238)
SPY.setMarketingFee(uint256) (SPY.sol#241-245) should emit an event for:
- marketingFee = value (SPY.sol#242)
- totalFees = BNBRewardsFee.add(liquidityFee).add(marketingFee) (SPY.sol#243)
SPY.setSwapThreshold(uint256) (SPY.sol#254-256) should emit an event for:
- swapTokensAtAmount = new_value (SPY.sol#255)
Emit an event for critical parameter changes.

Additional information: link

SPY.updateUniswapV2Router(address)._uniswapV2Pair (SPY.sol#207-208) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (SPY.sol#209)
SPY.setMarketingWallet(address).wallet (SPY.sol#227) lacks a zero-check on :
- _marketingWalletAddress = wallet (SPY.sol#228)
Check that the address is not zero.

Additional information: link

SPY.updateGasForProcessing(uint256) (SPY.sol#279-284) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,SPY: gasForProcessing must be between 200,000 and 500,000) (SPY.sol#280)
SPY.slitherConstructorVariables() (SPY.sol#74-514) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (SPY.sol#84)
SPY.slitherConstructorVariables() (SPY.sol#74-514) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 18) (SPY.sol#86)
SPY.slitherConstructorVariables() (SPY.sol#74-514) uses literals with too many digits:
- gasForProcessing = 300000 (SPY.sol#99)
SPYDividendTracker.constructor() (SPY.sol#536-539) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (SPY.sol#538)
SPYDividendTracker.getAccountAtIndex(uint256) (SPY.sol#621-638) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (SPY.sol#632)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (SafeMathInt.sol#36) is never used in SafeMathInt (SafeMathInt.sol#34-93)
Remove unused state variables.

Additional information: link

SPY.deadWallet (SPY.sol#84) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#83-85)
- SPYDividendTracker.withdrawDividend() (SPY.sol#545-547)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#111-113)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#125-127)
name() should be declared external:
- ERC20.name() (ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#114-117)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#192-195)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#43-46)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#52-56)
updateDividendTracker(address) should be declared external:
- SPY.updateDividendTracker(address) (SPY.sol#186-201)
updateUniswapV2Router(address) should be declared external:
- SPY.updateUniswapV2Router(address) (SPY.sol#203-210)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- SPY.excludeMultipleAccountsFromFees(address[],bool) (SPY.sol#219-225)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- SPY.setAutomatedMarketMakerPair(address,bool) (SPY.sol#248-252)
updateGasForProcessing(uint256) should be declared external:
- SPY.updateGasForProcessing(uint256) (SPY.sol#279-284)
isExcludedFromFees(address) should be declared external:
- SPY.isExcludedFromFees(address) (SPY.sol#298-300)
withdrawableDividendOf(address) should be declared external:
- SPY.withdrawableDividendOf(address) (SPY.sol#302-304)
dividendTokenBalanceOf(address) should be declared external:
- SPY.dividendTokenBalanceOf(address) (SPY.sol#306-308)
getAccountAtIndex(uint256) should be declared external:
- SPYDividendTracker.getAccountAtIndex(uint256) (SPY.sol#621-638)
process(uint256) should be declared external:
- SPYDividendTracker.process(uint256) (SPY.sol#665-710)
setNewMin(uint256) should be declared external:
- SPYDividendTracker.setNewMin(uint256) (SPY.sol#724-726)
Use the external attribute for functions never called from the contract.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#89-105) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#94)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'SPY._transfer(address,address,uint256).claims (SPY.sol#422)' in SPY._transfer(address,address,uint256) (SPY.sol#358-429) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (SPY.sol#423)
Variable 'SPY._transfer(address,address,uint256).iterations (SPY.sol#422)' in SPY._transfer(address,address,uint256) (SPY.sol#358-429) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (SPY.sol#423)
Variable 'SPY._transfer(address,address,uint256).lastProcessedIndex (SPY.sol#422)' in SPY._transfer(address,address,uint256) (SPY.sol#358-429) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (SPY.sol#423)
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 SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (SPY.sol#388)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in SPY.constructor() (SPY.sol#142-180):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (SPY.sol#152-153)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (SPY.sol#156)
- uniswapV2Router = _uniswapV2Router (SPY.sol#155)
Reentrancy in SPY.constructor() (SPY.sol#142-180):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (SPY.sol#152-153)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (SPY.sol#158)
- dividendTracker.excludeFromDividends(pair) (SPY.sol#272)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (SPY.sol#161)
- dividendTracker.excludeFromDividends(address(this)) (SPY.sol#162)
- dividendTracker.excludeFromDividends(owner()) (SPY.sol#163)
- dividendTracker.excludeFromDividends(deadWallet) (SPY.sol#164)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (SPY.sol#165)
State variables written after the call(s):
- _mint(owner(),100_000_000_000 * (10 ** 18)) (SPY.sol#177)
- _balances[account] = _balances[account].add(amount) (ERC20.sol#241)
- excludeFromFees(owner(),true) (SPY.sol#168)
- _isExcludedFromFees[account] = excluded (SPY.sol#214)
- excludeFromFees(_marketingWalletAddress,true) (SPY.sol#169)
- _isExcludedFromFees[account] = excluded (SPY.sol#214)
- excludeFromFees(address(this),true) (SPY.sol#170)
- _isExcludedFromFees[account] = excluded (SPY.sol#214)
- _mint(owner(),100_000_000_000 * (10 ** 18)) (SPY.sol#177)
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#240)
Reentrancy in SPYDividendTracker.processAccount(address,bool) (SPY.sol#712-722):
External calls:
- amount = _withdrawDividendOfUser(account) (SPY.sol#713)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#94)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (SPY.sol#716)
Reentrancy in SPY.swapAndLiquify(uint256) (SPY.sol#440-461):
External calls:
- swapTokensForEth(half) (SPY.sol#452)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in SPY.updateUniswapV2Router(address) (SPY.sol#203-210):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (SPY.sol#207-208)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (SPY.sol#209)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SPY._setAutomatedMarketMakerPair(address,bool) (SPY.sol#267-276):
External calls:
- dividendTracker.excludeFromDividends(pair) (SPY.sol#272)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (SPY.sol#275)
Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- SwapAndLiquify(half,newBalance,otherHalf) (SPY.sol#460)
- swapAndLiquify(swapTokens) (SPY.sol#388)
Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- SendDividends(tokens,dividends) (SPY.sol#511)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (SPY.sol#414)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (SPY.sol#411)
Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
- dividendTracker.setBalance(address(from),balanceOf(from)) (SPY.sol#416)
- dividendTracker.setBalance(address(to),balanceOf(to)) (SPY.sol#417)
- dividendTracker.process(gas) (SPY.sol#422-427)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (SPY.sol#423)
Reentrancy in SPY.constructor() (SPY.sol#142-180):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (SPY.sol#152-153)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (SPY.sol#158)
- dividendTracker.excludeFromDividends(pair) (SPY.sol#272)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (SPY.sol#275)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (SPY.sol#158)
Reentrancy in SPY.constructor() (SPY.sol#142-180):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (SPY.sol#152-153)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (SPY.sol#158)
- dividendTracker.excludeFromDividends(pair) (SPY.sol#272)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (SPY.sol#161)
- dividendTracker.excludeFromDividends(address(this)) (SPY.sol#162)
- dividendTracker.excludeFromDividends(owner()) (SPY.sol#163)
- dividendTracker.excludeFromDividends(deadWallet) (SPY.sol#164)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (SPY.sol#165)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (SPY.sol#216)
- excludeFromFees(address(this),true) (SPY.sol#170)
- ExcludeFromFees(account,excluded) (SPY.sol#216)
- excludeFromFees(_marketingWalletAddress,true) (SPY.sol#169)
- ExcludeFromFees(account,excluded) (SPY.sol#216)
- excludeFromFees(owner(),true) (SPY.sol#168)
- Transfer(address(0),account,amount) (ERC20.sol#242)
- _mint(owner(),100_000_000_000 * (10 ** 18)) (SPY.sol#177)
Reentrancy in SPYDividendTracker.processAccount(address,bool) (SPY.sol#712-722):
External calls:
- amount = _withdrawDividendOfUser(account) (SPY.sol#713)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#94)
Event emitted after the call(s):
- Claim(account,amount,automatic) (SPY.sol#717)
Reentrancy in SPY.processDividendTracker(uint256) (SPY.sol#340-343):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (SPY.sol#341)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (SPY.sol#342)
Reentrancy in SPY.swapAndLiquify(uint256) (SPY.sol#440-461):
External calls:
- swapTokensForEth(half) (SPY.sol#452)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (SPY.sol#458)
- SwapAndLiquify(half,newBalance,otherHalf) (SPY.sol#460)
Reentrancy in SPY.swapAndSendDividends(uint256) (SPY.sol#504-513):
External calls:
- swapTokensForEth(tokens) (SPY.sol#506)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (SPY.sol#474-482)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (SPY.sol#511)
Reentrancy in SPY.updateDividendTracker(address) (SPY.sol#186-201):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (SPY.sol#193)
- newDividendTracker.excludeFromDividends(address(this)) (SPY.sol#194)
- newDividendTracker.excludeFromDividends(owner()) (SPY.sol#195)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (SPY.sol#196)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (SPY.sol#198)
Apply the check-effects-interactions pattern.

Additional information: link

SPYDividendTracker.getAccount(address) (SPY.sol#576-619) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (SPY.sol#616-618)
SPYDividendTracker.canAutoClaim(uint256) (SPY.sol#640-646) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (SPY.sol#641)
- block.timestamp.sub(lastClaimTime) >= claimWait (SPY.sol#645)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (Context.sol#21-24) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#145-151) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.

Additional information: link

SPY.totalFees (SPY.sol#93) is set pre-construction with a non-constant function or state variable:
- BNBRewardsFee.add(liquidityFee).add(marketingFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.

Additional information: link

Pragma version^0.6.2 (Context.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (ERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (Ownable.sol#1) allows old versions
Pragma version^0.6.2 (SPY.sol#63) allows old versions
Pragma version^0.6.2 (SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (SafeMathUint.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 DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#89-105):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#94)
Low level call in SPY.swapAndSendDividends(uint256) (SPY.sol#504-513):
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#111) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#118) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#125) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#135) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#26) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Parameter SPY.setSwapThreshold(uint256).new_value (SPY.sol#254) is not in mixedCase
Parameter SPY.setMinForDividend(uint256).new_min (SPY.sol#258) is not in mixedCase
Variable SPY._isBlacklisted (SPY.sol#88) is not in mixedCase
Variable SPY.BNBRewardsFee (SPY.sol#90) is not in mixedCase
Variable SPY._marketingWalletAddress (SPY.sol#95) is not in mixedCase
Parameter SPYDividendTracker.getAccount(address)._account (SPY.sol#576) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (Context.sol#22)" inContext (Context.sol#15-26)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (SPY.sol#388)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- SwapAndLiquify(half,newBalance,otherHalf) (SPY.sol#460)
- swapAndLiquify(swapTokens) (SPY.sol#388)
Reentrancy in SPY._transfer(address,address,uint256) (SPY.sol#358-429):
External calls:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (SPY.sol#385)
- address(_marketingWalletAddress).transfer(newBalance) (SPY.sol#437)
- swapAndLiquify(swapTokens) (SPY.sol#388)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (SPY.sol#493-500)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- (success) = address(dividendTracker).call{value: dividends}() (SPY.sol#508)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- _allowances[owner][spender] = amount (ERC20.sol#287)
- super._transfer(from,address(this),fees) (SPY.sol#411)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- super._transfer(from,to,amount) (SPY.sol#414)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- swapping = false (SPY.sol#393)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (SPY.sol#423)
- SendDividends(tokens,dividends) (SPY.sol#511)
- swapAndSendDividends(sellTokens) (SPY.sol#391)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (SPY.sol#414)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (SPY.sol#411)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#13)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#90) is too similar to SPYDividendTracker.getAccount(address).withdrawableDividends (SPY.sol#581)
Prevent variables from having similar names.

Additional information: link

Holders:


Average 30d number of PancakeSwap swaps is low.


Token is deployed only at one blockchain

Contract has 9% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.


Unable to find Discord account


Unable to find token contract audit


Unable to find audit link on the website


Unable to find token on CoinHunt

Additional information: link


Young tokens have high risks of price dump / death


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Token has relatively low CoinGecko rank


Token has relatively low CoinMarketCap rank

Price for SPY

News for SPY