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.
Sponsor confirmed, will fix. I believe this issue was also raised by CodingNameKiki as I recall them asking me about it? I will link their issue here as duplicate if I can find it, covered in issue #85 also.
clems4ever
medium
isoUSDLoaned used instead of isoUSDLoanAndInterest in openLoan of Vault_Synths.sol
Summary
The total amount of borrowed USD is wrongly computed in Vault_Synths.sol compared to other vaults.
Issue: https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Synths.sol#L120
Working example: https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Lyra.sol#L129
Vulnerability Detail
Wrong value requiring users to deposit more collateral than expected.
Impact
Wrong value requiring users to deposit more collateral than expected.
Code Snippet
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Synths.sol#L120
POC: https://github.com/sherlock-audit/2022-11-isomorph-clems4ever/commit/7b03f793bc597fead797c95a9cf23b7682d34e1c#diff-663352a62e4155212f816fa3f0777ac9479e578c39964815ae2f6d90611137a4R120
Tool used
Manual Review
Recommendation
Use the correct variable.
Duplicate of #85
The text was updated successfully, but these errors were encountered: