Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.04 KB

Improper Supply Cap Limitation Enforcement.md

File metadata and controls

29 lines (24 loc) · 1.04 KB

The openLoan() function does not check if the loan to be issued will result in the supply cap being exceeded.

It only enforces that the supply cap is not reached before the loan is opened.

As a result, any account can create a loan that exceeds the maximum amount of sETH that can be issued by the EtherCollateral contract.

Recommendation:

Introduce a require statement in the openLoan() function to prevent the total cap from being exceeded by the loan to be opened.


Slide Screenshot

067.jpg


Slide Text

  • Sigma Prime EtherCollateral Finding 1
  • Data Validation
  • High Severity
  • Supply Cap
  • openLoan -> Exceeds Cap
  • Add require()
  • Enforce Supply Cap

References


Tags