This repository has been archived by the owner on May 26, 2023. It is now read-only.
GalloDaSballo - PreviewRedeem
may under-price the value of the asset
#19
Labels
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
GalloDaSballo
medium
PreviewRedeem
may under-price the value of the assetSummary
previewRedeem will return an incorrect result based on
address(0)
If you get the partnership the fee changes, the address could change the value
This may enable: Unfairer (bps wise), liquidations when they shouldn't happen, also will enable marginally higher profit for liquidators as they may be able to benefit from the reduction of the fee
Vulnerability Detail
Impact
A user may get liquidated earlier, and the accounting would be incorrect
Code Snippet
https://arbiscan.io/address/0x13f0d29b5b83654a200e4540066713d50547606e#code
Tool used
Manual Review
Recommendation
Use the account to determine the price
The text was updated successfully, but these errors were encountered: