-
# 1. Short require strings save gas
## Impact
Strings in solidity are handled in 32 byte chunks. A require string longer than 32 bytes uses more gas. Shortening these strings will save gas.
## Proo…
-
Hi team,
running into some issues when I am reusing a slither workflow from one of my solidity repos (core-v1) in another repo (peripheral-v1). Core-v1 repo is submodule in the Peripheral-v1, `lib/…
-
### Prerequisites
* [x] Can you reproduce the problem with `Debug -> Reload Without Extensions`?
* [x] Did you perform a cursory search to see if your bug or enhancement is already reported?
* [x…
davux updated
3 years ago
-
SafeMath is not needed when using Solidity version 0.8.*
This contracts version 0.8.10 which already implements overflow checks by default.
At the same time, it uses the SafeMath library from OpenZepp…
-
## 1. Missing checks for approve()’s return status
Some tokens, such as Tether (USDT) return false rather than reverting if the approval fails. Use OpenZeppelin’s safeApprove(), which reverts if ther…
-
# 1. Remove Unuse Variable __gap to Save Gas
## Impact
```
uint256[50] private __gap;
```
Variable __gap was not used in VUSD.sol and some other contracts. They will increase the size of deployment w…
-
[Berry](https://github.com/yarnpkg/berry) is yarn's v2 release, which is disruptive in many regards, one of which being the transition from "node_modules" to a new [plug-n-play](https://classic.yarnpk…
-
**Github username:** @jonsey
**Submission hash (on-chain):** 0xa45f53599077cbdc3b13802af859d443447eae4674881ad07fb716b6f826fc4d
**Severity:** low
**Description:**
## Description
It is considered bes…
-
Considering this quote:
"The merkle proof is validated against a merkle tree root that is maintained by the smart contract."
In a scenario where we have a network with thousands of participants ex…
-
## Gas1:
No need to use safemath library for solidity 0.8.4+ as the compiler itself now checks for overflow/underflow, hence results in lot of gas savings
## Gas2:
prefer `!=` instead of `>` for unsi…