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
In ._totalAssetsEmergency there's a loss of precision in the assets computation due to first truncating by the chainlink decimal factor and then multiplying by DEFAULT_DECIMALS_FACTOR afterwards.
Handle
cmichel
Vulnerability details
Vulnerability Details
In
._totalAssetsEmergency
there's a loss of precision in theassets
computation due to first truncating by the chainlink decimal factor and then multiplying byDEFAULT_DECIMALS_FACTOR
afterwards.Impact
There can be a loss of precision in the computations.
Recommended Mitigation Steps
Multiply by
DEFAULT_DECIMALS_FACTOR
first before dividing byCHAINLINK_PRICE_DECIMAL_FACTOR
The text was updated successfully, but these errors were encountered: