Carbify - NFT

QuillAuditsFiles named in the report

Audit · firm’s term: audit report

QuillAudits reviewed Business Carbify (Carbify - NFT) on 11 May 2023: 4 findings, 0 critical; all marked fixed.

No open critical findings
Open the reportOpen Business Carbify’s security record

Report hosted on quillaudits.com.

Trustblock does not review code.

Findings4

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

SeverityOpenAcknowledgedFixed
Critical000
High001
Medium002
Low001
High• Overlaping of tokenId indexes of NFTs would lead minting of NFT at same tokenId.Fixed

At NftreeFactory.sol#L151-152 incorrect firstIndex and lastIndex get calculated during ecoEmpire and backup initialization. ecoEmpire’s batch firstIndex and lastIndex is shortfall by 1 while backup’s batch firstIndex and lastIndex is shortfall by 2.Because of this overlapping of indexes ecoEmpire would mint its NFT at the lastIndex of Staking NFT similarly backup NFT get minted at ecoEmpire’s lastIndex.

Medium• Incorrect fees precedence.Fixed

At Nftree.sol#L220-221, In updateFees function fee1, fee2 & fee3 are set but all are validated against MAX_FEE i.e. fee1, fee2, fee3 <= MAX_FEE , It is a valid check but the updateFees should have additional check where it validates that MAX_FEE >= fee1 > fee2 > fee3 otherwise it will defeat the purpose of having different fees value for different period of deposit. E.g. paying more fee for keeping the deposit of CBY for 2 years compare to the deposit of 6 months.

Medium• Multiple deposits of CBY for a tokenId would lead to pay more fees by the users.Fixed

At Nftree.sol#L601, Deposit time is set as the block.timestamp, However, if the user deposits more tokens for a same tokenId after a year then user deposit timestamp get set as the latest deposit timestamp and user have to pay fee1 bracket even for the withdrawal of the early deposit amount. This would discourage the recurring deposits corresponds to a single tokenId.

Low• Micelleanous recommendation for the code cleanupFixed

At Nftree.sol#L236 & Nftree.sol#L249, Recommended to not use the require statement in the view functions instead return false & (false, 0) respectively. It would be better for the UX.

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 (2)

  • Nftree.sol
  • NftreeFactory.sol

Part of Business Carbify’s security record

Business Carbify
Audits4 audits by 2 firmsLast audit Oct 2024, by SolidProof.
Critical findingsNo open critical findingsAcross the 4 reports, 1 critical finding was reported. It is marked fixed by the firm that reported it.
Open Business Carbify’s security record

Security firm

QuillAudits

350 projects reviewed · 459 reports · latest Apr 2025

See QuillAudits’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