Skip to content

Commit

Permalink
feat: increased debt ceiling field capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
The-3D committed Oct 11, 2021
1 parent 227463c commit 541f970
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ library ReserveConfiguration {
uint256 constant LIQUIDATION_PROTOCOL_FEE_MASK = 0xFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // prettier-ignore
uint256 constant EMODE_CATEGORY_MASK = 0xFFFFFFFFFFFFFFFFFFFF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // prettier-ignore
uint256 constant UNBACKED_MINT_CAP_MASK = 0xFFFFFFFFFFF000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // prettier-ignore
uint256 constant DEBT_CEILING_MASK = 0xFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // prettier-ignore
uint256 constant DEBT_CEILING_MASK = 0xF0000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; // prettier-ignore

/// @dev For the LTV, the start bit is 0 (up to 15), hence no bitshifting is needed
uint256 constant LIQUIDATION_THRESHOLD_START_BIT_POSITION = 16;
Expand Down Expand Up @@ -55,7 +55,9 @@ library ReserveConfiguration {
uint256 constant MAX_VALID_LIQUIDATION_PROTOCOL_FEE = 10000;
uint256 constant MAX_VALID_EMODE_CATEGORY = 255;
uint256 constant MAX_VALID_UNBACKED_MINT_CAP = 68719476735;
uint256 constant MAX_VALID_DEBT_CEILING = 4294967296;
uint256 constant MAX_VALID_DEBT_CEILING = 1099511627776;

uint256 constant DEBT_CEILING_DECIMALS = 2;

/**
* @notice Sets the Loan to Value of the reserve
Expand Down

0 comments on commit 541f970

Please sign in to comment.