Skip to content

Commit a009791

Browse files
committed
refactor: fmt spec files
1 parent 8d8e823 commit a009791

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

certora/specs/AccrueInterest.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ methods {
44

55
function Util.maxFee() external returns uint256 envfree;
66

7-
function MathLib.mulDivDown(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivDown(a,b,c);
8-
function MathLib.mulDivUp(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivUp(a,b,c);
7+
function MathLib.mulDivDown(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivDown(a, b, c);
8+
function MathLib.mulDivUp(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivUp(a, b, c);
99
function MathLib.wTaylorCompounded(uint256 a, uint256 b) internal returns uint256 => ghostTaylorCompounded(a, b);
1010
// We assume here that all external functions will not access storage, since we cannot show commutativity otherwise.
1111
// We also need to assume that the price and borrow rate return always the same value (and do not depend on msg.origin), so we use ghost functions for them.

certora/specs/ExchangeRate.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ methods {
1717
function Util.libId(MorphoHarness.MarketParams) external returns MorphoHarness.Id envfree;
1818

1919
function UtilsLib.min(uint256 x, uint256 y) internal returns uint256 => summaryMin(x, y);
20-
function MathLib.mulDivDown(uint256 a, uint256 b, uint256 c) internal returns uint256 => summaryMulDivDown(a,b,c);
21-
function MathLib.mulDivUp(uint256 a, uint256 b, uint256 c) internal returns uint256 => summaryMulDivUp(a,b,c);
20+
function MathLib.mulDivDown(uint256 a, uint256 b, uint256 c) internal returns uint256 => summaryMulDivDown(a, b, c);
21+
function MathLib.mulDivUp(uint256 a, uint256 b, uint256 c) internal returns uint256 => summaryMulDivUp(a, b, c);
2222
function MathLib.wTaylorCompounded(uint256, uint256) internal returns uint256 => NONDET;
2323

2424
function _.borrowRate(MorphoHarness.MarketParams, MorphoHarness.Market) external => HAVOC_ECF;
@@ -101,7 +101,7 @@ filtered {
101101
// Here we assume interest has already been accumulated for this block.
102102
require lastUpdate(id) == e.block.timestamp;
103103

104-
f(e,args);
104+
f(e, args);
105105

106106
mathint assetsAfter = virtualTotalSupplyAssets(id);
107107
mathint sharesAfter = virtualTotalSupplyShares(id);
@@ -154,7 +154,7 @@ filtered {
154154
mathint assetsBefore = virtualTotalBorrowAssets(id);
155155
mathint sharesBefore = virtualTotalBorrowShares(id);
156156

157-
f(e,args);
157+
f(e, args);
158158

159159
mathint assetsAfter = virtualTotalBorrowAssets(id);
160160
mathint sharesAfter = virtualTotalBorrowShares(id);

certora/specs/Health.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ methods {
1919
function isHealthy(MorphoHarness.MarketParams, address user) external returns bool envfree;
2020

2121
function _.price() external => CONSTANT;
22-
function UtilsLib.min(uint256 a, uint256 b) internal returns uint256 => summaryMin(a,b);
22+
function UtilsLib.min(uint256 a, uint256 b) internal returns uint256 => summaryMin(a, b);
2323
}
2424

2525
function summaryMin(uint256 a, uint256 b) returns uint256 {

certora/specs/LiquidateBuffer.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ methods {
1818
function Util.oraclePriceScale() external returns (uint256) envfree;
1919
function Util.wad() external returns (uint256) envfree;
2020

21-
function Morpho._isHealthy(MorphoHarness.MarketParams memory, MorphoHarness.Id,address) internal returns (bool) => NONDET;
21+
function Morpho._isHealthy(MorphoHarness.MarketParams memory, MorphoHarness.Id, address) internal returns (bool) => NONDET;
2222
function Morpho._accrueInterest(MorphoHarness.MarketParams memory, MorphoHarness.Id) internal => NONDET;
2323

2424
function _.price() external => constantPrice expect uint256;

certora/specs/Reentrancy.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ rule reentrancySafe(method f, env e, calldataarg data) {
4848
// Set up the initial state.
4949
require !callIsBorrowRate;
5050
require !hasAccessedStorage && !hasCallAfterAccessingStorage && !hasReentrancyUnsafeCall;
51-
f(e,data);
51+
f(e, data);
5252
assert !hasReentrancyUnsafeCall;
5353
}
5454

5555
// Check that the contract is truly immutable.
5656
rule noDelegateCalls(method f, env e, calldataarg data) {
5757
// Set up the initial state.
5858
require !delegateCall;
59-
f(e,data);
59+
f(e, data);
6060
assert !delegateCall;
6161
}

0 commit comments

Comments
 (0)