#46771 [SC-Insight] Incorrect Collateral Ratio Check Due to Rounding Error
Description
Brief/Intro
Vulnerability Details
return (_assetData.poolNatBalance - _withdrawnNat) * _assetData.assetPriceDiv >=
(_assetData.agentBackedFAsset * _assetData.assetPriceMul).mulBips(_crBIPS);Impact Details
References
Proof of Concept
Proof of Concept
Previous#46758 [SC-Low] Collateral Reservation Fee Calculation Inconsistent with Actual Reserved ValueNext#46826 [SC-Medium] transferFeeWei + Transfers.TRANSFER_GAS_ALLOWANCE` when `CoreVault::transferToCoreVault()` is called.
Was this helpful?