YFX - security record

Arbitrum, Base, BNB Chain, Ethereumyfx.comXGitHub

As of 2 Nov 2026, YFX - has 2 audit reports by 1 security firm on Trustblock; the latest is by CertiK, dated 1 May 2024. Those reports list no open critical findings.

Critical findings
No open critical findings
Across 2 reports.
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 Oct 2026. Trustblock does not review code.

Audits2

Newest first

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

Findings66

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

SeverityOpenAcknowledgedFixed
Critical000
High052
Medium0212
Low6534
LowDuplicated Variable AssignmentsYFX-V3 · CertiK · 7 Jul 2023Open

1. Based on the business logic of the `priceForLiquidate()` and `priceForIndex()` functions in `MarketPriceFeed.sol`, it is evident that the code on line 361 and line 366 fetches the price of the market collateral token consistently. Therefore, to reduce gas fee consumption, it is advisable to modify line 366 as follows: `response.price = response.indexPrice`. 2. Based on the code logic where `_settleFunding()` function is called on line 319, it can be inferred that after this code execution, `position.frLastX96` is already set to the latest value. Therefore, there is no need to assign `position.frLastX96` again on line 376.

Open the report
LowIncompatibility With Deflationary TokensYFX-V3 · CertiK · 7 Jul 2023Open

When 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 and the transaction may fail due to the validation checks. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee) to the target contract, only 90 tokens actually arrive to the contract. In the `YFX` protocol, if the ERC20 deflationary tokens are used as base assets, the balance of pool token recorded in `Vault` is different from the exact amount of token deposited.

Open the report
LowMissing Price Maximise Code LogicYFX-V3 · CertiK · 7 Jul 2023Open

1. When calculating `Maker` earnings, in order to maximize the benefits of the fund pool, the choice of off-chain and `ChainLink` prices for the collateral token of the market will be based on the current long and short asset situation in the market. The contract calling relationship when getting prices for pool is as follows:: `Pool.getPriceForPool() -> MarketPriceFeed.priceForPool() -> FastPriceFeed.getIndexPrice()`. 2. When calculating the trading price for limit orders, to ensure that the trading price is not lower than the trigger price when opening long positions and not higher than the trigger price when opening short positions, it is necessary to filter from the off-chain or `Chainlink` prices based on the `_maximise` parameter of the `getIndexPrice()` function. However, the code implementation of the `getIndexPrice()` function in the `FastPriceFeed` contract does not include any code logic for filtering the maximum or minimum values of off-chain and `ChainLink` prices based on the given parameter value `_maximise`.

Open the report
LowPrice Adjustment StrategiesYFX-V3 · CertiK · 7 Jul 2023Open

Based on the logical structure of the function `priceForTrade()` in `MarketPriceFeed.sol`, it can be inferred that there are two sources for the contract trading price: Off-chain centralized price feeding program and ChainLink Price Feed. The selection of the price source depends on project configuration and factors such as stability of off-chain prices compared to ChainLink on-chain prices. The following four scenarios in which the off-chain price will be used; otherwise, the ChainLink on-chain price will be adopted. 1. Off-chain price is more stable than ChainLink on-chain price. 2. There is a significant difference between the off-chain price and ChainLink on-chain price. 3. Off-chain price is at its extremum (either greater or smaller than the ChainLink on-chain price). 4. Off-chain price is enforced. Once the price source is determined, the `controller` role is authorized to make three adjustments to the price through configuration (either upward or downward). The adjustment ratios are recorded in the following three state variables: `spreadBasisPoints`, `adjustmentBasisPoints`, and `slipPoint`.

Open the report
LowThe Funding Rate ModelYFX-V3 · CertiK · 7 Jul 2023Open

Based on the code logic found in lines 106 and 108 of `FundingLogic.sol`, it can be inferred that the `funding rate` is positively correlated with the underlying asset price and the difference in long and short positions. However, during a bullish market, both the underlying asset price and the long and short positions increase, while during a bearish market, the asset price decreases, and the long and short positions increase. This leads to varying rates of change for the `funding rate` in different market conditions (bullish and bearish), resulting in a relatively weaker adjustment capability of the `funding rate` toward the long position when it surpasses the short position.

Open the report
LowThird Party DependencyYFX-V3 · CertiK · 7 Jul 2023Open

The contract is serving as the underlying entity to interact with one or more third party protocols(`ChainLink`, `rewardRouter`, different `Tokens`, etc). The scope of the audit treats third party entities as black boxes and assume their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of third parties can possibly create severe impacts, such as increasing fees of third parties, migrating to new LP pools, etc.

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="yfx"
></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