BakerySwap security record

BNB Chain, Ethereumbakeryswap.orgXGitHub

As of 3 Nov 2026, BakerySwap has 1 audit report on Trustblock, by CertiK, dated 17 Sep 2020. That report lists no open critical findings.

Critical findings
No open critical findings
In 1 report.
Open the latest report
Your label, live
Get the label for your site

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

Audits1

Newest first

AuditSecurity firmDateScopeCritical findingsReport
Bakery SwapSecurity firm: CertiKDate: Scope: Files named in the reportNo open critical findingsOpen 路 skynet.certik.com

Findings32

Statuses are the security firm鈥檚 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

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

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鈥檚 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