KyotoSwap has 1 public audit report from CertiK; dated 21 Apr 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| KyotoSwap | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 4 medium · 13 low 5 fixed · 3 acknowledged · 9 open | skynet.certik.com ↗ |
Statuses are the security firms’ own
12 findings are still open or acknowledged in the firms’ reports: 3 medium, 9 low (9 open, 3 acknowledged).
`add()` Function Not Restricted
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Charging Additional Fees
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Inconsistent Fees
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
`initialize()` Can Be Called by Anyone
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Different Or Unlocked Compiler Version
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Discussion On Function `migrate()`
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Divide Before Multiply
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Incompatibility With Deflationary Tokens
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Missing Emit Events
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Potential Reentrancy Attack
KyotoSwap · CertiK · 21 Apr 2023 · Report ↗
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 0 | 0 |
| Medium | 0 | 3 | 1 |
| Low | 9 | 0 | 4 |
The `initialize()` function in the contract `KswapToken` and `MasterChef` is not protected and can be called by anyone.
Open the reportThe contracts have different or unlocked compiler versions. Different or unlocked compiler versions in the source code of the contract permit the user to compile the code at different versions. This, in turn, leads to differences in the generated bytecode between compilations due to differing compiler version numbers. This can lead to ambiguity when debugging, as compiler-specific bugs may occur in the codebase that would be hard to identify over a span of multiple compiler versions rather than a specific one.
Open the reportThe function `migrate()` in the Library `LibTokenLocker` has not been used. It will create a new lock or add the input amount to an existing lock without an actual `lockedToken` transfer from the user. Also, the function does not transfer the redeemed tokens to the users but starts a new lock even if the old lock has expired.
Open the reportPerforming integer division before multiplication truncates the low bits, losing the precision of the calculation. For example: ```solidity=343 user.rewardDebt = user .amount .mul(multiplier) .div(BOOST_PRECISION) .mul(pool.accKswapPerShare) .div(ACC_KSWAP_PRECISION); ``` --- ```solidity=375 user.rewardDebt = user .amount .mul(multiplier) .div(BOOST_PRECISION) .mul(pool.accKswapPerShare) .div(ACC_KSWAP_PRECISION); ``` --- ```solidity=498 user.rewardDebt = user .amount .mul(_newMultiplier) .div(BOOST_PRECISION) .mul(pool.accKswapPerShare) .div(ACC_KSWAP_PRECISION); ```
Open the reportWhen transferring standard ERC20 deflationary tokens, the input amount may not be equal to the received amount due to the charged transaction fee. As a result, an inconsistency in the amount will occur.
Open the reportFunctions that update state variables should emit relevant events as notifications.
Open the reportA 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. For example, the linked functions contain state variables that are updated after the external calls and consequentially are vulnerable to potential reentrancy attacks.
Open the reportComparisons that are always true or always false may be incorrect or unnecessary. ```solidity=608 require(_lpToken.balanceOf(address(this)) >= 0, "None BEP20 tokens"); ```
Open the reportThe `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. For example: ```solidity=38 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `MasterChef` contract. ```solidity=190 uint256 multiplier = block.number.sub(pool.lastRewardBlock); ``` - `SafeMath.sub` is called in `pendingKswap` function of `MasterChef` contract. *Note: Only a sample `SafeMath` library usage in this contract is shown above.*
Open the report| Address | Chain | Source code |
|---|---|---|
| 0x29ab…727e0x29abc4d03d133d8fd1f1c54318428353ce08727e | Chain: BNB Chain | Source code: Verified source |
Trustblock holds 1 public audit report for KyotoSwap, dated 21 Apr 2023. The latest is by CertiK (“KyotoSwap”).
CertiK wrote the report Trustblock holds for KyotoSwap.
12 findings are still open or acknowledged in the firms’ reports: 3 medium, 9 low (9 open, 3 acknowledged). No critical finding is reported. Statuses are the security firms’ own.
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.
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.
<head><script src="https://widget.trustblock.run/project-widget.min.js" defer></script></head><body><divdata-tb-project-widgetdata-tb-project-slug="kyoto-swap"></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