Christmas Gift Token Logo

CG [Christmas Gift] Token

About CG

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 23 December 2021

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

Reentrancy in ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248):
External calls:
- swapAndCharge() (ChristmasGift.sol#235)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
External calls sending eth:
- swapAndCharge() (ChristmasGift.sol#235)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _BNBFee = _previousBNBFee (ChristmasGift.sol#194)
- _BNBFee = 0 (ChristmasGift.sol#189)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _balances[sender] = _balances[sender].sub(amount) (ChristmasGift.sol#286)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (ChristmasGift.sol#287)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (ChristmasGift.sol#290)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _marketingFee = _previousMarketingFee (ChristmasGift.sol#195)
- _marketingFee = 0 (ChristmasGift.sol#190)
- lastSwapTime = block.timestamp (ChristmasGift.sol#236)
Apply the check-effects-interactions pattern.

Additional information: link

ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248) uses a dangerous strict equality:
- from == pancakeswapV2Pair && liqAddBlock == 0 (ChristmasGift.sol#219)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

ChristmasGift.allowance(address,address).owner (ChristmasGift.sol#103) shadows:
- Ownable.owner() (Ownable.sol#18-20) (function)
ChristmasGift._approve(address,address,uint256).owner (ChristmasGift.sol#202) shadows:
- Ownable.owner() (Ownable.sol#18-20) (function)
Rename the local variables that shadow another component.

Additional information: link

ChristmasGift.setMarketingWallet(address).wallet (ChristmasGift.sol#165) lacks a zero-check on :
- marketingWalletAddress = wallet (ChristmasGift.sol#166)
Check that the address is not zero.

Additional information: link

ChristmasGift.swapTokensForEth(uint256) (ChristmasGift.sol#261-275) has external calls inside a loop: path[1] = pancakeswapV2Router.WETH() (ChristmasGift.sol#265)
ChristmasGift.swapTokensForEth(uint256) (ChristmasGift.sol#261-275) has external calls inside a loop: pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
ChristmasGift.swapAndCharge() (ChristmasGift.sol#250-257) has external calls inside a loop: address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
ChristmasGift.swapAndCharge() (ChristmasGift.sol#250-257) has external calls inside a loop: address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248):
External calls:
- swapAndCharge() (ChristmasGift.sol#235)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
External calls sending eth:
- swapAndCharge() (ChristmasGift.sol#235)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _previousBNBFee = _BNBFee (ChristmasGift.sol#186)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _previousMarketingFee = _marketingFee (ChristmasGift.sol#187)
Reentrancy in ChristmasGift.constructor() (ChristmasGift.sol#58-72):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (ChristmasGift.sol#61-62)
State variables written after the call(s):
- _balances[_msgSender()] = _tTotal (ChristmasGift.sol#70)
- _isExcludedFromFee[_msgSender()] = true (ChristmasGift.sol#68)
- _isExcludedFromFee[address(this)] = true (ChristmasGift.sol#69)
- pancakeswapV2Router = _pancakeswapV2Router (ChristmasGift.sol#65)
Reentrancy in ChristmasGift.transferFrom(address,address,uint256) (ChristmasGift.sol#112-116):
External calls:
- _transfer(sender,recipient,amount) (ChristmasGift.sol#113)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
External calls sending eth:
- _transfer(sender,recipient,amount) (ChristmasGift.sol#113)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (ChristmasGift.sol#114)
- _allowances[owner][spender] = amount (ChristmasGift.sol#206)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248):
External calls:
- swapAndCharge() (ChristmasGift.sol#235)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
External calls sending eth:
- swapAndCharge() (ChristmasGift.sol#235)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (ChristmasGift.sol#291)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- Transfer(sender,recipient,tTransferAmount) (ChristmasGift.sol#293)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
Reentrancy in ChristmasGift.constructor() (ChristmasGift.sol#58-72):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (ChristmasGift.sol#61-62)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (ChristmasGift.sol#71)
Reentrancy in ChristmasGift.transferFrom(address,address,uint256) (ChristmasGift.sol#112-116):
External calls:
- _transfer(sender,recipient,amount) (ChristmasGift.sol#113)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (ChristmasGift.sol#268-274)
External calls sending eth:
- _transfer(sender,recipient,amount) (ChristmasGift.sol#113)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ChristmasGift.sol#207)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (ChristmasGift.sol#114)
Apply the check-effects-interactions pattern.

Additional information: link

ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248) uses timestamp for comparisons
Dangerous comparisons:
- overMinTokenBalance && ! inSwap && from != pancakeswapV2Pair && swapEnabled && block.timestamp >= lastSwapTime + swapCoolDownTime (ChristmasGift.sol#229-233)
Ownable.unlock() (Ownable.sol#49-54) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 0 days) (Ownable.sol#51)
Avoid relying on block.timestamp.

Additional information: link

ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248) has costly operations inside a loop:
- liqAddBlock = block.number (ChristmasGift.sol#220)
ChristmasGift.lockTheSwap() (ChristmasGift.sol#52-56) has costly operations inside a loop:
- inSwap = true (ChristmasGift.sol#53)
ChristmasGift.lockTheSwap() (ChristmasGift.sol#52-56) has costly operations inside a loop:
- inSwap = false (ChristmasGift.sol#55)
ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248) has costly operations inside a loop:
- lastSwapTime = block.timestamp (ChristmasGift.sol#236)
ChristmasGift.removeAllFee() (ChristmasGift.sol#183-191) has costly operations inside a loop:
- _previousBNBFee = _BNBFee (ChristmasGift.sol#186)
ChristmasGift.removeAllFee() (ChristmasGift.sol#183-191) has costly operations inside a loop:
- _previousMarketingFee = _marketingFee (ChristmasGift.sol#187)
ChristmasGift.removeAllFee() (ChristmasGift.sol#183-191) has costly operations inside a loop:
- _BNBFee = 0 (ChristmasGift.sol#189)
ChristmasGift.removeAllFee() (ChristmasGift.sol#183-191) has costly operations inside a loop:
- _marketingFee = 0 (ChristmasGift.sol#190)
ChristmasGift.restoreAllFee() (ChristmasGift.sol#193-196) has costly operations inside a loop:
- _BNBFee = _previousBNBFee (ChristmasGift.sol#194)
ChristmasGift.restoreAllFee() (ChristmasGift.sol#193-196) has costly operations inside a loop:
- _marketingFee = _previousMarketingFee (ChristmasGift.sol#195)
Use a local variable to hold the loop computation result.

Additional information: link

Context._msgData() (Context.sol#18-21) is never used and should be removed
SafeMath.div(uint256,uint256,string) (SafeMath.sol#189-194) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#149-151) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#211-216) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (SafeMath.sol#20-26) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (SafeMath.sol#62-67) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (SafeMath.sol#74-79) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (SafeMath.sol#45-55) is never used and should be removed
SafeMath.trySub(uint256,uint256) (SafeMath.sol#33-38) is never used and should be removed
Remove unused functions.

Additional information: link

ChristmasGift._previousBNBFee (ChristmasGift.sol#28) is set pre-construction with a non-constant function or state variable:
- _BNBFee
ChristmasGift._previousMarketingFee (ChristmasGift.sol#31) is set pre-construction with a non-constant function or state variable:
- _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.8.0 (ChristmasGift.sol#3) allows old versions
Pragma version^0.8.0 (Context.sol#2) allows old versions
Pragma version^0.8.0 (IBEP20.sol#3) allows old versions
Pragma version^0.8.0 (IPancakeswapV2Factory.sol#3) allows old versions
Pragma version^0.8.0 (IPancakeswapV2Router01.sol#3) allows old versions
Pragma version^0.8.0 (IPancakeswapV2Router02.sol#3) allows old versions
Pragma version^0.8.0 (Ownable.sol#2) allows old versions
Pragma version^0.8.0 (SafeMath.sol#2) 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

Parameter ChristmasGift.setSwapEnabled(bool)._enabled (ChristmasGift.sol#169) is not in mixedCase
Variable ChristmasGift._isBlacklisted (ChristmasGift.sol#16) is not in mixedCase
Variable ChristmasGift._BNBFee (ChristmasGift.sol#27) is not in mixedCase
Variable ChristmasGift._marketingFee (ChristmasGift.sol#30) is not in mixedCase
Function IPancakeswapV2Router01.WETH() (IPancakeswapV2Router01.sol#7) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (Context.sol#19)" inContext (Context.sol#13-23)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in ChristmasGift._transfer(address,address,uint256) (ChristmasGift.sol#210-248):
External calls:
- swapAndCharge() (ChristmasGift.sol#235)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _BNBFee = _previousBNBFee (ChristmasGift.sol#194)
- _BNBFee = 0 (ChristmasGift.sol#189)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _balances[sender] = _balances[sender].sub(amount) (ChristmasGift.sol#286)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (ChristmasGift.sol#287)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (ChristmasGift.sol#290)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _marketingFee = _previousMarketingFee (ChristmasGift.sol#195)
- _marketingFee = 0 (ChristmasGift.sol#190)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _previousBNBFee = _BNBFee (ChristmasGift.sol#186)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- _previousMarketingFee = _marketingFee (ChristmasGift.sol#187)
- lastSwapTime = block.timestamp (ChristmasGift.sol#236)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (ChristmasGift.sol#291)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
- Transfer(sender,recipient,tTransferAmount) (ChristmasGift.sol#293)
- _tokenTransfer(from,to,amount,takeFee) (ChristmasGift.sol#247)
Reentrancy in ChristmasGift.transferFrom(address,address,uint256) (ChristmasGift.sol#112-116):
External calls:
- _transfer(sender,recipient,amount) (ChristmasGift.sol#113)
- address(bnbPoolAddress).transfer(bnbBalance.mul(_BNBFee).div(totalFee)) (ChristmasGift.sol#254)
- address(marketingAddress).transfer(bnbBalance.mul(_marketingFee).div(totalFee)) (ChristmasGift.sol#256)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (ChristmasGift.sol#114)
- _allowances[owner][spender] = amount (ChristmasGift.sol#206)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ChristmasGift.sol#207)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (ChristmasGift.sol#114)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IPancakeswapV2Router01.sol#12) is too similar to IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IPancakeswapV2Router01.sol#13)
Prevent variables from having similar names.

Additional information: link

ChristmasGift.slitherConstructorVariables() (ChristmasGift.sol#12-298) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 18 (ChristmasGift.sol#21)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

ChristmasGift.MAX (ChristmasGift.sol#22) is never used in ChristmasGift (ChristmasGift.sol#12-298)
ChristmasGift.lastTxTimes (ChristmasGift.sol#43) is never used in ChristmasGift (ChristmasGift.sol#12-298)
Remove unused state variables.

Additional information: link

ChristmasGift._decimals (ChristmasGift.sol#25) should be constant
ChristmasGift._name (ChristmasGift.sol#23) should be constant
ChristmasGift._symbol (ChristmasGift.sol#24) should be constant
ChristmasGift._tTotal (ChristmasGift.sol#21) should be constant
ChristmasGift.snipeBlockAmount (ChristmasGift.sol#42) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transfer(address,uint256) should be declared external:
- ChristmasGift.transfer(address,uint256) (ChristmasGift.sol#98-101)
allowance(address,address) should be declared external:
- ChristmasGift.allowance(address,address) (ChristmasGift.sol#103-105)
approve(address,uint256) should be declared external:
- ChristmasGift.approve(address,uint256) (ChristmasGift.sol#107-110)
transferFrom(address,address,uint256) should be declared external:
- ChristmasGift.transferFrom(address,address,uint256) (ChristmasGift.sol#112-116)
increaseAllowance(address,uint256) should be declared external:
- ChristmasGift.increaseAllowance(address,uint256) (ChristmasGift.sol#118-121)
decreaseAllowance(address,uint256) should be declared external:
- ChristmasGift.decreaseAllowance(address,uint256) (ChristmasGift.sol#123-126)
sendMarketToken(address[],uint256) should be declared external:
- ChristmasGift.sendMarketToken(address[],uint256) (ChristmasGift.sol#276-280)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#27-30)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#32-36)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (Ownable.sol#38-40)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (Ownable.sol#42-47)
unlock() should be declared external:
- Ownable.unlock() (Ownable.sol#49-54)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute volume.


Unable to find PancakeSwap trading pair to compute number of swaps.


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for CG