-
# Lines of code
https://github.com/code-423n4/2022-12-caviar/blob/0212f9dc3b6a418803dbfacda0e340e059b8aae2/src/Pair.sol#L172
# Vulnerability details
## Impact
The pair contract is susceptible to r…
-
## GAS-01. Pre-increment costs less gas as compared to Post-increment :
++i costs less gas as compared to i++ for unsigned integer, as per-increment is cheaper(its about 5 gas per iteration cheaper…
-
# Lines of code
https://github.com/code-423n4/2022-12-caviar/blob/main/src/Pair.sol#L399
# Vulnerability details
## Impact
User could buy fractional tokens for free.
## Proof of Concept
Currently…
-
# Lines of code
https://github.com/code-423n4/2022-12-caviar/blob/main/src/Pair.sol#L248
# Vulnerability details
## Impact
The `buy` function allows the users to buy FractionalTokens to buy NFTs. …
-
# Lines of code
https://github.com/code-423n4/2022-12-caviar/blob/0212f9dc3b6a418803dbfacda0e340e059b8aae2/src/Pair.sol#L95
# Vulnerability details
When minting LP tokens inside the ``Pair`` contr…
-
# Lines of code
https://github.com/code-423n4/2022-12-caviar/blob/main/src/Pair.sol#L182-L207
# Vulnerability details
## Impact
In `Pair.sol`, `sell()` could be used to fool users into selling fra…
-
# Lines of code
https://github.com/code-423n4/2023-01-astaria/blob/main/src/LienToken.sol#L448
# Vulnerability details
## Impact
When a collateral owner takes a loan, a new Lien token is minted. T…
-
# Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/2996dc7974be06800e35619101047bf1d2107c42/contracts/contract/MinipoolManager.sol#L196
# Vulnerability details
## Impact
The curre…
-
## [G-01] Don't Initialize Variables with Default Value
Uninitialized variables are assigned with the types default value. Explicitly initializing a variable with it's default value costs unnecesary …
-
1 Pre-increment/pre-decrement cost less gas than post-increment / post-decrement.
https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/src/Pages.sol#L251
ht…