#46930 [SC-Low] `depositNat()` in `CollateralPool` Fails to Notify Asset Manager, By not calling the `updateCollateral`
Description
Description
function depositNat()
external payable
onlyAssetManager
{
@>> _depositWNat();
}
function _depositWNat()
internal
{
// msg.value is always > 0 in this contract
if (msg.value > 0) {
totalCollateral += msg.value;
@>> wNat.deposit{value: msg.value}();
}
}Impact Details
Recommendation
Proof of Concept
Proof of Concept
Previous#46924 [SC-Low] Last user may exit with almost all of his values, but he'll purposefully leave a small 1e18 or a little more to grief `destroy()`Next#46929 [SC-Medium] Incorrect required underlying value check used in mintFromFreeUnderlying function
Was this helpful?