LeisurePay security record

BNB Chain, Ethereumleisurepay.ioGitHub

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.

Critical findings
No open critical findings
In 1 report.
Open the latest report
Your label, live
Get the label for your site

Record last updated . It holds audits, findings and contracts up to Nov 2026, and incidents up to Oct 2026. Trustblock does not review code.

Audits1

Newest first

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

Findings14

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

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium000
Low0211
Low`AccessControl` Role is Not Set Up As RecommendedLeisurepay · CertiK · 10 Nov 2022Fixed

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 report
LowDependency on ERC20 token `lpy` and ERC721 tokenLeisurepay · CertiK · 10 Nov 2022Fixed

The 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 report
LowDiscussion on `SERVER_ROLE`Leisurepay · CertiK · 10 Nov 2022Fixed

The `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 report
LowDiscussion on bool `_agree`Leisurepay · CertiK · 10 Nov 2022Fixed

Arbiters 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 report
LowDiscussion on Comments Left from TestingLeisurepay · CertiK · 10 Nov 2022Fixed

Function `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 report
LowInaccurate CommentLeisurepay · CertiK · 10 Nov 2022Fixed

The 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 report
LowMissing Emit EventsLeisurepay · CertiK · 10 Nov 2022Fixed

Functions that affect the state of storage variables should emit events.

Open the report
LowMissing ValidationLeisurepay · CertiK · 10 Nov 2022Fixed

The 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 report
LowMissing Zero Address ValidationLeisurepay · CertiK · 10 Nov 2022Fixed

Addresses should be checked before assignment or external calls to make sure they are not `address(0)`.

Open the report
LowPotential Reentrancy Attack (Out-of-Order Events)Leisurepay · CertiK · 10 Nov 2022Fixed

A 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 report
Show 1 more
LowUnsafe TypecastingLeisurepay · CertiK · 10 Nov 2022Fixed

In 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 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="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