-
# Lines of code
https://github.com/Rari-Capital/solmate/blob/12421e3edee21cfb99bf5a6edd6169e6497511de/src/mixins/ERC4626.sol#L133
# Vulnerability details
Solmate `convertToShares` [function](http…
-
## _safeMint() should be used rather than _mint() wherever possible
`_mint()` is [discouraged](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/d4d8d2ed9798cc3383912a23b5e8d5cb602f7d4b/con…
-
# Lines of code
https://github.com/code-423n4/2024-05-bakerfi/blob/main/contracts/core/Vault.sol#L260-L264
# Vulnerability details
## Description
The [Vault::withdraw()](https://github.com/code-42…
-
# QA Report
## Low-Risk Issues
### Protocol fee can be set to an arbitrary number
The `Cally#setFee` function misses a check to circumvent setting an arbitrary high protocol fee, i.e. 100% = 1e18.
…
-
## [N] Misleading error message
https://github.com/code-423n4/2022-05-cally/blob/1849f9ee12434038aa80753266ce6a2f2b082c59/contracts/src/Cally.sol#L169
```solidity
require(dutchAuctionReserveStrike <…
-
See the markdown file with the details of this report [here](https://github.com/code-423n4/2023-04-caviar-findings/blob/main/data/Bauchibred-Q.md).
-
# Gas Optimizations
* can use unchecked in the `lend` function because we know that `facilitatorTake < amountIncrease` (because `facilitatorTake = (amountIncrease * originationFeeRate / SCALAR)` and `…
-
Hi,
I was trying to deploy contracts (Factory pattern) via OpenZeppelin's Clones library. My implementation contract uses Solmate's ReentrancyGuard. When I was trying to execute some methods on the…
-
# Lines of code
https://github.com/code-423n4/2023-11-panoptic/blob/f75d07c345fd795f907385868c39bafcd6a56624/contracts/tokens/ERC1155Minimal.sol#L141-L157
# Vulnerability details
## Impact
`ERC115…
-
# Lines of code
https://github.com/code-423n4/2022-09-frax/blob/55ea6b1ef3857a277e2f47d42029bc0f3d6f9173/src/sfrxETH.sol#L26
# Vulnerability details
- The sfrxETH ERC-20 contract does not have pro…