-
Notifications
You must be signed in to change notification settings - Fork 5
Ch_301 - asking for the wrong address for balanceOf()
#116
Comments
Escalate for 10 USDC This is a simple finding when you know that Also of wonder the judge set this as invalid but he submitted both this and #114 in the next contest Blueberry Update 2 |
You've created a valid escalation for 10 USDC! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
Escalation accepted Valid medium |
|
Fix looks good. _doPutCollateral now correctly uses the balance of the vault token rather than the balance of the underlying token |
Ch_301
medium
asking for the wrong address for
balanceOf()
Summary
Vulnerability Detail
ShortLongSpell.openPosition() pass to
_doPutCollateral()
wrong value ofbalanceOf()
the balance should be of
address(vault)
Impact
openPosition()
will never workCode Snippet
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: