EgoCoin audit reports

Ethereumegoco.in

EgoCoin has 1 public audit report from CertiK; dated 4 May 2023; no critical findings reported.

Critical and high findings
No open critical findings; 3 high acknowledged in the firms’ reports
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
EGOSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 4 high · 1 medium · 14 low
7 fixed · 4 acknowledged · 8 open
skynet.certik.com ↗

Open findings across every firm12

Statuses are the security firms’ own

12 findings are still open or acknowledged in the firms’ reports: 3 high, 1 medium, 8 low (8 open, 4 acknowledged).

High
3
Medium
1
Low
8
  • High Acknowledged

    Centralization Risks in EgoERC20GotBit.sol

    EGO · CertiK · 4 May 2023 · Report ↗

  • High Acknowledged

    Centralization Risks in StakingSample.sol

    EGO · CertiK · 4 May 2023 · Report ↗

  • High Acknowledged

    Initial Token Distribution

    EGO · CertiK · 4 May 2023 · Report ↗

  • Medium Acknowledged

    Out of Scope Dependencies

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    Check Effect Interaction Pattern Violated

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    Confirm ChainID

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    Incompatibility with Deflationary Tokens

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    Potential Insufficient Token Balance For reward D

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    redundant value re-assignment

    EGO · CertiK · 4 May 2023 · Report ↗

  • Low Open

    State Variable Should Be Declared Constant

    EGO · CertiK · 4 May 2023 · Report ↗

All 12 open and acknowledged findings

Findings19

Statuses are the security firm’s own, from each report.

SeverityOpenAcknowledgedFixed
Critical000
High031
Medium010
Low806
LowCheck Effect Interaction Pattern ViolatedEGO · CertiK · 4 May 2023Open

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. ### External call(s) ```solidity=142 IERC20(tokenAddress).safeTransfer(msg.sender, totalAmount); ``` ### State variables written after the call(s) ```solidity=144 account.amountStake -= _amount; ``` ```solidity=146 account.missedReward = tokenPerStake * account.amountStake; ``` ```solidity=149 totalAmountStake -= _amount; ``` --- ### External call(s) ```solidity=164 IERC20(tokenAddress).safeTransfer(msg.sender, amount); ``` ### State variables written after the call(s) ```solidity=165 account.missedReward += amount * precision; ```

Open the report
LowConfirm ChainIDEGO · CertiK · 4 May 2023Open

The comment says "Mint initial supply to polygon", but the `block.chainid` of 80001 corresponds to the Mumbai testnet.

Open the report
LowIncompatibility with Deflationary TokensEGO · CertiK · 4 May 2023Open

When transferring deflationary ERC20 tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee), only 90 tokens actually arrived to the contract. However, a failure to discount such fees may allow the same user to withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f ```solidity=110 IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), _amount); ``` - Transferring tokens by `_amount`. ```solidity=120 totalAmountStake += _amount; ``` - The `_amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees.

Open the report
LowPotential Insufficient Token Balance For reward DEGO · CertiK · 4 May 2023Open

In the contract `StakingSample.sol`, rewards are distributed in the same `tokenAddress` token used to stake. If the owner does not deposit extra rewards tokens into the contract, then rewards will be paid from other users' deposits.

Open the report
Lowredundant value re-assignmentEGO · CertiK · 4 May 2023Open

The variable re-assignment below is considered redundant in the contract. ```sol=168 uint256 secondsPerSlice = vestingSlicePeriodSeconds; ```

Open the report
LowState Variable Should Be Declared ConstantEGO · CertiK · 4 May 2023Open

State variables that never change should be declared as `constant` to save gas. ```solidity=40 uint256 public vestingSlicePeriodSeconds = 60; ``` - `vestingSlicePeriodSeconds` should be declared `constant`.

Open the report
LowUnnecessary Use of SafeMathEGO · CertiK · 4 May 2023Open

The `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=14 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `Vesting` contract. ```solidity=161 return totalAmountOfUser .mul((100 - startVestingPercentage)) .div(100) .sub(userAddressToAmountClaimed[_account]); ``` - `SafeMath.mul` is called in `_computeReleasableAmount` function of `Vesting` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 17) are shown above.*

Open the report
LowVariables That Could Be Declared as ImmutableEGO · CertiK · 4 May 2023Open

The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

Open the report

Contracts

No deployed address is recorded for these audits.

The reports name a repository or files. Open a report to see its scope.

The repositories and files the reports name

EgoCoin: questions

Is EgoCoin audited?

Trustblock holds 1 public audit report for EgoCoin, dated 4 May 2023. The latest is by CertiK (“EGO”).

Who audited EgoCoin?

CertiK wrote the report Trustblock holds for EgoCoin.

Are there open findings in EgoCoin’s audits?

12 findings are still open or acknowledged in the firms’ reports: 3 high, 1 medium, 8 low (8 open, 4 acknowledged). No critical finding is reported. Statuses are the security firms’ own.

Show this on your site

Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.

Content

Facts

Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.

Fixed as
Language

Style

Layout
Theme
Accent
Corners

Format

Size
Date
Embed as
HTML
<head>
<script src="https://widget.trustblock.run/project-widget.min.js" defer></script>
</head>
<body>
<div
data-tb-project-widget
data-tb-project-slug="ego"
></div>
</body>

Paste the code where the label should appear. It uses no API credit and updates by itself.

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us