As of 3 Nov 2026, LeisurePay has 1 audit report on Trustblock, by CertiK, dated 10 Nov 2022. That report lists no open critical findings.
Record last updated . It holds audits, findings and contracts up to Nov 2026, and incidents up to Oct 2026. Trustblock does not review code.
Newest first
| Audit | Security firm | Date | Scope | Critical findings | Report |
|---|---|---|---|---|---|
| Leisurepay | Security firm: CertiK | Date: | Scope: Files named in the report | No open critical findings | Open · skynet.certik.com |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 0 | 2 | 11 |
The `Dispute` contract inherits from OpenZeppelin's `AccessControlEnumerable`. Within `Dispute`, the role `SERVER_ROLE` is set up to be used as a privileged role through the inherited contract. Note that the `SERVER_ROLE` is not defined as suggested in OpenZeppelin's file.
Open the reportThe ERC20 token `lpy` is specified at deployment of the `Dispute` contract. This is understood to be an in-house token. However, the token contract is out of scope for this audit, and as such, its functional correctness is assumed. In reality, if the `transfer()` function does not work as expected, then it may cause issues within the contract `Dispute`. Moreover, note that unless `lpy` tokens are transferred independently to the `Dispute` contract via an external method, this contract will not have a balance available to support this transfer, as no part of the contract's logic acquires tokens on behalf of the contract. A similar issue arises with the address `_nftAddr` used in `createDisputeByServer()`. Again, it is understood from context that the corresponding `_nftAddr` is meant to be in-house. Since the contract is out of scope for the audit, its functional correctness is assumed.
Open the reportThe `Dispute` contract inherits from OpenZeppelin's `AccessControlEnumerable`, meaning multiple addresses may take on the `SERVER_ROLE` at once; the `DEFAULT_ADMIN_ROLE` (the deployer of the `Dispute` contract) can assign as many `SERVER_ROLE` accounts as they choose.
Open the reportArbiters vote on a dispute through function `castVote()`. They do so by input a bool `_agree`. The comments above this function specify that `true==YES` and `false==NO`. However, in function `_getSignerAddress()`, an internal function called when the `SERVER_ROLE` uses signatures to cast votes on behalf of arbiters, the functionality suggests that a bool of `true` for `_agree` is a vote in favor of `sideA` being cast as the `winner` of the dispute.
Open the reportFunction `claim()` has a TODO comment stating `TODO: USE TRANSFER FROM HERE.` Please provide clarification on the following: - Is this comment specifying that the intention is to replace `transfer()` with `transferFrom()`? If so, please clarify who the `lpy` tokens will be transferred from. If the `lpy` tokens are to be transferred from the losing side address, is appears nothing enforces the losing address to approve the transfer of tokens to the caller of `claim()`.
Open the reportThe following comment is not accurate: ```solidity /// @notice Adds a new dispute to memory ``` The function `createDisputeByServer()` is adding a new dispute to the mapping in storage.
Open the reportFunctions that affect the state of storage variables should emit events.
Open the reportThe following input values are missing relevant validation checks: - In function `createDisputeByServer()`, input `usdValue` is missing a check that it is nonzero. - In function `finalizeDispute()`, input `ratio` is missing a check that it is nonzero. - In functions `updateSideA()` and `updateSideB()`, there is a missing check that `dispute.state == State.Open`.
Open the reportAddresses should be checked before assignment or external calls to make sure they are not `address(0)`.
Open the reportA reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. *This finding is considered minor because the reentrancy only causes out-of-order events.* ### External call(s) ```solidity=535 require( lpy.transfer(msg.sender, _dispute.tokenValue), "CLAIM:: transfer failed" ); ``` ### Events emitted after the call(s) ```solidity=540 emit DisputeFundClaimed(_dispute.disputeIndex, _dispute.tokenValue, msg.sender); ```
Open the reportIn the library `IterableArbiters`, the function `getIndexOfKey()` takes the value of `map.indexOf[key]`, which is a `uint` and converts it to type `int`. If the value of `map.indexOf[key]` is larger than `2**255`, then the conversion will cause an overflow into negative values. For instance, `2**255 + 1` would also return -1, which would make it appear as if `map.inserted[key]` is false, even if it is not.
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="leisurepay"></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