Gallant Token Logo

GAL [Gallant] Token

About GAL

Listings

Token 14 months
CoinMarketCap 11 months
white paper

Gallant Token is a decentralized finance smart contract built on the Binance Smart Chain; a community of people from across the world; and a brand. Our core team is fully doxxed and our goal is to create medieval-inspired games & NFTs that integrate blockchain technology across different platforms.

Laser Scorebeta Last Audit: 30 November 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

Gallant.sendToWallet(address,uint256) (#919-921) sends eth to arbitrary user
Dangerous calls:
- wallet.transfer(amount) (#920)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in Gallant._transfer(address,address,uint256) (#839-917):
External calls:
- swapAndLiquify(contractTokenBalance) (#904)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#969-975)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#904)
- wallet.transfer(amount) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _FeeDev = _previousFeeDev (#824)
- _FeeDev = 0 (#812)
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _FeeLiquidity = _previousFeeLiquidity (#823)
- _FeeLiquidity = 0 (#811)
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _liquidityAndPromoFee = _previousLiquidityAndPromoFee (#822)
- _liquidityAndPromoFee = 0 (#810)
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#769)
- _rOwned[Wallet_Burn] = _rOwned[Wallet_Burn].add(rDev) (#777)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1051)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1039)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1065)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1040)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#613)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1066)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1053)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#615)
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _rTotal = _rTotal.sub(rFee) (#707)
- _tokenTransfer(from,to,amount,takeFee) (#916)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#771)
- _tOwned[Wallet_Burn] = _tOwned[Wallet_Burn].add(tDev) (#779)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1064)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#612)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1052)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#614)
Apply the check-effects-interactions pattern.

Additional information: link


Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains


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.

SafeMath.div(uint256,uint256,string) (#61-66) is never used and should be removed
Remove unused functions.

Additional information: link

Gallant._previousLiquidityAndPromoFee (#431) is set pre-construction with a non-constant function or state variable:
- _liquidityAndPromoFee
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

solc-0.8.4 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.

Additional information: link

Low level call in Address.functionDelegateCall(address,bytes,string) (#132-136):
- (success,returndata) = target.delegatecall(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

Reentrancy in Gallant.transferFrom(address,address,uint256) (#515-519):
External calls:
- _transfer(sender,recipient,amount) (#516)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#969-975)
External calls sending eth:
- _transfer(sender,recipient,amount) (#516)
- wallet.transfer(amount) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#836)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#517)
Apply the check-effects-interactions pattern.

Additional information: link

Variable Gallant.buy_sell (#544) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Gallant.safeLaunch_addToBlackList(address[]).i (#720) 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

Gallant.addLiquidity(uint256,uint256) (#978-988) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
Ensure that all the return values of the function calls are used.

Additional information: link

Gallant._approve(address,address,uint256).owner (#831) shadows:
- Ownable.owner() (#164-166) (function)
Rename the local variables that shadow another component.

Additional information: link

Gallant.safeLaunch_setMaxWalletTokens(uint256) (#691-693) should emit an event for:
- _maxWalletToken = maxWallTokens (#692)
Emit an event for critical parameter changes.

Additional information: link

Gallant.Wallet_Update_Dev(address).wallet (#663) lacks a zero-check on :
- Wallet_Dev = wallet (#664)
Check that the address is not zero.

Additional information: link

Reentrancy in Gallant.transferFrom(address,address,uint256) (#515-519):
External calls:
- _transfer(sender,recipient,amount) (#516)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#969-975)
External calls sending eth:
- _transfer(sender,recipient,amount) (#516)
- wallet.transfer(amount) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#517)
- _allowances[owner][spender] = amount (#835)
Apply the check-effects-interactions pattern.

Additional information: link

Gallant._transfer(address,address,uint256) (#839-917) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(buy_buy[to] < block.timestamp,Need to wait a few seconds before you can buy again.) (#865)
- require(bool,string)(buy_sell[from] < block.timestamp,Need to wait a few seconds before selling.) (#878)
Avoid relying on block.timestamp.

Additional information: link

Address._verifyCallResult(bool,bytes,string) (#138-151) uses assembly
- INLINE ASM (#143-146)
Do not use evm assembly.

Additional information: link

Redundant expression "this (#78)" inContext (#72-81)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in Gallant.transferFrom(address,address,uint256) (#515-519):
External calls:
- _transfer(sender,recipient,amount) (#516)
- wallet.transfer(amount) (#920)
External calls sending eth:
- _transfer(sender,recipient,amount) (#516)
- wallet.transfer(amount) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#980-987)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#517)
- _allowances[owner][spender] = amount (#835)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#836)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#517)
Apply the check-effects-interactions pattern.

Additional information: link

Variable Gallant.reflectionFromToken(uint256,bool).rTransferAmount (#575) is too similar to Gallant._getValues(uint256).tTransferAmount (#727)
Prevent variables from having similar names.

Additional information: link

Gallant.slitherConstructorVariables() (#376-1075) uses literals with too many digits:
- _numTokensSellToAddToLiquidity = 100000 * 10 ** 6 * 10 ** 9 (#445)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Gallant._previousFeesTotal (#426) is never used in Gallant (#376-1075)
Remove unused state variables.

Additional information: link

Gallant._tTotal (#402) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

isExcludedFromFee(address) should be declared external:
- Gallant.isExcludedFromFee(address) (#827-829)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d PancakeSwap volume is low.


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


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 number of swaps.


Twitter account link seems to be invalid


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

Additional information: link


Unable to find whitepaper link on the website


Unable to find code repository for the project


Young tokens have high risks of scam / 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


Token has relatively low CoinGecko rank


Token has relatively low CoinMarketCap rank

Price for GAL