There is no way to absorb the excess cash into reserves #220
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
primary issue
Highest quality submission among a set of duplicates
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-07-moonwell/blob/fced18035107a345c31c9a9497d0da09105df4df/src/core/MErc20.sol#L12
Vulnerability details
Impact
Detailed description of the impact of this finding.
There is no way to absorb the excess cash into reserves
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
Supply caps were taken from this PR, but there is other part
internalCash
is not being implemented. The internalCash and gulp function allows the protocol to efficiently manage its reserves. When the total supplied amount reaches the supply cap, additional funds supplied by users cannot be provided within the lending markets. The "gulp" function absorbs these excess funds into the protocol's reserves, making them available for future use.compound-protocol/pull/95/files#diff-a4e078ce9296966ff7c709454713a8aff63ae2b262bdd947886afdb86ad007dfR124
Tools Used
Recommended Mitigation Steps
I think the way it has been implemented in PR is for a reason and it should be copied completed and not partly
Assessed type
Other
The text was updated successfully, but these errors were encountered: