You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
caventa
medium
The calculation of totalUSDborrowed value is wrong in Vault Synths
Summary
The calculation of totalUSDborrowed value is wrong in Vault Synths because of a typo.
Vulnerability Detail
should be changed to
Impact
This leads to a different coinInUSD value which will affect the result of the require checking a few lines after the code.
Code Snippet
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Synths.sol#L120
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Synths.sol#L123
Tool used
Manual Review
Recommendation
Apply the changes abovementioned. Kindly compare with vault lyra and vault velo. All these 3 vaults should share the similar logic.
Duplicate of #85
The text was updated successfully, but these errors were encountered: