Skip to content

Instantly share code, notes, and snippets.

/*
EXAMPLE
*/
contract A {
}

Report

Gas Optimizations

Issue Instances
[GAS-1] Cache array length outside of loop 1
[GAS-2] Use != 0 instead of > 0 for unsigned integer comparison 5

Report

Gas Optimizations

Issue Instances
[GAS-1] Use != 0 instead of > 0 for unsigned integer comparison 5
[GAS-2] Don't initialize variables with default value 1

Report

Gas Optimizations

Issue Instances
[GAS-1] Use != 0 instead of > 0 for unsigned integer comparison 20
[GAS-2] Using bools for storage incurs overhead 4

Report

Gas Optimizations

Issue Instances
[GAS-1] Cache array length outside of loop 3
[GAS-2] Use != 0 instead of > 0 for unsigned integer comparison 4

c4udit Report

Files analyzed

  • ../2022-10-juicebox/contracts/JB721GlobalGovernance.sol
  • ../2022-10-juicebox/contracts/JB721TieredGovernance.sol
  • ../2022-10-juicebox/contracts/JBTiered721Delegate.sol
  • ../2022-10-juicebox/contracts/JBTiered721DelegateDeployer.sol
  • ../2022-10-juicebox/contracts/JBTiered721DelegateProjectDeployer.sol
  • ../2022-10-juicebox/contracts/JBTiered721DelegateStore.sol
  • ../2022-10-juicebox/contracts/abstract/JB721Delegate.sol

Report

Gas Optimizations

Issue Instances
[GAS-1] Cache array length outside of loop 6
[GAS-2] Use != 0 instead of > 0 for unsigned integer comparison 7

c4udit Report

Files analyzed

  • ../2022-10-holograph/contracts/HolographBridge.sol
  • ../2022-10-holograph/contracts/HolographFactory.sol
  • ../2022-10-holograph/contracts/HolographOperator.sol
  • ../2022-10-holograph/contracts/abstract/ERC20H.sol
  • ../2022-10-holograph/contracts/abstract/ERC721H.sol
  • ../2022-10-holograph/contracts/enforcer/HolographERC20.sol

c4udit Report

Files analyzed

  • ../2022-10-holograph/contracts/HolographBridge.sol
  • ../2022-10-holograph/contracts/HolographFactory.sol
  • ../2022-10-holograph/contracts/HolographOperator.sol
  • ../2022-10-holograph/contracts/abstract/ERC20H.sol
  • ../2022-10-holograph/contracts/abstract/ERC721H.sol
  • ../2022-10-holograph/contracts/enforcer/HolographERC20.sol

Report

Gas Optimizations

Issue Instances
[GAS-1] Cache array length outside of loop 10
[GAS-2] Use != 0 instead of > 0 for unsigned integer comparison 77