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.
hansfriese
medium
Wrong constants for time delay
Summary
This protocol uses several constants for time dealy and some of them are incorrect.
Vulnerability Detail
In
isoUSDToken.sol
,ISOUSD_TIME_DELAY
should be3 days
instead of 3 seconds.In
CollateralBook.sol
,CHANGE_COLLATERAL_DELAY
should be2 days
instead of 200 seconds.Impact
Admin settings would be updated within a short period of delay so that users wouldn't react properly.
Code Snippet
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/isoUSDToken.sol#L10
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/CollateralBook.sol#L23
Tool used
Manual Review
Recommendation
2 constants should be modified as mentioned above.
The text was updated successfully, but these errors were encountered: