Biswap

CertiKFiles named in the report

CertiK reviewed Biswap on 9 Jun 2021: 10 findings, 0 critical; none marked fixed.

No open critical findings
Open the reportOpen Biswap’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings10

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium300
Low700
Medium`add()` function not restrictedOpen

The total amount of reward BSWReward in function `updatePool()` will be incorrectly calculated if the same LP token is added into the pool more than once in function `add()`. However, the code is not reflected in the comment behaviors as there isn’t any valid restriction on preventing this issue. The current implementation relies on the owner's trust to avoid repeatedly adding the same LP token to the pool, as the function will only be called by the owner.

MediumDelegation Not Moved Along With `transfer()`Open

The voting power of delegation is not moved from token sender to token recipient along with the `transfer()`. Current `transfer()` is from `BEP20` protocol and don't invoke `_moveDelegates()`.

MediumProper Usage on migrator.migrate()Open

`setMigrator()` function can set migrator contract to any contract that is implemented from `IMigratorChef` interface by the owner. As result, invocation of `migrator.migrate()` in function migrate() may bring dangerous effects as it is unknown to the user. However, the project may lose the ability to upgrade and migrate if `setMigrator()` and `migrate()` are removed.

LowMissing emit eventsOpen

The function that affects the status of sensitive variables should be able to emit events as notifications to customers. - `dev()` - `setMigrator()` - `updateBswPerBlock()`

LowPrivileged ownerships on BSWTokenOpen

BSWToken is the standard BEP20 implementation that contains the mint functionality with ownership controls, which means whoever obtained access to the minter account would be able to tamper with the integrity of the token economics.

LowPrivileged ownerships on MasterChefOpen

The owner of MasterChef has permission to add and set pools that could update the parameters on rewards without obtaining the consensus of the community.

LowRecommended explicit pool validity checksOpen

There's no sanity check to validate if a pool is existing.

LowRole of onlyMinter() is not set correctlyOpen

Role of onlyMinter() is not set correctly, no initial Minter was set.

LowThird-party dependenciesOpen

Third party function ISwapFeeReward(swapFeeReward).swap(msg.sender, input, output, amountOut) was called in _swap(). The contract is serving as the underlying entity to interact with third party functions. The scope of the audit would treat those 3rd party entities as black boxes and assume its functional correctness. However in the real world, 3rd parties may be compromised that led to assets lost or stolen.

LowUnmatch function parameterOpen

_devFee was defined as "uint32" in function setDevFee(uint32 _devFee), while "uint8" in BiswapFactory.sol: function setDevFee(address _pair, uint8 _devFee) external

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (8)

  • contracts/periphery/BiswapRouter01.sol
  • contracts/periphery/BiswapMigrator.sol
  • contracts/core/BiswapFactory.sol
  • contracts/staking/BSWToken.sol
  • contracts/core/BiswapERC20.sol
  • contracts/core/BiswapPair.sol
  • contracts/staking/MasterChef.sol
  • contracts/periphery/BiswapRouter02.sol

Part of Biswap’s security record

Biswap
Audits2 audits by 1 firmLast audit Sep 2023, by CertiK.
Critical findingsNo open critical findingsAcross 2 reports.
IncidentIncident 29 Jun 2023Source: De.Fi incident database.
Open Biswap’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

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