BakerySwap audit reports

BakerySwap has 1 public audit report from CertiK; dated 17 Sep 2020; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical findings
No open critical findings
In 1 report.
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
Bakery SwapSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 32 low
20 fixed · 12 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: 12 low (all open).

Low
12
  • Low Open

    Fork Leftovers

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Function Plot

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Inconsistent Transaction Ordering

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Inefficient Case

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Inefficient Conditional

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Inefficient Greater-Than Comparison w/ Zero

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Inefficient Per-Member Assignment

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Manual Zeroing

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Redundant `bool` Variable

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

  • Low Open

    Utilization of `storage` Variable Instead of `mem

    Bakery Swap · CertiK · 17 Sep 2020 · Report ↗

All 12 open and acknowledged findings

Findings32

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low12020
LowFork LeftoversBakery Swap · CertiK · 17 Sep 2020Open

The linked segments contain the unicode icon 🦄 as a leftover from Uniswap.

Open the report
LowFunction PlotBakery Swap · CertiK · 17 Sep 2020Open

We have taken note of an extensive test suite located in the repository, however we advise that fuzz-based testing is introduced to ensure that the values retrieved from the reward calculation follow the plot you have set within the calculations.

Open the report
LowInconsistent Transaction OrderingBakery Swap · CertiK · 17 Sep 2020Open

The linked mathematical statements are conducted in a different order than each other, with the former being a subtraction - multiplication - division and the latter being a subtraction - division (w/ subtraction rounding) - multiplication. In Solidity, the order of mathematical execution is important as there is no concept of a decimal number and divisions are rounded down.

Open the report
LowInefficient CaseBakery Swap · CertiK · 17 Sep 2020Open

The linked case ensures that `fromBulkNumber` is greater-than (>) the literal 0 before multiplying it with a value in the ternary operator after being subtracted by 1. Since the value is subtracted by 1, in the case that `fromBlockNumber` is 1 the multiplication would again yield 0.

Open the report
LowInefficient ConditionalBakery Swap · CertiK · 17 Sep 2020Open

The conditionals check whether the uint256 variables are less than the literal 1. This is only the case when the value is 0.

Open the report
LowInefficient Greater-Than Comparison w/ ZeroBakery Swap · CertiK · 17 Sep 2020Open

The linked statements conduct a greater-than (>) comparison between an unsigned integer and the value literal 0.

Open the report
LowInefficient Per-Member AssignmentBakery Swap · CertiK · 17 Sep 2020Open

Each instruction on the EVM costs gas to execute and in this case, each member of the struct is independently written to instead of conducting a single mass-write by instantiating a `PoolInfo` declaration in `memory` and subsequently assigning it to `poolInfoMap[_pair]`.

Open the report
LowManual ZeroingBakery Swap · CertiK · 17 Sep 2020Open

The manual zeroing operations could instead be replaced by a delete operation on `poolUserInfoMap[_pair][msg.sender]` which is more readable and gas efficient.

Open the report
LowRedundant `bool` VariableBakery Swap · CertiK · 17 Sep 2020Open

The newly added boolean variable is meant to represent whether an entry to the new poolInfoMap mapping exists to prevent duplicate calls to the add function. While this functions as intended, it is possible to utilize the already-existent non-zero variable `lastRewardBlock` for this particular purpose.

Open the report
LowUtilization of `storage` Variable Instead of `memBakery Swap · CertiK · 17 Sep 2020Open

The linked newly introduced assignment should utilize the already existent `_feeToSetter` variable in `memory` rather than retrieving the newly stored `feeToSetter` variable from `storage`, optimizing the gas cost involved in deploying the contract.

Open the report
Show 2 more
LowVariable Mutability SpecifierBakery Swap · CertiK · 17 Sep 2020Open

The linked variable declarations are only assigned to once during the constructor of the contract.

Open the report
LowVariable to `constant`Bakery Swap · CertiK · 17 Sep 2020Open

The linked variable is only assigned to once during its instantiation at the contract level.

Open the report

Contracts1

AddressChainSource code
0xe02df9e3e622debdd69fb838bb799e3f168902c5Chain: BNB ChainSource code: Verified source

All 1 address and the files the reports name

BakerySwap: questions

Is BakerySwap audited?

Trustblock holds 1 public audit report for BakerySwap, dated 17 Sep 2020. The latest is by CertiK (“Bakery Swap”).

Who audited BakerySwap?

CertiK wrote the report Trustblock holds for BakerySwap.

Are there open findings in BakerySwap’s audits?

12 findings are still open or acknowledged in the firms’ reports: 12 low (all open). 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="bakeryswap"
></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