Ethernal Finance Token Logo

ETHFIN [Ethernal Finance] Token

About ETHFIN

Listings

Not Found
Token 13 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 30 November 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...)

EthernalFinance.SendBNBfromContract(uint256,address) (#1203-1208) sends eth to arbitrary user
Dangerous calls:
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

EthernalFinance.random(uint256) (#1138-1144) uses a weak PRNG: "randomnumber = uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,msg.sender,nonce))) % range (#1140)"
Do not use block.timestamp, now or blockhash as a source of randomness

Additional information: link

Reentrancy in EthernalFinance.setMyAutoPayout(bool) (#1701-1705):
External calls:
- CheckforWork() (#1701)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1330-1338)
External calls sending eth:
- CheckforWork() (#1701)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
State variables written after the call(s):
- _AutoPayoutEnabled[msg.sender] = Checked (#1703)
Apply the check-effects-interactions pattern.

Additional information: link

EthernalFinance.RewardTokenoftheWeek (#398) is never initialized. It is used in:
- EthernalFinance.getPromotedRewardTokenoftheWeek() (#1459-1462)
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

EthernalFinance._PayTeam() (#682-709) uses a dangerous strict equality:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#684)
Don't use strict equality to determine if an account has enough Ether or tokens.

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.

EthernalFinance.ClaimRewards(address) (#1772-1875) performs a multiplication on the result of a division:
-slicevalue = amountBNB / 100 (#1837)
-BNBslice = slicevalue * percslice (#1846)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in EthernalFinance.constructor() (#552-598):
External calls:
- _pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#583)
State variables written after the call(s):
- UpdateRegister(_pancakePairAddress,false) (#584)
- N_holders ++ (#644)
- UpdateRegister(_pancakePairAddress,false) (#584)
- _RewardTokens[recipient].Slice1 = 75 (#648)
- _RewardTokens[recipient].Slice2 = 25 (#649)
- _RewardTokens[recipient].Token1 = 0 (#650)
- _RewardTokens[recipient].Token2 = 1 (#651)
- UpdateRegister(_pancakePairAddress,false) (#584)
- _isregistered[recipient] = true (#639)
- UpdateRegister(_pancakePairAddress,false) (#584)
- investorList.push(recipient) (#638)
Apply the check-effects-interactions pattern.

Additional information: link

EthernalFinance.PlayLotto(uint256).winnings (#1119) 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

EthernalFinance.setMainWallet(address) (#753-762) should emit an event for:
- MainWallet = addr (#757)
- MainWallet = addr (#757)
- MainWallet = addr (#757)
Emit an event for critical parameter changes.

Additional information: link

EthernalFinance.sendAirdrop(uint256,address) (#1720-1728) should emit an event for:
- RafflePot -= _Tokens (#1726)
Emit an event for critical parameter changes.

Additional information: link

EthernalFinance.setMainWallet(address).addr (#753) lacks a zero-check on :
- MainWallet = addr (#757)
Check that the address is not zero.

Additional information: link

EthernalFinance.ClaimRewards(address) (#1772-1875) has external calls inside a loop: PayoutTokenContract_scope_0 == _pancakeRouter.WETH() (#1851)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in EthernalFinance.doWork(uint32) (#1036-1077):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1041)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1330-1338)
- sendLiquidity() (#1045)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
- _StartRewardCalculation() (#1057)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _DistributeRewards(N_payoutsperWorkRound) (#1065)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- doBuyback() (#1071)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- RefundGas() (#1036)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
External calls sending eth:
- sendLiquidity() (#1045)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
- _StartRewardCalculation() (#1057)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _DistributeRewards(N_payoutsperWorkRound) (#1065)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- doBuyback() (#1071)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- RefundGas() (#1036)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
State variables written after the call(s):
- NextTask ++ (#1074)
- NextTask = 0 (#1076)
- doBuyback() (#1071)
- SingleUntaxedTransfer = true (#1950)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in EthernalFinance.doWork(uint32) (#1036-1077):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1041)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1330-1338)
- sendLiquidity() (#1045)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
- _StartRewardCalculation() (#1057)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _DistributeRewards(N_payoutsperWorkRound) (#1065)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- doBuyback() (#1071)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- RefundGas() (#1036)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
External calls sending eth:
- sendLiquidity() (#1045)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1191-1198)
- _StartRewardCalculation() (#1057)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _DistributeRewards(N_payoutsperWorkRound) (#1065)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- doBuyback() (#1071)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1363-1370)
- RefundGas() (#1036)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1205)
Event emitted after the call(s):
- Buyback_(tokens,N_holders) (#1965)
- doBuyback() (#1071)
- TokensBurned(amount) (#1489)
- doBuyback() (#1071)
- Transfer(account,deadwallet,amount) (#1488)
- doBuyback() (#1071)
- Transfer(sender,recipient,amount) (#909)
- doBuyback() (#1071)
Apply the check-effects-interactions pattern.

Additional information: link

EthernalFinance.doBuyback() (#1941-1975) uses timestamp for comparisons
Dangerous comparisons:
- __balanceOf[MainWallet] > tokens (#1957)
- (__totalSupply - tokens > burnUntil) (#1962)
Avoid relying on block.timestamp.

Additional information: link

EthernalFinance.sliceUint(bytes,uint256) (#1211-1221) uses assembly
- INLINE ASM (#1217-1219)
Do not use evm assembly.

Additional information: link

EthernalFinance.RefundGas() (#496-507) compares to a boolean constant:
-SendBNBfromContract(tempPot,MainWallet) == false (#503)
Remove the equality to the boolean constant.

Additional information: link

EthernalFinance.AirdropPayout() (#1894-1934) has costly operations inside a loop:
- Airdrop_totalPaidOut += payoutperwinner (#1920)
Use a local variable to hold the loop computation result.

Additional information: link

EthernalFinance._buyBackTokens(uint256) (#1419-1446) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.8.7 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 EthernalFinance._swapTokenForBNB(uint256) (#1319-1351):
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1330-1338)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

EthernalFinance (#347-1978) should inherit from DAPP (#313-327)
Inherit from the missing interface or contract.

Additional information: link

Modifier EthernalFinance.RefundGas() (#496-507) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "DistributeSellTax (#1043)" inEthernalFinance (#347-1978)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#151) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#152)
Prevent variables from having similar names.

Additional information: link

EthernalFinance.slitherConstructorConstantVariables() (#347-1978) uses literals with too many digits:
- initialSupply = 100000000000000000000000000000 (#353)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

EthernalFinance.RewardTokenoftheWeek (#398) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

MyAvailableRewards() should be declared external:
- EthernalFinance.MyAvailableRewards() (#1888-1891)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


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


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 ETHFIN