-
# Handle
0xRajeev
# Vulnerability details
## Impact
Unnecessary return of argument value via state variable which costs a SLOAD, returns the same value as argument back to caller where the return …
-
I have an application where data contracts in C# are defined under two namespaces: `MyProject.Contracts.V1` and `MyProject.Contracts.V2`, and I have set up API versioning so that API version V1 will r…
-
L-01. Some if statements do unnecessary fee calculations for zero amounts.
The following if statements return true if one of the variables is zero,
so it's going to do the fee calculation anyway for…
-
## G01 - Using ```!= 0``` instead of ```> 0``` in require statement with ```uint```
```!= 0``` costs less gas compared to ```> 0``` for unsigned integers in ```require``` statements with the optimize…
-
### Version of Hardhat
2.22.10
### What happened?
Trying to deploy smart contracts through hardhat and `hardhat-ledger` plugin (1.0.3) to Polygon zkEVM networks (Cardona or Mainnet) is not po…
-
# Lines of code
https://github.com/code-423n4/2022-03-rolla/blob/main/quant-protocol/contracts/pricing/oracle/ChainlinkOracleManager.sol#L120
https://github.com/code-423n4/2022-03-rolla/blob/main/qua…
-
# Handle
0xRajeev
# Vulnerability details
## Impact
Contracts should be deployed using the same compiler version/flags with which they have been tested. Locking the floating pragma, i.e. by not u…
-
# 1. Cache array length outside of loop
## Impact
Caching the array length outside a loop saves reading it on each iteration, as long as the array's length is not changed during the loop.
## Proof of…
-
# Lines of code
https://github.com/code-423n4/2024-04-renzo/blob/1c7cc4e632564349b204b4b5e5f494c9b0bc631d/contracts/Bridge/xERC20/contracts/XERC20Lockbox.sol#L103-L137
https://github.com/code-423n4/2…
-
# Lines of code
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L114
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341…