NoriGO!

CertiKFiles named in the report

CertiK reviewed NoriGO! on 23 Jul 2022: 13 findings, 0 critical; 2 marked fixed, 3 acknowledged, 8 open.

No open critical findings
Open the reportOpen NoriGO!’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings13

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

SeverityOpenAcknowledgedFixed
Critical000
High030
Medium001
Low801
LowFunction Should Be Declared ExternalOpen

The functions which are never called internally within the contract should have external visibility for gas optimization. ```solidity=43 function name() public view virtual override returns (string memory) { ``` --- ```solidity=47 function symbol() public view virtual override returns (string memory) { ``` --- ```solidity=51 function decimals() public view virtual override returns (uint8) { ``` --- ```solidity=63 function transfer(address recipient, uint256 amount) public virtual override returns (bool) { ``` --- ```solidity=68 function allowance(address owner, address spender) public view virtual override returns (uint256) { ``` --- ```solidity=72 function approve(address spender, uint256 amount) public virtual override returns (bool) { ``` --- ```solidity=77 function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { ``` --- ```solidity=89 function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { ``` --- ```solidity=94 function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { ```

LowMissing check for `lpPairEth`Open

In the contract `NoriGO`, it is noted that the `lpPairEth` is missing a check in the **linked** statements, yet the `lpPair` is checked.

LowPotential High Trade FeeOpen

The contract takes the fee from the transfer, and the fee rate for the selling can be updated by calling `updateSellFees()`. And the maximum fee rate for selling may reach as higher as 12%.

LowPotential Sandwich AttacksOpen

A sandwich attack might happen when an attacker observes a transaction swapping tokens or adding liquidity without setting restrictions on slippage or minimum output amount. The attacker can manipulate the exchange rate by frontrunning (before the transaction being attacked) a transaction to purchase one of the assets and make profits by backrunning (after the transaction being attacked) a transaction to sell the asset. The following functions are called without setting restrictions on slippage or minimum output amount, so transactions triggering these functions are vulnerable to sandwich attacks, especially when the input amount is large: - `swapExactTokensForTokensSupportingFeeOnTransferTokens()` - `swapExactTokensForETHSupportingFeeOnTransferTokens()` - `addLiquidity()` - `addLiquidityEth()`

LowThird Party DependencyOpen

The contract is serving as the underlying entity to interact with the 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. - The contract `NoriGO` interacts with the third-party contract with `IDexRouter` interface via `dexRouter`. - The contract `NoriGO` interacts with the third-party contract with `IERC20` interface.

LowUnchecked ERC-20 `transfer()`/`transferFrom()` CaOpen

The return value of the transfer()/transferFrom() call is not checked. ```solidity=185 IERC20(token).transfer(owner(), IERC20(token).balanceOf(address(this))); ``` --- ```solidity=632 pair.transfer(liquidityAddress1, lpPairBalance * percentLpToAddress1 / 100); ``` --- ```solidity=635 pair.transfer(liquidityAddress2, pair.balanceOf(address(this))); ``` --- ```solidity=651 pair.transfer(liquidityAddress1, lpPairBalance * percentLpToAddress1 / 100); ``` --- ```solidity=654 pair.transfer(liquidityAddress2, pair.balanceOf(address(this))); ``` --- ```solidity=693 STABLECOIN.transfer(projectAddress, STABLECOIN.balanceOf(address(this))); ```

LowUnused Return ValueOpen

The return values of an external call are not used in the contract. ```solidity=623 STABLECOIN.approve(address(dexRouter), stablecoinAmount); ``` --- ```solidity=626 dexRouter.addLiquidity(address(this), address(STABLECOIN), tokenAmount, stablecoinAmount, 0, 0, address(this), block.timestamp); ``` --- ```solidity=645 dexRouter.addLiquidityETH{value: ethAmount}(address(this), tokenAmount, 0, 0, address(this), block.timestamp); ``` --- ```solidity=731 (success, ) = projectAddress.call{value: address(this).balance}(""); ```

LowVariables That Could Be Declared as ImmutableOpen

The linked variable `futureOwnerAddress` 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)

  • contracts/NoriGO.sol

Part of NoriGO!’s security record

NoriGO!
Audits1 audit by 1 firmLast audit Jul 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open NoriGO!’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