As of 25 Oct 2026, XShares has 1 audit report on Trustblock, by CertiK, dated 5 Sep 2023. That report lists no open critical findings.
Record last updated . It holds audits and findings, contracts and incidents up to Oct 2026. Trustblock does not review code.
Newest first
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 1 |
| High | 0 | 3 | 0 |
| Medium | 0 | 1 | 0 |
| Low | 0 | 3 | 1 |
The contract allows users to buy and sell shares, and the price of the share is related to the value of "curveIndex". When the user purchases a share, the native token, such as ETH, that pays for the share, will be stored in the contract. The "sharesSubject" address can modify the "curveIndex" value of the share at any time, and it will result in a change in the share price. If the "sharesSubject" purchases shares when the price is low(ex. the curveIndex equals 10), then modifies the curveIndex to cause the price to increase, and sell the shares, he can drain the native tokens from the contract. ```sol function getPrice(uint256 supply, uint256 amount, uint256 curveIndex) public pure returns (uint256) { uint256 sum1 = supply == 0 ? 0 : ((supply - 1 )* (supply) * (2 * (supply - 1) + 1) * 1 ether ) / (curveIndex * 6); uint256 sum2 = supply == 0 && amount == 1 ? 0 : ((supply - 1 + amount) * (supply + amount) * (2 * (supply - 1 + amount) + 1) * 1 ether )/ (curveIndex * 6); uint256 summation = sum2 - sum1; // ((x ** 2 - 1) / p) + 1 / 16000 return summation / 16000; } ```
Open the reportThe function `sellShares()` is defined as a payable function; however, the function body does not address the received native token specified by `msg.value`. This could lead to inadvertent behavior where native token is sent to the function but not appropriately managed or refunded, potentially causing a fund lock.
Open the reportThe reports name a repository or files. Open a report to see its scope.
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="xshares"></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