Skip to content

Instantly share code, notes, and snippets.

c4udit Report

Files analyzed

  • ../2022-10-3xcalibur/contracts/Core/SwapFactory.sol
  • ../2022-10-3xcalibur/contracts/Core/SwapPair.sol
  • ../2022-10-3xcalibur/contracts/periphery/Bribe.sol
  • ../2022-10-3xcalibur/contracts/periphery/Gauge.sol
  • ../2022-10-3xcalibur/contracts/periphery/Minter.sol
  • ../2022-10-3xcalibur/contracts/periphery/Multiswap.sol
  • ../2022-10-3xcalibur/contracts/periphery/Voter.sol

Report

Gas Optimizations

Issue Instances
[GAS-1] Cache array length outside of loop 14
[GAS-2] Use != 0 instead of > 0 for unsigned integer comparison 13
@Picodes
Picodes / KeeperRegistry.sol
Created September 9, 2022 12:09
KeeperRegistry
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.12;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/ICoreBorrow.sol";
import "../interfaces/IKeeperRegistry.sol";