Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2021/11/22 12:0 a.m.10 views

Fee double counting for underwater positions

Handle hyh Vulnerability details Impact Actual available fees are less than recorded. That's because a part of them corresponds to underwater positions, and will not have the correct amount stored with the contract: when calculation happens the fee is recorded first, then there is a check for...

6.7AI score
SaveExploits0
Code423n4
Code423n4
added 2021/11/22 12:0 a.m.11 views

isUnderwater returns opposite boolean for short positions

Handle harleythedog Vulnerability details Impact The function isUnderwater should return true iff the position value is 0. In the case of a short position, this is when oi 2 - priceFrame - debt 0 based on the logic given in the value function. Rearranging this equation, a short position is...

7AI score
SaveExploits0
Rows per page
Query Builder