#46677 [SC-Insight] Wrong comment in _getFAssetRequiredToNotSpoilCR
Description
Vulnerability Details
// f-asset that preserves pool CR (assume poolNatBalance >= natShare > 0)
// solve (N - n) / (F - f) = N / F get n = N f / F
return _assetData.agentBackedFAsset.mulDiv(_natShare, _assetData.poolNatBalance);f = F * n / N Proof of Concept
Proof of Concept
Previous#46643 [SC-Low] `destroyAgent` in `AgentsCreateDestroy` is prone to DOSNext#46681 [SC-Low] malicious actor can prevent agent from being destroyed
Was this helpful?