-
A contract which I thinks improve a lot the owner UX of a contract in OZ is Ownable2Step so I was wondering if we could make the solmate version of it with Owned
-
## `> 0` is less efficient than `!= 0` for uint in require condition
Ref: https://twitter.com/GalloDaSballo/status/1485430908165443590
```
contracts/AaveV3YieldSource.sol:179: require(decimals_ > 0…
-
### Component
Forge
### Describe the feature you would like
Sometimes it's necessary to get a creation code that can be passed into `CREATE` opcode. E.g. Solmate's CREATE3 library requires th…
-
# Gas Report
- [G-01: use unchecked when incrementing for loop variable](#g-01-use-unchecked-when-incrementing-for-loop-variable)
- [G-02: increment using ++i instead of i++ consistently](#g-02-incre…
-
```Solidity
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Test.sol";
import "solmate/utils/SafeTransferLib.sol";
import "solmate/tokens/ERC20.sol";
cont…
-
# GAS
## Public function visibility can be made external
### Summary
Functions should have the strictest visibility possible. Public functions may lead to more gas usage by forcing the copy of their p…
-
# Gas report
## Use cached `_auction` varible instead of state variable.
```diff
diff --git a/src/auction/Auction.sol b/src/auction/Auction.sol
index 794da99..3754f3b 100644
--- a/src/auction/Aucti…
-
### Issues: Missing Event for critical function.
- Severity: Quality Assurance
- Locations: [Cally.sol: withdrawProtocolFees(),setFee() ](https://github.com/code-423n4/2022-05-cally/blob/main/con…
-
# _SAFEMINT() SHOULD BE USED RATHER THAN _MINT() WHEREVER POSSIBLE
_mint() is discouraged in favor of _safeMint() which ensures that the recipient is either an EOA or implements IERC721Receiver. Bot…
-
# Lines of code
https://github.com/code-423n4/2024-05-olas/blob/3ce502ec8b475885b90668e617f3983cea3ae29f/tokenomics/contracts/staking/ArbitrumDepositProcessorL1.sol#L174
# Vulnerability details
##…