Skip to content

Commit 6e766f6

Browse files
committed
fix: gas snapshot
1 parent 53340e3 commit 6e766f6

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

snapshots/AllowancePositionManager.Operations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"approveWithdraw": "46795",
33
"approveWithdrawWithSig": "63006",
4-
"borrowOnBehalfOf": "247328",
4+
"borrowOnBehalfOf": "307050",
5+
"borrowOnBehalfOf (with temporary allowance)": "247328",
56
"delegateCredit": "46784",
67
"delegateCreditWithSig": "63081",
78
"renounceCreditDelegation": "24937",

snapshots/SignatureGateway.Operations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"borrowWithSig": "215593",
2+
"borrowWithSig": "215605",
33
"repayWithSig": "188872",
44
"setSelfAsUserPositionManagerWithSig": "74858",
55
"setUsingAsCollateralWithSig": "85053",

snapshots/Spoke.Operations.ZeroRiskPremium.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repay: full": "126094",
1212
"repay: partial": "130983",
1313
"setUserPositionManagerWithSig: disable": "44846",
14-
"setUserPositionManagerWithSig: enable": "68863",
14+
"setUserPositionManagerWithSig: enable": "68875",
1515
"supply + enable collateral (multicall)": "140624",
1616
"supply: 0 borrows, collateral disabled": "123679",
1717
"supply: 0 borrows, collateral enabled": "106601",

snapshots/Spoke.Operations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repay: full": "120256",
1212
"repay: partial": "139545",
1313
"setUserPositionManagerWithSig: disable": "44846",
14-
"setUserPositionManagerWithSig: enable": "68863",
14+
"setUserPositionManagerWithSig: enable": "68875",
1515
"supply + enable collateral (multicall)": "140624",
1616
"supply: 0 borrows, collateral disabled": "123679",
1717
"supply: 0 borrows, collateral enabled": "106601",

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)