OneRare V2

CertiKFiles named in the report

CertiK reviewed OneRare (OneRare V2) on 11 Jul 2022: 9 findings, 0 critical; 5 marked fixed, 4 acknowledged.

No open critical findings
Open the reportOpen OneRare’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings9

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

SeverityOpenAcknowledgedFixed
Critical000
High032
Medium001
Low012
HighCentralization Related RisksAcknowledged

**In the contract `ORareGame` the role `_owner` and `admin` have authority over the following functions:** - `updateDishLock()` - `addOrUpdateDishRecipe()` - `addOrUpdateMultipleDishRecipe()` - `createDish()` Any compromise to the privileged accounts may allow the hacker to take advantage of this authority. e.g. change dish NFT recipes or lock a dish. **In the contract `OneRareMarketplace` the role `_owner` has authority over the functions shown in the diagram below.** ![](https://accelerator-tasks-prod.acc.corp.certik.com/4c8d3e789b93478d96c4bea1d41ddfea/diagrams/centralization-OneRareMarketplace-_owner.svg) Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. e.g. change fee receiver address or drain the OrareNft tokens in the marketplace. **In the contract `ORareNft` the role `_owner` has authority over the functions shown in the diagram below.** ![](https://accelerator-tasks-prod.acc.corp.certik.com/4c8d3e789b93478d96c4bea1d41ddfea/diagrams/centralization-ORareNft-_owner.svg) Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and set arbitrary accounts as the game contract that can mint OrareNFT tokens. **In the contract `NftRewardVault` the role `_owner` has authority over the functions shown in the diagram below.** ![](https://accelerator-tasks-prod.acc.corp.certik.com/4c8d3e789b93478d96c4bea1d41ddfea/diagrams/centralization-NftRewardVault-_owner.svg) Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. e.g. set the number of tokens available for distribution and set arbitrary accounts as whitelisted operators, which could interrupt NFT reward distribution in the staking contract. Stakers can not claim their staking rewards when the vault balance is insufficient. **In the contract `ORareNftStaking` the role `_owner` has authority over the functions shown in the diagram below.** ![](https://accelerator-tasks-prod.acc.corp.certik.com/4c8d3e789b93478d96c4bea1d41ddfea/diagrams/centralization-ORareNftStaking-_owner.svg) Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. e.g. change the reward rate, set unbonding period, or close an open stake, which could interrupt the rewards distribution.

HighCentralized Control of Contract UpgradeAcknowledged

`ORareNftStaking`, `ORareGame`, and `OneRareMarketPlace` are upgradeable contracts, the owner can upgrade the contract without the community's commitment. If an attacker compromises the account, he can change the implementation of the contract and drain tokens from the contract.

HighPrivileged Function Allows `Owner` to Withdraw alAcknowledged

Function `recoverERC20()` in `ORareNftStaking.sol` allows the controller of the contract owner to withdraw all of the `Orare` tokens staked in the `OneRareStaking` contract, which could lead to a rug pull.

LowFunction `getUnclaimedRewardsFor()` may return inAcknowledged

Function `getUnclaimedRewardsFor()` may return incorrect value when `updateRewardsPerSec()` is in process. In this case, for users that have been processed, `user.rewardDebt` is reset while `_accRewardPerShare` is not.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (8)

  • contracts/oRareNftStaking/NftStakingConfig.sol
  • contracts/oRareGame/ORareGame.sol
  • contracts/oRareGame/GameConfig.sol
  • contracts/tokens/ORareNft.sol
  • contracts/oRareNftStaking/NftRewardVault.sol
  • contracts/oRareMarketPlace/OneRareMarketPlace.sol
  • contracts/oRareMarketPlace/MarketPlaceConfig.sol
  • contracts/oRareNftStaking/ORareNftStaking.sol

Part of OneRare’s security record

OneRare
Audits1 audit by 1 firmLast audit Jul 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open OneRare’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

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