Skip to content

Commit 55321c8

Browse files
authored
opt: add cache to hub refresh premium and inline all hub preview internal calls (#902)
1 parent f8916c3 commit 55321c8

File tree

5 files changed

+139
-117
lines changed

5 files changed

+139
-117
lines changed

snapshots/Hub.Operations.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"add": "113864",
3-
"draw": "122124",
4-
"eliminateDeficit: full": "57950",
5-
"eliminateDeficit: partial": "67526",
2+
"add": "113749",
3+
"draw": "121855",
4+
"eliminateDeficit: full": "57840",
5+
"eliminateDeficit: partial": "67416",
66
"payFee": "73573",
7-
"refreshPremium": "99799",
8-
"remove: full": "75130",
9-
"remove: partial": "80377",
10-
"reportDeficit": "121879",
11-
"restore: full": "100595",
12-
"restore: partial": "114025",
13-
"transferShares": "79102"
7+
"refreshPremium": "96823",
8+
"remove: full": "74910",
9+
"remove: partial": "80157",
10+
"reportDeficit": "118573",
11+
"restore: full": "97289",
12+
"restore: partial": "110719",
13+
"transferShares": "79097"
1414
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"borrow: first": "199063",
3-
"borrow: second action, same reserve": "179584",
4-
"liquidationCall: full": "294018",
5-
"liquidationCall: partial": "318112",
6-
"permitReserve + repay (multicall)": "238577",
7-
"permitReserve + supply (multicall)": "140898",
8-
"permitReserve + supply + enable collateral (multicall)": "176195",
9-
"repay: full": "154685",
10-
"repay: partial": "179104",
2+
"borrow: first": "198794",
3+
"borrow: second action, same reserve": "179315",
4+
"liquidationCall: full": "290492",
5+
"liquidationCall: partial": "314586",
6+
"permitReserve + repay (multicall)": "235271",
7+
"permitReserve + supply (multicall)": "140783",
8+
"permitReserve + supply + enable collateral (multicall)": "176080",
9+
"repay: full": "151379",
10+
"repay: partial": "175798",
1111
"setUserPositionManagerWithSig: disable": "44851",
1212
"setUserPositionManagerWithSig: enable": "68880",
13-
"supply + enable collateral (multicall)": "154137",
14-
"supply: 0 borrows, collateral disabled": "115732",
15-
"supply: 0 borrows, collateral enabled": "120129",
16-
"supply: 1 borrow": "120121",
17-
"supply: second action, same reserve": "103029",
13+
"supply + enable collateral (multicall)": "154022",
14+
"supply: 0 borrows, collateral disabled": "115617",
15+
"supply: 0 borrows, collateral enabled": "120014",
16+
"supply: 1 borrow": "120006",
17+
"supply: second action, same reserve": "102914",
1818
"updateUserDynamicConfig: 1 collateral": "73827",
1919
"updateUserDynamicConfig: 2 collaterals": "88687",
2020
"updateUserRiskPremium: 1 borrow": "95238",
@@ -24,9 +24,9 @@
2424
"usingAsCollateral: 1 borrow, enable": "32364",
2525
"usingAsCollateral: 2 borrows, disable": "127994",
2626
"usingAsCollateral: 2 borrows, enable": "41942",
27-
"withdraw: 0 borrows, full": "127773",
28-
"withdraw: 0 borrows, partial": "132842",
29-
"withdraw: 1 borrow, partial": "161780",
30-
"withdraw: 2 borrows, partial": "184189",
31-
"withdraw: non collateral": "126882"
27+
"withdraw: 0 borrows, full": "127553",
28+
"withdraw: 0 borrows, partial": "132622",
29+
"withdraw: 1 borrow, partial": "161560",
30+
"withdraw: 2 borrows, partial": "183969",
31+
"withdraw: non collateral": "126662"
3232
}

snapshots/Spoke.Operations.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"borrow: first": "272186",
3-
"borrow: second action, same reserve": "215707",
4-
"liquidationCall: full": "330358",
5-
"liquidationCall: partial": "354452",
6-
"permitReserve + repay (multicall)": "274910",
7-
"permitReserve + supply (multicall)": "140898",
8-
"permitReserve + supply + enable collateral (multicall)": "176195",
9-
"repay: full": "149326",
10-
"repay: partial": "215437",
2+
"borrow: first": "268941",
3+
"borrow: second action, same reserve": "212462",
4+
"liquidationCall: full": "323856",
5+
"liquidationCall: partial": "347950",
6+
"permitReserve + repay (multicall)": "268628",
7+
"permitReserve + supply (multicall)": "140783",
8+
"permitReserve + supply + enable collateral (multicall)": "176080",
9+
"repay: full": "146020",
10+
"repay: partial": "209155",
1111
"setUserPositionManagerWithSig: disable": "44851",
1212
"setUserPositionManagerWithSig: enable": "68880",
13-
"supply + enable collateral (multicall)": "154137",
14-
"supply: 0 borrows, collateral disabled": "115732",
15-
"supply: 0 borrows, collateral enabled": "120129",
16-
"supply: 1 borrow": "120121",
17-
"supply: second action, same reserve": "103029",
13+
"supply + enable collateral (multicall)": "154022",
14+
"supply: 0 borrows, collateral disabled": "115617",
15+
"supply: 0 borrows, collateral enabled": "120014",
16+
"supply: 1 borrow": "120006",
17+
"supply: second action, same reserve": "102914",
1818
"updateUserDynamicConfig: 1 collateral": "73827",
1919
"updateUserDynamicConfig: 2 collaterals": "88687",
20-
"updateUserRiskPremium: 1 borrow": "180279",
21-
"updateUserRiskPremium: 2 borrows": "268554",
20+
"updateUserRiskPremium: 1 borrow": "177303",
21+
"updateUserRiskPremium: 2 borrows": "262602",
2222
"usingAsCollateral: 0 borrows, enable": "59042",
23-
"usingAsCollateral: 1 borrow, disable": "190614",
23+
"usingAsCollateral: 1 borrow, disable": "187638",
2424
"usingAsCollateral: 1 borrow, enable": "32364",
25-
"usingAsCollateral: 2 borrows, disable": "293261",
25+
"usingAsCollateral: 2 borrows, disable": "287309",
2626
"usingAsCollateral: 2 borrows, enable": "41942",
27-
"withdraw: 0 borrows, full": "127773",
28-
"withdraw: 0 borrows, partial": "132842",
29-
"withdraw: 1 borrow, partial": "244321",
30-
"withdraw: 2 borrows, partial": "346957",
31-
"withdraw: non collateral": "126882"
27+
"withdraw: 0 borrows, full": "127553",
28+
"withdraw: 0 borrows, partial": "132622",
29+
"withdraw: 1 borrow, partial": "241125",
30+
"withdraw: 2 borrows, partial": "340785",
31+
"withdraw: non collateral": "126662"
3232
}

0 commit comments

Comments
 (0)