Skip to content

Commit 68b4195

Browse files
committed
fix: gas snapshot
1 parent 53340e3 commit 68b4195

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
{
2-
"approveWithdraw": "46795",
3-
"approveWithdrawWithSig": "63006",
4-
"borrowOnBehalfOf": "247328",
5-
"delegateCredit": "46784",
6-
"delegateCreditWithSig": "63081",
7-
"renounceCreditDelegation": "24937",
8-
"renounceWithdrawAllowance": "24837",
9-
"temporaryApproveWithdraw": "22680",
10-
"temporaryDelegateCredit": "22768",
11-
"withdrawOnBehalfOf: full": "122006",
12-
"withdrawOnBehalfOf: full (with temporary allowance)": "56184",
13-
"withdrawOnBehalfOf: partial": "132307",
14-
"withdrawOnBehalfOf: partial (with temporary allowance)": "66984"
2+
"borrowOnBehalfOf": "307050",
3+
"borrowOnBehalfOf (with temporary allowance)": "247328"
154
}

tests/gas/PositionManagers.Operations.gas.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ contract AllowancePositionManager_Gas_Tests is SpokeBase {
174174
}
175175

176176
/// forge-config: default.isolate = false
177-
function test_borrowOnBehalfOf_WithtemporaryDelegateCredit() public {
177+
function test_borrowOnBehalfOf_WithTemporaryDelegateCredit() public {
178178
uint256 aliceSupplyAmount = 5000e18;
179179
uint256 bobSupplyAmount = 1000e18;
180180
uint256 borrowAmount = 750e18;
@@ -187,7 +187,7 @@ contract AllowancePositionManager_Gas_Tests is SpokeBase {
187187

188188
vm.prank(bob);
189189
positionManager.borrowOnBehalfOf(_daiReserveId(spoke1), borrowAmount, alice);
190-
vm.snapshotGasLastCall(NAMESPACE, 'borrowOnBehalfOf');
190+
vm.snapshotGasLastCall(NAMESPACE, 'borrowOnBehalfOf (with temporary allowance)');
191191
}
192192

193193
function test_approveWithdraw() public {

0 commit comments

Comments
 (0)