File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ contract LayerCredit is EVCUtil {
9999 vault.setHookConfig (address (this ), OP_CONVERT_FEES | OP_BORROW | OP_REPAY | OP_REPAY_WITH_SHARES | OP_DEPOSIT | OP_MINT | OP_SKIM | OP_WITHDRAW | OP_REDEEM);
100100 vault.setMaxLiquidationDiscount (0.15e4 );
101101 vault.setLiquidationCoolOffTime (1 );
102+ vault.setCaps (2 , 0 ); // supplyCap is 0, borrowCap is unlimited
102103
103104 router.govSetResolvedVault (address (vault), true );
104105 router.govSetConfig (p.asset, p.unitOfAccount, p.oracle);
Original file line number Diff line number Diff line change @@ -58,18 +58,18 @@ contract LayerCreditLens {
5858
5959 if (ltvs.length >= 1 ) {
6060 if (isEscrow (layerCredit, ltvs[0 ])) collateralFlags |= 4 ;
61- w2 |= uint160 (ltvs[0 ]) << (8 * 8 );
61+ w2 |= uint256 ( uint160 (ltvs[0 ]) ) << (8 * 8 );
6262 }
6363
6464 if (ltvs.length >= 2 ) {
6565 if (isEscrow (layerCredit, ltvs[1 ])) collateralFlags |= 2 ;
66- w2 |= uint160 (ltvs[1 ]) >> (12 * 8 );
67- w3 |= uint160 (ltvs[1 ]) << (20 * 8 );
66+ w2 |= uint256 ( uint160 (ltvs[1 ]) ) >> (12 * 8 );
67+ w3 |= uint256 ( uint160 (ltvs[1 ]) ) << (20 * 8 );
6868 }
6969
7070 if (ltvs.length >= 2 ) {
7171 if (isEscrow (layerCredit, ltvs[2 ])) collateralFlags |= 1 ;
72- w3 |= uint160 (ltvs[2 ]);
72+ w3 |= uint256 ( uint160 (ltvs[2 ]) );
7373 }
7474
7575 w2 |= collateralFlags << (28 * 8 );
You can’t perform that action at this time.
0 commit comments