TenGuDaruma audit reports

TenGuDaruma has 1 public audit report from CertiK; dated 2 Sep 2022; no critical findings reported.

Critical and high findings
No open critical findings; 2 high open in the firms’ reports
Open the latest report
Your label, live
Get the label for your site

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

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
TenGuDaruma NFTSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 2 high · 10 low
12 open
skynet.certik.com ↗

Open findings across every firm12

Statuses are the security firms’ own

12 findings are still open or acknowledged in the firms’ reports: 2 high, 10 low (all open).

High
2
Low
10
  • High Open

    Centralization Risks in `FarmStaking` and `WishPo

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • High Open

    Centralization Risks in the `FarmReward`

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Declaration Naming Convention

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Dependency contracts

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Divide Before Multiply

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    External Call Inside Loop

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Gas Limit and Loops

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Logical issue of `stakingStatusMap`

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    Missing Emit Events

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

  • Low Open

    The calculation of the reward

    TenGuDaruma NFT · CertiK · 2 Sep 2022 · Report ↗

All 12 open and acknowledged findings

Findings12

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

SeverityOpenAcknowledgedFixed
Critical000
High200
Medium000
Low1000
HighCentralization Risks in `FarmStaking` and `WishPoTenGuDaruma NFT · CertiK · 2 Sep 2022Open

