issues
search
code-423n4
/
2022-01-openleverage-findings
0
stars
0
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Gaz report OpenLeverage contest
#221
code423n4
closed
2 years ago
2
Funds can be lost
#220
code423n4
opened
2 years ago
3
Gas Optimization: `> 0` is less efficient than `!= 0` for uint in require condition
#219
code423n4
closed
2 years ago
1
Last reward is discarded when reward added twice
#218
code423n4
opened
2 years ago
0
Gas Optimization: Unnecessary check
#217
code423n4
closed
2 years ago
1
Checks missing while adding rewards
#216
code423n4
closed
2 years ago
2
User reward can get stuck
#215
code423n4
opened
2 years ago
2
Extra reward will be given
#214
code423n4
closed
2 years ago
1
Fund loss
#213
code423n4
closed
2 years ago
1
Gas savings and corrections
#212
code423n4
opened
2 years ago
0
`FarmingPools.sol` Some users may not be able to get back their funds for tokens with tax on transfer
#211
code423n4
closed
2 years ago
2
Lack of input validation of `releaseVar.endTime > releaseVar.startTime`
#210
code423n4
closed
2 years ago
1
Unused library `ReentrancyGuard`
#209
code423n4
opened
2 years ago
0
`UniV2ClassDex.sol#uniClassSell()` Tokens with fee on transfer are not fully supported
#208
code423n4
opened
2 years ago
2
Cache storage variables in the stack can save gas
#207
code423n4
closed
2 years ago
1
Use `calldata` rather than `memory` for parameters can save gas
#206
code423n4
closed
2 years ago
1
Cache array length in for loops can save gas
#205
code423n4
closed
2 years ago
1
Some variables can be set immutable
#204
code423n4
closed
2 years ago
1
Assigning default values costs unnecessary gas.
#203
code423n4
closed
2 years ago
1
Accessing array length in for loop is costly.
#202
code423n4
closed
2 years ago
1
Using preincrement ina for loop can save gas
#201
code423n4
closed
2 years ago
1
Controller can drain OpenLevV1 funds
#200
code423n4
closed
2 years ago
2
Drain of funds by reentrancy in OpenLevV1.addMarket
#199
code423n4
closed
2 years ago
4
Misc
#198
code423n4
opened
2 years ago
0
Wrong reward calculation
#197
code423n4
closed
2 years ago
2
Admin can initialize the contracts multiple times
#196
code423n4
closed
2 years ago
1
Bad actor may steal deposit return when liquidating a trade
#195
code423n4
opened
2 years ago
5
Safe transfers are vulnerable to EOA calls
#194
code423n4
closed
2 years ago
2
Gas: `++i` costs less gas compared to `i++`
#193
code423n4
closed
2 years ago
2
Unchecked returns
#192
code423n4
closed
2 years ago
1
Gas: Using the logical NOT operator `!` is cheaper than a comparison to the constant boolean value `false`
#191
code423n4
closed
2 years ago
1
Missing zero address validation
#190
code423n4
closed
2 years ago
1
TransferHelper: safeTransfer/safeTransferFrom are not safe
#189
code423n4
closed
2 years ago
2
Wallet issue to many tine
#188
code423n4
closed
2 years ago
1
Gas in `LPool.initialize()`: `underlying_` should be used instead of `underlying`
#187
code423n4
closed
2 years ago
2
Gas in `LPool.getBorrowRateInternal()`: `kink` should get cached
#186
code423n4
closed
2 years ago
2
Gas in `LPool.calCurrentBorrowIndex()`: `borrowIndex` should get cached
#185
code423n4
closed
2 years ago
2
Gas in `LPool.availableForBorrow()`: `totalBorrows` should get cached
#184
code423n4
closed
2 years ago
2
Gas in `GovernorAlpha.state()`: `proposal.startBlock` and `proposal.eta` should get cached
#183
code423n4
closed
2 years ago
2
Gas in `OLETokenLock.transferTo()`: `releaseVars[beneficiary].startTime` should get cached
#182
code423n4
closed
2 years ago
2
Gas in `OLETokenLock.releaseInternal()`: `releaseVars[beneficiary].endTime` should get cached
#181
code423n4
closed
2 years ago
2
Gas in `ControllerV1.createLPoolPair()`: SLOADs minimization
#180
code423n4
closed
2 years ago
2
Gas in `Airdrop.newTranche()`: calculation should be done in cache
#179
code423n4
closed
2 years ago
2
`DexAggregatorDelegator:NewImplementation` event is emitting a storage value
#178
code423n4
closed
2 years ago
2
`NewBorrowCapFactorMantissa` event is emitting a storage value
#177
code423n4
closed
2 years ago
2
`LPoolDelegator:NewImplementation` event is emitting a storage value
#176
code423n4
closed
2 years ago
2
`NewImplementation` event is emitting a storage value
#175
code423n4
closed
2 years ago
2
Gas in `OpenLevV1.moveInsurance()`: `market.token0` and `market.token1` should get cached
#174
code423n4
closed
2 years ago
2
Gas in `OpenLevV1.toMarketVar()`: `market.token0` and `market.token1` should get cached
#173
code423n4
closed
2 years ago
2
Gas in `OpenLevV1.closeTrade()`: `trade.held` should get cached
#172
code423n4
closed
2 years ago
2
Previous
Next