Alaya AI has 1 public audit report from CertiK; dated 19 Mar 2024; 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 |
|---|---|---|---|---|---|---|
| Alaya - AlayaTraining | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 1 high · 1 medium · 5 low 1 fixed · 6 open | skynet.certik.com ↗ |
Statuses are the security firms’ own
6 findings are still open or acknowledged in the firms’ reports: 1 medium, 5 low (all open).
Lack Of Access Control
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
`for` Loop Optimization
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
Discussion on `userList`
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
Inconsistent Formatting and Spacing
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
Unnecessary Initialization
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
Use `uint256` Instead of `uint`
Alaya - AlayaTraining · CertiK · 19 Mar 2024 · Report ↗
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 0 | 1 |
| Medium | 1 | 0 | 0 |
| Low | 5 | 0 | 0 |
The function `update()` can be called by anyone as it has no access restriction. This enables anyone to call this and update the value of `userList[msg.sender]`, which will be used in public view function `listnum()` and function `anum()`
Open the reportIf a compiler version less than 0.8.22 is used, then the following operations can be done to optimize the gas usage: 1. The increment operation saves a small amount of gas if performed from the left (`++i`) instead of from the righthand side (`i++`). 2. The increment operation can be placed in an `unchecked` block at the end of the loop logic, since it is bounded above by the loop limit which must be a `uint256` value, avoiding overflow.
Open the reportThe current codebase allows any user to call `update()` to update their own `userList`. The stored `userList` is only used in public view function `listnum()` and `anum()`.
Open the reportThe formatting and spacing in the contract are inconsistent. Proper formatting is essential for readability and maintainability of the code. Reading and understanding the code becomes more challenging due to inconsistent formatting, which could lead to misunderstandings or overlooks during code review.
Open the reportThe call `Ownable(msg.sender);` in the `constructor()` is unnecessary as the `constructor()` of the contract `Ownable` will already give ownership to the `_msgSender()` and does not take an input.
Open the reportThroughout the codebase `uint` and `uint256` are used interchangeably.
Open the report| Address | Chain | Source code |
|---|---|---|
| 0x5dbd…e2740x5dbde81fce337ff4bcaaee4ca3466c00aecae274 | Chain: BNB Chain | Source code: Verified source |
Trustblock holds 1 public audit report for Alaya AI, dated 19 Mar 2024. The latest is by CertiK (“Alaya - AlayaTraining”).
CertiK wrote the report Trustblock holds for Alaya AI.
6 findings are still open or acknowledged in the firms’ reports: 1 medium, 5 low (all open). 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="alaya-ai"></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