KyotoSwap security record

BNB Chainkyotoswap.io

As of 3 Nov 2026, KyotoSwap has 1 audit report on Trustblock, by CertiK, dated 21 Apr 2023. 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 and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

AuditSecurity firmDateScopeCritical findingsReport
KyotoSwapSecurity firm: CertiKDate: Scope: Files named in the reportNo open critical findingsOpen · skynet.certik.com

Findings17

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium031
Low904
Medium`add()` Function Not RestrictedKyotoSwap · CertiK · 21 Apr 2023Acknowledged

When the same LP token is added into a pool more than once in the function `add()`, the total amount of reward in the function `updatePool()` will be incorrectly calculated. The current implementation mentioned this in the code comments but still relies on the operation correctness to avoid repeatedly adding the same LP token to the pool, as the function will only be called by the `MANAGER_ROLE`.

Open the report
MediumCharging Additional FeesKyotoSwap · CertiK · 21 Apr 2023Acknowledged

Besides the 3/1000 trading fees, the contract `swap` will charge the controller fee and transfer to the address `controllerFeeAddress` directly. However, this fee is deduced directly from the `amount0Out` and `amount1Out`, so it still participates in the constant-product invariant calculation. This logic is inconsistent with the design of Uniswap, where the trading fee is applied before enforcing the constant-product invariant. The constant-product invariant check is bypassed. The outputs of the users' swap operations may get different results with the function `getAmountOut()`.

Open the report
MediumInconsistent FeesKyotoSwap · CertiK · 21 Apr 2023Acknowledged

In the `KyotoSwapLibrary` contract, all the transactions will be charged 0.3% of the transaction amount as the fee for liquidity providers. In the `KyotoSwapPair` contract, the `swap()` function will check whether the amount of the two tokens in the pair contract after deducting the `feeAmount` meets the K value (`balance0Adjusted` and `balance1Adjusted`). The `feeAmount` is limited between 0.01% and 0.25% instead of 0.3%(30). As a result, the constant-product invariant check condition does not match the actual fee rate, which makes the invariant check unreasonable. KyotoSwapLibrary: ```solidity function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'KyotoSwapLibrary: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'KyotoSwapLibrary: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } ``` `KyotoSwapPair`: ```solidity function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock { ... { // scope for reserve{0,1}Adjusted, avoids stack too deep errors uint balance0Adjusted = (balance0.mul(10000).sub(amountsIn.amount0In.mul(feeAmount))); uint balance1Adjusted = (balance1.mul(10000).sub(amountsIn.amount1In.mul(feeAmount))); require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(10000**2), 'KyotoSwapPair: K'); } ... } ```

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’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="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