Nina - Audit

CertiKFiles named in the report

CertiK reviewed Nina (Nina - Audit) on 19 Feb 2025: 12 findings, 0 critical; 5 acknowledged, 7 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings12

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

SeverityOpenAcknowledgedFixed
Critical000
High020
Medium030
Low700
LowMissing Emit EventsOpen

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

LowMissing Error MessagesOpen

The **require** can be used to check for conditions and throw an exception if the condition is not met. It is better to provide a string message containing details about the error that will be passed back to the caller.

LowRedundant CodeOpen

In contract `DividendPayingToken`, the code after a `require(false)` is unreachable, which is redundant and can be removed. ```solidity=633 function _transfer(address from, address to, uint256 value) internal virtual override { require(false); int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection); } ``` In addition, in the `NINA` contract, the check for the `newClaimWait` is performed in the `updateClaimWait` function of the `DividendTracker` contract. ```solidity=1259 function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3_600 && newClaimWait <= 86_400, "claimWait must be updated to between 1 and 24 hours"); dividendTracker.updateClaimWait(newClaimWait); } ```

LowThird-Party Dependency UsageOpen

The contract is serving as the underlying entity to interact with one or more third party protocols. The scope of the audit treats third party entities as black boxes and assumes their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of third parties can possibly create severe impacts, such as increasing fees of third parties, migrating to new LP pools, etc. ```solidity=900 IUniswapV2Router02 public uniswapV2Router; ``` - The contract `NINA` interacts with third party contract with `IUniswapV2Router02` interface via `uniswapV2Router`.

LowUnused InterfaceOpen

The smart contract contains one or more inteface definitions that are not used, which can lead to unnecessary complexity and reduced maintainability. ```solidity=223 interface IUniswapV2Pair { ``` - `IUniswapV2Pair` is declared but never used.

LowUnused Return ValueOpen

The smart contract does not check or store the return value of an external call in a local or state variable, which may introduce vulnerabilities due to the unhandled outcome. ```solidity=1205 try uniswapV2Router.addLiquidityETH{value: newBalance}( address(this), otherHalf, 0, // slippage is unavoidable 0, // slippage is unavoidable DEAD, block.timestamp ) {} catch {} ``` ```solidity=1320 dividendTracker.processAccount(payable(msg.sender), false); ``` ```solidity=1324 dividendTracker.processAccount(payable(claimee), false); ```

LowVariables That Could Be Declared as ImmutableOpen

The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

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

  • contract.sol

Part of Nina’s security record

Nina
Audits1 audit by 1 firmLast audit Feb 2025, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Nina’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