Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ gas_limit = 1099511627776
dynamic_test_linking = true

additional_compiler_profiles = [
{ name = "hub", optimizer = true, via_ir = true, optimizer_runs = 22_300 },
{ name = "hub", optimizer = true, via_ir = true, optimizer_runs = 21_200 },
{ name = "spoke", optimizer = true, via_ir = true, optimizer_runs = 750 },
{ name = "tests", optimizer = true, via_ir = false, optimizer_runs = 444444444444 },
]

compilation_restrictions = [
{ paths = "src/hub/Hub.sol", optimizer = true, via_ir = true, optimizer_runs = 22_300 },
{ paths = "src/hub/Hub.sol", optimizer = true, via_ir = true, optimizer_runs = 21_200 },
{ paths = "src/spoke/instances/SpokeInstance.sol", optimizer = true, via_ir = true, optimizer_runs = 750 },
{ paths = "tests/**", optimizer = true, via_ir = false, optimizer_runs = 444444444444 },
]
Expand Down
31 changes: 15 additions & 16 deletions snapshots/Hub.Operations.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"add": "86703",
"add: with transfer": "108000",
"draw": "104159",
"eliminateDeficit: full": "72578",
"eliminateDeficit: partial": "82183",
"mintFeeShares": "82752",
"payFee": "70816",
"refreshPremium": "70373",
"remove: full": "75607",
"remove: partial": "80745",
"reportDeficit": "111893",
"restore: full": "76563",
"restore: full - with transfer": "169172",
"restore: partial": "85273",
"restore: partial - with transfer": "143253",
"transferShares": "69630"
"add": "86399",
"add: with transfer": "107696",
"draw": "103937",
"eliminateDeficit: full": "72238",
"eliminateDeficit: partial": "81843",
"payFee": "73729",
"refreshPremium": "69963",
"remove: full": "75134",
"remove: partial": "80405",
"reportDeficit": "121927",
"restore: full": "89397",
"restore: full - with transfer": "182373",
"restore: partial": "98107",
"restore: partial - with transfer": "156087",
"transferShares": "79343"
}
12 changes: 6 additions & 6 deletions snapshots/NativeTokenGateway.Operations.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"borrowNative": "228656",
"repayNative": "166471",
"supplyAsCollateralNative": "160133",
"supplyNative": "135762",
"withdrawNative: full": "125557",
"withdrawNative: partial": "136746"
"borrowNative": "228379",
"repayNative": "166556",
"supplyAsCollateralNative": "159829",
"supplyNative": "135519",
"withdrawNative: full": "125324",
"withdrawNative: partial": "136454"
}
8 changes: 4 additions & 4 deletions snapshots/SignatureGateway.Operations.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"borrowWithSig": "213889",
"repayWithSig": "186743",
"borrowWithSig": "213612",
"repayWithSig": "186828",
"setSelfAsUserPositionManagerWithSig": "75385",
"setUsingAsCollateralWithSig": "85387",
"supplyWithSig": "151994",
"supplyWithSig": "151751",
"updateUserDynamicConfigWithSig": "63120",
"updateUserRiskPremiumWithSig": "62090",
"withdrawWithSig": "130812"
"withdrawWithSig": "130578"
}
8 changes: 4 additions & 4 deletions snapshots/Spoke.Getters.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"getUserAccountData: supplies: 0, borrows: 0": "13014",
"getUserAccountData: supplies: 1, borrows: 0": "49426",
"getUserAccountData: supplies: 2, borrows: 0": "81102",
"getUserAccountData: supplies: 2, borrows: 1": "101531",
"getUserAccountData: supplies: 2, borrows: 2": "120791"
"getUserAccountData: supplies: 1, borrows: 0": "49474",
"getUserAccountData: supplies: 2, borrows: 0": "81198",
"getUserAccountData: supplies: 2, borrows: 1": "101714",
"getUserAccountData: supplies: 2, borrows: 2": "121061"
}
50 changes: 25 additions & 25 deletions snapshots/Spoke.Operations.ZeroRiskPremium.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"borrow: first": "190384",
"borrow: second action, same reserve": "170250",
"liquidationCall (receiveShares): full": "303261",
"liquidationCall (receiveShares): partial": "302679",
"liquidationCall (reportDeficit): full": "366383",
"liquidationCall: full": "320897",
"liquidationCall: partial": "320315",
"permitReserve + repay (multicall)": "164576",
"permitReserve + supply (multicall)": "146756",
"permitReserve + supply + enable collateral (multicall)": "161207",
"repay: full": "123914",
"repay: partial": "128872",
"borrow: first": "203353",
"borrow: second action, same reserve": "183219",
"liquidationCall (receiveShares): full": "316089",
"liquidationCall (receiveShares): partial": "315507",
"liquidationCall (reportDeficit): full": "378782",
"liquidationCall: full": "333433",
"liquidationCall: partial": "332851",
"permitReserve + repay (multicall)": "164574",
"permitReserve + supply (multicall)": "146452",
"permitReserve + supply + enable collateral (multicall)": "160903",
"repay: full": "123912",
"repay: partial": "128870",
"setUserPositionManagersWithSig: disable": "47039",
"setUserPositionManagersWithSig: enable": "68951",
"supply + enable collateral (multicall)": "141409",
"supply: 0 borrows, collateral disabled": "122846",
"supply: 0 borrows, collateral enabled": "105817",
"supply: second action, same reserve": "105746",
"supply + enable collateral (multicall)": "141105",
"supply: 0 borrows, collateral disabled": "122542",
"supply: 0 borrows, collateral enabled": "105513",
"supply: second action, same reserve": "105442",
"updateUserDynamicConfig: 1 collateral": "74545",
"updateUserDynamicConfig: 2 collaterals": "89413",
"updateUserRiskPremium: 1 borrow": "95734",
"updateUserRiskPremium: 2 borrows": "105414",
"updateUserRiskPremium: 1 borrow": "95869",
"updateUserRiskPremium: 2 borrows": "106280",
"usingAsCollateral: 0 borrows, enable": "59616",
"usingAsCollateral: 1 borrow, disable": "105778",
"usingAsCollateral: 1 borrow, disable": "105913",
"usingAsCollateral: 1 borrow, enable": "42504",
"usingAsCollateral: 2 borrows, disable": "127327",
"usingAsCollateral: 2 borrows, disable": "127549",
"usingAsCollateral: 2 borrows, enable": "42516",
"withdraw: 0 borrows, full": "127955",
"withdraw: 0 borrows, partial": "132851",
"withdraw: 1 borrow, partial": "159982",
"withdraw: 2 borrows, partial": "174540",
"withdraw: non collateral": "105902"
"withdraw: 0 borrows, full": "127530",
"withdraw: 0 borrows, partial": "132607",
"withdraw: 1 borrow, partial": "159692",
"withdraw: 2 borrows, partial": "174470",
"withdraw: non collateral": "105610"
}
50 changes: 25 additions & 25 deletions snapshots/Spoke.Operations.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"borrow: first": "259319",
"borrow: second action, same reserve": "202185",
"liquidationCall (receiveShares): full": "335305",
"liquidationCall (receiveShares): partial": "334723",
"liquidationCall (reportDeficit): full": "361000",
"liquidationCall: full": "352941",
"liquidationCall: partial": "352359",
"permitReserve + repay (multicall)": "162044",
"permitReserve + supply (multicall)": "146756",
"permitReserve + supply + enable collateral (multicall)": "161207",
"repay: full": "117993",
"repay: partial": "137351",
"borrow: first": "271965",
"borrow: second action, same reserve": "214831",
"liquidationCall (receiveShares): full": "347810",
"liquidationCall (receiveShares): partial": "347228",
"liquidationCall (reportDeficit): full": "373399",
"liquidationCall: full": "365154",
"liquidationCall: partial": "364572",
"permitReserve + repay (multicall)": "162043",
"permitReserve + supply (multicall)": "146452",
"permitReserve + supply + enable collateral (multicall)": "160903",
"repay: full": "117991",
"repay: partial": "137349",
"setUserPositionManagersWithSig: disable": "47039",
"setUserPositionManagersWithSig: enable": "68951",
"supply + enable collateral (multicall)": "141409",
"supply: 0 borrows, collateral disabled": "122846",
"supply: 0 borrows, collateral enabled": "105817",
"supply: second action, same reserve": "105746",
"supply + enable collateral (multicall)": "141105",
"supply: 0 borrows, collateral disabled": "122542",
"supply: 0 borrows, collateral enabled": "105513",
"supply: second action, same reserve": "105442",
"updateUserDynamicConfig: 1 collateral": "74545",
"updateUserDynamicConfig: 2 collaterals": "89413",
"updateUserRiskPremium: 1 borrow": "149093",
"updateUserRiskPremium: 2 borrows": "199355",
"updateUserRiskPremium: 1 borrow": "159028",
"updateUserRiskPremium: 2 borrows": "219821",
"usingAsCollateral: 0 borrows, enable": "59616",
"usingAsCollateral: 1 borrow, disable": "159134",
"usingAsCollateral: 1 borrow, disable": "169069",
"usingAsCollateral: 1 borrow, enable": "42504",
"usingAsCollateral: 2 borrows, disable": "229264",
"usingAsCollateral: 2 borrows, disable": "249086",
"usingAsCollateral: 2 borrows, enable": "42516",
"withdraw: 0 borrows, full": "127955",
"withdraw: 0 borrows, partial": "132851",
"withdraw: 1 borrow, partial": "210836",
"withdraw: 2 borrows, partial": "257012",
"withdraw: non collateral": "105902"
"withdraw: 0 borrows, full": "127530",
"withdraw: 0 borrows, partial": "132607",
"withdraw: 1 borrow, partial": "220346",
"withdraw: 2 borrows, partial": "256296",
"withdraw: non collateral": "105610"
}
Loading
Loading