In the contract `FarmStaking` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. ![](https://accelerator-tasks-prod.acc.corp.certik.com/1f55e946d62f491089f76956f395020c/diagrams/centralization_FarmStaking-FarmStaking-_owner.svg) In the contract `FarmStaking` the role `_owner` also has authority over the functions in commit'f677e3b53fa79d062cce3dd6a3c8f4b871192193'. - function `pause()`: to pause the transactions. - function `unpause()`: to unpause the transactions. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. In the contract `WishPool` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. ![](https://accelerator-tasks-prod.acc.corp.certik.com/1f55e946d62f491089f76956f395020c/diagrams/centralization_WishPool-WishPool-_owner.svg) In the contract `WishPool` the role `_owner` also has authority over the functions in commit'f1b5f8bc84f224cfc434705c7d15f50ed60fb970'. - function `pause()`: to pause the transactions. - function `unpause()`: to unpause the transactions. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority.

Open the report
HighCentralization Risks in the `FarmReward`TenGuDaruma NFT · CertiK · 2 Sep 2022Open

In the contract `FarmReward` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority. ![](https://accelerator-tasks-prod.acc.corp.certik.com/1f55e946d62f491089f76956f395020c/diagrams/centralization_FarmReward-FarmReward-_owner.svg) In the contract `FarmReward` the role `_owner` also has authority over the functions in commit'ca81e9d775e7631c854c8fd6c6a9069925e208c4'. - function `pause()`: to pause the transactions. - function `unpause()`: to unpause the transactions. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority.

Open the report
LowDeclaration Naming ConventionTenGuDaruma NFT · CertiK · 2 Sep 2022Open

One or more declarations do not conform to the [Solidity style guide](https://solidity.readthedocs.io/en/v0.7.3/style-guide.html#naming-conventions) with regards to its naming convention. Particularly: - `camelCase`: Should be applied to function names, argument names, local and state variable names, modifiers - `UPPER_CASE`: Should be applied to `constant` variables - `CapWords`: Should be applied to contract names, struct names, event names, and enums.

Open the report
LowDependency contractsTenGuDaruma NFT · CertiK · 2 Sep 2022Open

The contract is serving as the underlying entity to interact with one or more implementations that are out of the scope of this audit, such as `appConf.getRewardAmount()`,`nftFactory.tokenDetail()`, `IFactory(appConf.getNftFactoryAddr()).mintDamo()`, `IERC20Ex(redeemToken).safeTransferFrom()`, etc. The scope of the audit treats these codes as black boxes and assumes their functional correctness. The detailed dependencies are listed below: ```solidity contract AppConf contract damoFactory contract daMoContract contract wishDaMo interface IERC20Ex ```

Open the report
LowDivide Before MultiplyTenGuDaruma NFT · CertiK · 2 Sep 2022Open

Performing integer division before multiplication truncates the low bits, losing the precision of calculation. ```solidity=175 uint256 multiple = elapsedTime / appConf.getRewardPeriod(stakingRecord.gen); ``` ```solidity=176 rewardAmount = nftCount * (multiple * appConf.getRewardAmount(stakingRecord.gen)); ```

Open the report
LowExternal Call Inside LoopTenGuDaruma NFT · CertiK · 2 Sep 2022Open

External calls are made inside a *for* loop. This might lead to a denial-of-service attack. If any of the calls fail, it will cause the entire loop to revert.

Open the report
LowGas Limit and LoopsTenGuDaruma NFT · CertiK · 2 Sep 2022Open

The logic of functions `_claimAll()`, `_claim()`, `unstakeAll()` and `_unstake()` are too complex and contain many loops. Loops that do not have a fixed number of iterations, for example, loops that depend on storage values, have to be used carefully. Due to the block gas limit, transactions can only consume a certain amount of gas. Either explicitly or just due to normal operation, the number of iterations in a loop can grow beyond the block gas limit which can cause the complete contract to be stalled at a certain point. This may not apply to view functions that are only executed to read data from the blockchain. Still, such functions may be called by other contracts as part of on-chain operations and stall those. Please be explicit about such cases in the documentation of your contracts.

Open the report
LowLogical issue of `stakingStatusMap`TenGuDaruma NFT · CertiK · 2 Sep 2022Open

The `tokenIds` may be duplicated among different types of NFTs, hence the `stakingStatusMap` should not only record the `tokenIds`, but also the NFT type.

Open the report
LowMissing Emit EventsTenGuDaruma NFT · CertiK · 2 Sep 2022Open

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

Open the report
LowThe calculation of the rewardTenGuDaruma NFT · CertiK · 2 Sep 2022Open

When the `rewardType` is not `Model.REWARD_TYPE_FIXED`, investors may get less reward because of solidity's division truncation feature. e.g. If the `nftCount == 1`, `appConf.getRewardAmount(stakingRecord.gen) == 1`, `appConf.getRewardPeriod(stakingRecord.gen) == 7 day`, `elapsedTime == 13 day`, the `rewardAmount` would be 1, which means the 6 of 13 days for staking are nullified.

Open the report
Show 2 more
LowThe use of `WishPool`TenGuDaruma NFT · CertiK · 2 Sep 2022Open

Except for the function `getWishs()`, the contract `WishPool` has two external functions, the `wish()` and `redeem()`. The function `wish()` is used to add a new wish content to the `wishMap`, and the function `redeem()` is used to burn an NFT and get another type of NFT, and the redeem tokens or ETHs may also be transferred to the donate address and incense address. We would like the client to provide us with more detailed information about the design of the `wishMap`, the function `redeem()`, and the difference among various NFTs.

Open the report
LowUnlocked Compiler VersionTenGuDaruma NFT · CertiK · 2 Sep 2022Open

The contract has an unlocked compiler version. An unlocked compiler version in the source code of the contract permits the user to compile it at or above a particular version. This, in turn, leads to differences in the generated bytecode between compilations due to differing compiler version numbers. This can lead to ambiguity when debugging as compiler-specific bugs may occur in the codebase that would be hard to identify over a span of multiple compiler versions rather than a specific one.

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

TenGuDaruma: questions

Is TenGuDaruma audited?

Trustblock holds 1 public audit report for TenGuDaruma, dated 2 Sep 2022. The latest is by CertiK (“TenGuDaruma NFT”).

Who audited TenGuDaruma?

CertiK wrote the report Trustblock holds for TenGuDaruma.

Are there open findings in TenGuDaruma’s audits?

12 findings are still open or acknowledged in the firms’ reports: 2 high, 10 low (all open). No critical finding is reported. Statuses are the security firms’ own.

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="tengudaruma"
></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