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 }}
Repository navigation
Collaterals with decimals over than 18 can not be used #264
The protocol can not be used with some collaterals.
Proof of Concept
In the initialization process, the protocol calculates the decimalsMultiplier that are used later to convert from the collateral token amount to cash token amount.
This implementation reverts for the collaterals with decimals greater than 18 and the protocol can not support some collaterals, it is an unnecessary contract level restriction for the future expansion.
Tools Used
Manual Review
Recommended Mitigation Steps
Add a new parameter to store the relationship between the two token decimals and use it properly for conversions.
Activity
hansfriese issue #264
c4-judge commentedon Jan 23, 2023
trust1995 changed the severity to QA (Quality Assurance)
Q-report created from downgraded finding #264
c4-judge commentedon Jan 23, 2023
trust1995 marked the issue as grade-b