YYDS Finance has 1 public audit report from QuillAudits; dated 7 Nov 2023; no critical findings reported.
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 |
|---|---|---|---|---|---|---|
| YYDS Finance | Security firm: QuillAudits | Date: | Scope: Files listed | None open | Findings: 1 high · 3 medium · 4 low 8 acknowledged | quillaudits.com ↗ |
11 findings in 1 report: 8 acknowledged (the team chose not to change the code), none open, 3 informational.
| Severity | Acknowledged |
|---|---|
| Critical | 0 |
| High | 1 |
| Medium | 3 |
| Low | 4 |
On-chain generated prices are susceptible to price manipulation as these values can be affected by users of the protocol. For now, token price is calculated via the tokenPrice() function below.
Report ↗In swapAndDividend(), YYDS tokens are swapped to their USDT equivalent via the uniswapV2Router. After the swap, all the USDT in tokenReceiver is transferred to the marketingAddr and treasureAddr and this could lead to accounting errors if there was some USDT already in the tokenReceiver before the call to swapAndDividend(). Scenario: If another user sends in 1,000 USDT tokens to the tokenReceiver and the swap yields 500 USDT, it’ll send ~1,333USDT to the marketingAddr and ~166USDT to the treasureAddr which is 300% more than expected.
Report ↗The YYDS token contract does not have any test cases and has not shown any results of thoroughly testing the protocol before launch. It is advised to have >95% code coverage before deploying protocols so as to reduce the surface area open to errors.
Report ↗If ownership transfer is not done appropriately, the current contract owner can renounce/transfer ownership, lose owner privileges, and lose the ability to burn tokens. When ownership is renounced, all of the contract’s methods will be rendered unusable.
Report ↗Some of the contract functions that update the token’s state do not emit events when called. It is advisable for ease of tracking changes on the blockchain to emit events. The following functions could have events emitted when called: setBuyInterval, setMaxTokenVaulePerTx, setMaxTokenVauleSellPerTx, setIntervalDays, setBuyMarketingFee, setSellMarketingFee, setNumTokensSellToSwap, setMinAmountDeflation, and setMinAmountBurn.
Report ↗In the course of transacting with contract addresses and swaps, there could be tokens mistakenly sent into the YYDS token contract and will remain stuck there with no means to claim them.
Report ↗The codebase is replete with old packages from libraries that have gotten updates and newer releases. If the older versions are still in use and they contain bugs, then the entire codebase would be opened up to a larger attack surface than necessary. The ERC20 library used is an older version without the newer internal checks and custom error messages, it also uses the SafeMath library which is redundant from solidity versions >0.8.0 due to internal overflow and underflow checks. The SafeERC20 library also exposes the safeApprove function which is deprecated to favor the use of safeIncreaseAllowance and safeDecreaseAllowance instead.
Report ↗Variables can be converted into immutable instead of constant
For addresses and values that do not change after deployment, they can be stored as immutable values to reduce gas costs for reading from storage. Some of these variables are tokenOwner, tokenReceiver, uniswapV2Pair and uniswapV2Router all set at deployment time in the constructor.
Report ↗The reports name a repository or files. Open a report to see its scope.
Trustblock holds 1 public audit report for YYDS Finance, dated 7 Nov 2023. The latest is by QuillAudits (“YYDS Finance”).
QuillAudits wrote the report Trustblock holds for YYDS Finance.
11 findings in 1 report: 8 acknowledged (the team chose not to change the code), none open, 3 informational. No critical finding is reported. Statuses are the security firms’ own.
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