@@ -175,7 +175,7 @@ contract BlueTest is Test {
175
175
}
176
176
177
177
function testEnableLltv (uint256 newLltv ) public {
178
- newLltv = bound (newLltv, 0 , WAD - 1 );
178
+ newLltv = bound (newLltv, 0 , FixedPointMathLib. WAD - 1 );
179
179
180
180
vm.prank (OWNER);
181
181
blue.enableLltv (newLltv);
@@ -184,7 +184,7 @@ contract BlueTest is Test {
184
184
}
185
185
186
186
function testEnableLltvShouldFailWhenLltvTooHigh (uint256 newLltv ) public {
187
- newLltv = bound (newLltv, WAD, type (uint256 ).max);
187
+ newLltv = bound (newLltv, FixedPointMathLib. WAD, type (uint256 ).max);
188
188
189
189
vm.prank (OWNER);
190
190
vm.expectRevert (bytes (Errors.LLTV_TOO_HIGH));
@@ -210,7 +210,7 @@ contract BlueTest is Test {
210
210
211
211
function testSetFeeShouldRevertIfMarketNotCreated (Market memory marketFuzz , uint256 fee ) public {
212
212
vm.assume (neq (marketFuzz, market));
213
- fee = bound (fee, 0 , WAD);
213
+ fee = bound (fee, 0 , FixedPointMathLib. WAD);
214
214
215
215
vm.prank (OWNER);
216
216
vm.expectRevert ("unknown market " );
@@ -219,7 +219,7 @@ contract BlueTest is Test {
219
219
220
220
function testSetFeeShouldRevertIfNotOwner (uint256 fee , address caller ) public {
221
221
vm.assume (caller != OWNER);
222
- fee = bound (fee, 0 , WAD);
222
+ fee = bound (fee, 0 , FixedPointMathLib. WAD);
223
223
224
224
vm.expectRevert ("not owner " );
225
225
blue.setFee (market, fee);
@@ -486,7 +486,8 @@ contract BlueTest is Test {
486
486
uint256 borrowingPower = amountCollateral.mulWadDown (LLTV);
487
487
uint256 amountBorrowed = borrowingPower.mulWadDown (0.8e18 );
488
488
uint256 toSeize = amountCollateral.mulWadDown (LLTV);
489
- uint256 incentive = WAD + ALPHA.mulWadDown (WAD.divWadDown (LLTV) - WAD);
489
+ uint256 incentive =
490
+ FixedPointMathLib.WAD + ALPHA.mulWadDown (FixedPointMathLib.WAD.divWadDown (LLTV) - FixedPointMathLib.WAD);
490
491
491
492
borrowableAsset.setBalance (address (this ), amountLent);
492
493
collateralAsset.setBalance (BORROWER, amountCollateral);
@@ -529,7 +530,8 @@ contract BlueTest is Test {
529
530
uint256 borrowingPower = amountCollateral.mulWadDown (LLTV);
530
531
uint256 amountBorrowed = borrowingPower.mulWadDown (0.8e18 );
531
532
uint256 toSeize = amountCollateral;
532
- uint256 incentive = WAD + ALPHA.mulWadDown (WAD.divWadDown (market.lltv) - WAD);
533
+ uint256 incentive = FixedPointMathLib.WAD
534
+ + ALPHA.mulWadDown (FixedPointMathLib.WAD.divWadDown (market.lltv) - FixedPointMathLib.WAD);
533
535
534
536
borrowableAsset.setBalance (address (this ), amountLent);
535
537
collateralAsset.setBalance (BORROWER, amountCollateral);
0 commit comments