Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CancelResubscribe revert if Migration has started (usts.started == true) #142

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

parv3213
Copy link
Member

@parv3213 parv3213 commented Apr 6, 2022

  • fix a bug in which cancelResubscribe was not transferring assets back to the vault.
  • This solution will also help to cancelResubscribe when _swap cannot happen due to high slippage and the owner chooses to cancelResubscribe, even after startTime.

Review @cartercarlson @zgorizzo69

- fixes bug in which `cancelResubscribe` was not transferring asset back to vault.
@parv3213
Copy link
Member Author

parv3213 commented Apr 6, 2022

New Gas Report:

·---------------------------------------------------------------------|---------------------------|-------------|-----------------------------·
|                         Solc version: 0.8.9                         ·  Optimizer enabled: true  ·  Runs: 800  ·  Block limit: 30000000 gas  │
······································································|···························|·············|······························
|  Methods                                                            ·               35 gwei/gas               ·       3367.98 usd/eth       │
···································|··································|·············|·············|·············|···············|··············
|  Contract                        ·  Method                          ·  Min        ·  Max        ·  Avg        ·  # calls      ·  usd (avg)  │
···································|··································|·············|·············|·············|···············|··············
|  CurveRegistry                   ·  approve                         ·      47326  ·      47338  ·      47337  ·           68  ·       5.58  │
···································|··································|·············|·············|·············|···············|··············
|  CurveRegistry                   ·  unapprove                       ·          -  ·          -  ·      25478  ·            2  ·       3.00  │
···································|··································|·············|·············|·············|···············|··············
|  DiamondCutFacet                 ·  diamondCut                      ·      51029  ·    2749649  ·    1830185  ·           31  ·     215.74  │
···································|··································|·············|·············|·············|···············|··············
|  ERC20                           ·  approve                         ·      26558  ·      46458  ·      45405  ·           59  ·       5.35  │
···································|··································|·············|·············|·············|···············|··············
|  ERC20                           ·  transfer                        ·      34494  ·      65613  ·      39755  ·           78  ·       4.69  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setBurnBuyerFee                 ·      39025  ·      56125  ·      49285  ·            5  ·       5.81  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setBurnOwnerFee                 ·      39004  ·      56104  ·      50404  ·            6  ·       5.94  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setInterestFee                  ·      37952  ·      56114  ·      42231  ·            5  ·       4.98  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setMintFee                      ·      39047  ·      56147  ·      44747  ·            3  ·       5.27  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setTransferFee                  ·          -  ·          -  ·      39048  ·            2  ·       4.60  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setYieldFee                     ·      39002  ·      56102  ·      43289  ·            4  ·       5.10  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacetMock                   ·  setTotallyNewAddress            ·          -  ·          -  ·      36080  ·            1  ·       4.25  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  burn                            ·     136822  ·     270307  ·     187714  ·          190  ·      22.13  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  donate                          ·     130465  ·     130858  ·     130662  ·            8  ·      15.40  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  mint                            ·     167965  ·     505712  ·     227775  ·          210  ·      26.85  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  mintWithPermit                  ·          -  ·          -  ·     321302  ·            1  ·      37.87  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  cancelUpdate                    ·          -  ·          -  ·      47496  ·            6  ·       5.60  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  deactivate                      ·          -  ·          -  ·      37151  ·            3  ·       4.38  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  finishUpdate                    ·      57265  ·      71878  ·      66590  ·            5  ·       7.85  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  initUpdate                      ·      89680  ·     222677  ·     149929  ·           43  ·      17.67  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  register                        ·     228374  ·     245522  ·     236184  ·           44  ·      27.84  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubCooldown                  ·      30960  ·      52896  ·      49757  ·            7  ·       5.87  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubDuration                  ·      31025  ·      52961  ·      49822  ·            7  ·       5.87  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubWarmup                    ·      35280  ·      57204  ·      55638  ·           14  ·       6.56  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  transferHubOwnership            ·          -  ·          -  ·      35895  ·            4  ·       4.23  │
···································|··································|·············|·············|·············|···············|··············
|  MeToken                         ·  permit                          ·          -  ·          -  ·      75127  ·            1  ·       8.86  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenFactory                  ·  create                          ·          -  ·          -  ·    1205254  ·            4  ·     142.07  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  cancelResubscribe               ·          -  ·          -  ·      46582  ·            3  ·       5.49  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  cancelTransferMeTokenOwnership  ·          -  ·          -  ·      32501  ·            2  ·       3.83  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  claimMeTokenOwnership           ·          -  ·          -  ·      58969  ·            2  ·       6.95  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  finishResubscribe               ·     144527  ·     300592  ·     204438  ·           31  ·      24.10  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  initResubscribe                 ·     176775  ·     304875  ·     285822  ·           20  ·      33.69  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenCooldown              ·      35828  ·      52940  ·      49129  ·            9  ·       5.79  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenDuration              ·      40103  ·      57215  ·      53404  ·            9  ·       6.30  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenWarmup                ·      40143  ·      57255  ·      53824  ·           10  ·       6.34  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  subscribe                       ·    1323293  ·    1507444  ·    1375620  ·           26  ·     162.16  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  transferMeTokenOwnership        ·          -  ·          -  ·      57517  ·            4  ·       6.78  │
···································|··································|·············|·············|·············|···············|··············
|  MigrationRegistry               ·  approve                         ·      49189  ·      49201  ·      49198  ·           12  ·       5.80  │
···································|··································|·············|·············|·············|···············|··············
|  MigrationRegistry               ·  unapprove                       ·      27289  ·      27301  ·      27295  ·            4  ·       3.22  │
···································|··································|·············|·············|·············|···············|··············
|  MinimalForwarder                ·  execute                         ·     183772  ·    1379751  ·     533856  ·            8  ·      62.93  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDeactivateController         ·      34336  ·      34348  ·      34345  ·            4  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDiamondController            ·          -  ·          -  ·      34325  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDurationsController          ·          -  ·          -  ·      34346  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setFeesController               ·          -  ·          -  ·      34347  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setMeTokenRegistryController    ·          -  ·          -  ·      34303  ·            2  ·       4.04  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setRegisterController           ·          -  ·          -  ·      34324  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setTrustedForwarder             ·      29285  ·      51425  ·      44045  ·            3  ·       5.19  │
···································|··································|·············|·············|·············|···············|··············
|  SameAssetTransferMigration      ·  poke                            ·      87757  ·     136929  ·     104189  ·            9  ·      12.28  │
···································|··································|·············|·············|·············|···············|··············
|  SingleAssetVault                ·  claim                           ·      43122  ·      51159  ·      47328  ·            8  ·       5.58  │
···································|··································|·············|·············|·············|···············|··············
|  UniswapSingleTransferMigration  ·  poke                            ·      87822  ·     272578  ·     179525  ·           18  ·      21.16  │
···································|··································|·············|·············|·············|···············|··············
|  Deployments                                                        ·                                         ·  % of limit   ·             │
······································································|·············|·············|·············|···············|··············
|  BancorCurve                                                        ·    2729357  ·    2729369  ·    2729368  ·        9.1 %  ·     321.74  │
······································································|·············|·············|·············|···············|··············
|  CurveRegistry                                                      ·          -  ·          -  ·     366499  ·        1.2 %  ·      43.20  │
······································································|·············|·············|·············|···············|··············
|  Diamond                                                            ·    1436146  ·    1436158  ·    1436157  ·        4.8 %  ·     169.29  │
······································································|·············|·············|·············|···············|··············
|  DiamondCutFacet                                                    ·          -  ·          -  ·    1265779  ·        4.2 %  ·     149.21  │
······································································|·············|·············|·············|···············|··············
|  DiamondInit                                                        ·          -  ·          -  ·     248596  ·        0.8 %  ·      29.30  │
······································································|·············|·············|·············|···············|··············
|  DiamondLoupeFacet                                                  ·          -  ·          -  ·     429342  ·        1.4 %  ·      50.61  │
······································································|·············|·············|·············|···············|··············
|  FeesFacet                                                          ·          -  ·          -  ·     448345  ·        1.5 %  ·      52.85  │
······································································|·············|·············|·············|···············|··············
|  FeesFacetMock                                                      ·          -  ·          -  ·     229184  ·        0.8 %  ·      27.02  │
······································································|·············|·············|·············|···············|··············
|  FoundryFacet                                                       ·          -  ·          -  ·    2684440  ·        8.9 %  ·     316.44  │
······································································|·············|·············|·············|···············|··············
|  HubFacet                                                           ·          -  ·          -  ·    1630435  ·        5.4 %  ·     192.19  │
······································································|·············|·············|·············|···············|··············
|  MeTokenFactory                                                     ·          -  ·          -  ·    1538690  ·        5.1 %  ·     181.38  │
······································································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet                                               ·          -  ·          -  ·    2341086  ·        7.8 %  ·     275.97  │
······································································|·············|·············|·············|···············|··············
|  MigrationRegistry                                                  ·          -  ·          -  ·     417332  ·        1.4 %  ·      49.19  │
······································································|·············|·············|·············|···············|··············
|  MinimalForwarder                                                   ·          -  ·          -  ·     678170  ·        2.3 %  ·      79.94  │
······································································|·············|·············|·············|···············|··············
|  OwnershipFacet                                                     ·          -  ·          -  ·     450157  ·        1.5 %  ·      53.06  │
······································································|·············|·············|·············|···············|··············
|  SameAssetTransferMigration                                         ·          -  ·          -  ·    1566878  ·        5.2 %  ·     184.70  │
······································································|·············|·············|·············|···············|··············
|  SingleAssetVault                                                   ·    1158934  ·    1158946  ·    1158945  ·        3.9 %  ·     136.62  │
······································································|·············|·············|·············|···············|··············
|  StepwiseCurve                                                      ·          -  ·          -  ·    1597134  ·        5.3 %  ·     188.27  │
······································································|·············|·············|·············|···············|··············
|  UniswapSingleTransferMigration                                     ·    1966074  ·    1966086  ·    1966085  ·        6.6 %  ·     231.76  │
······································································|·············|·············|·············|···············|··············
|  WeightedAverage                                                    ·          -  ·          -  ·     175711  ·        0.6 %  ·      20.71  │
·---------------------------------------------------------------------|-------------|-------------|-------------|---------------|-------------·

Old gas report:

·---------------------------------------------------------------------|---------------------------|-------------|-----------------------------·
|                         Solc version: 0.8.9                         ·  Optimizer enabled: true  ·  Runs: 800  ·  Block limit: 30000000 gas  │
······································································|···························|·············|······························
|  Methods                                                            ·               35 gwei/gas               ·       3367.67 usd/eth       │
···································|··································|·············|·············|·············|···············|··············
|  Contract                        ·  Method                          ·  Min        ·  Max        ·  Avg        ·  # calls      ·  usd (avg)  │
···································|··································|·············|·············|·············|···············|··············
|  CurveRegistry                   ·  approve                         ·      47326  ·      47338  ·      47337  ·           68  ·       5.58  │
···································|··································|·············|·············|·············|···············|··············
|  CurveRegistry                   ·  unapprove                       ·          -  ·          -  ·      25478  ·            2  ·       3.00  │
···································|··································|·············|·············|·············|···············|··············
|  DiamondCutFacet                 ·  diamondCut                      ·      51029  ·    2749649  ·    1830185  ·           31  ·     215.72  │
···································|··································|·············|·············|·············|···············|··············
|  ERC20                           ·  approve                         ·      26558  ·      46458  ·      45387  ·           58  ·       5.35  │
···································|··································|·············|·············|·············|···············|··············
|  ERC20                           ·  transfer                        ·      34494  ·      65613  ·      39821  ·           77  ·       4.69  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setBurnBuyerFee                 ·      39025  ·      56125  ·      49285  ·            5  ·       5.81  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setBurnOwnerFee                 ·      39004  ·      56104  ·      50404  ·            6  ·       5.94  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setInterestFee                  ·      37952  ·      56114  ·      42231  ·            5  ·       4.98  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setMintFee                      ·      39047  ·      56147  ·      44747  ·            3  ·       5.27  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setTransferFee                  ·          -  ·          -  ·      39048  ·            2  ·       4.60  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacet                       ·  setYieldFee                     ·      39002  ·      56102  ·      43289  ·            4  ·       5.10  │
···································|··································|·············|·············|·············|···············|··············
|  FeesFacetMock                   ·  setTotallyNewAddress            ·          -  ·          -  ·      36080  ·            1  ·       4.25  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  burn                            ·     136822  ·     270307  ·     187697  ·          190  ·      22.12  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  donate                          ·     130465  ·     130858  ·     130662  ·            8  ·      15.40  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  mint                            ·     167965  ·     505667  ·     227357  ·          209  ·      26.80  │
···································|··································|·············|·············|·············|···············|··············
|  FoundryFacet                    ·  mintWithPermit                  ·          -  ·          -  ·     321302  ·            1  ·      37.87  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  cancelUpdate                    ·          -  ·          -  ·      47496  ·            6  ·       5.60  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  deactivate                      ·          -  ·          -  ·      37151  ·            3  ·       4.38  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  finishUpdate                    ·      57265  ·      71878  ·      66590  ·            5  ·       7.85  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  initUpdate                      ·      89680  ·     222677  ·     149929  ·           43  ·      17.67  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  register                        ·     228374  ·     245522  ·     236183  ·           44  ·      27.84  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubCooldown                  ·      30960  ·      52896  ·      49757  ·            7  ·       5.86  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubDuration                  ·      31025  ·      52961  ·      49822  ·            7  ·       5.87  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  setHubWarmup                    ·      35280  ·      57204  ·      55638  ·           14  ·       6.56  │
···································|··································|·············|·············|·············|···············|··············
|  HubFacet                        ·  transferHubOwnership            ·          -  ·          -  ·      35895  ·            4  ·       4.23  │
···································|··································|·············|·············|·············|···············|··············
|  MeToken                         ·  permit                          ·          -  ·          -  ·      75107  ·            1  ·       8.85  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenFactory                  ·  create                          ·          -  ·          -  ·    1205266  ·            4  ·     142.06  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  cancelResubscribe               ·          -  ·          -  ·      41988  ·            3  ·       4.95  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  cancelTransferMeTokenOwnership  ·          -  ·          -  ·      32501  ·            2  ·       3.83  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  claimMeTokenOwnership           ·          -  ·          -  ·      58969  ·            2  ·       6.95  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  finishResubscribe               ·     144505  ·     300574  ·     209171  ·           31  ·      24.65  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  initResubscribe                 ·     250753  ·     304853  ·     291545  ·           19  ·      34.36  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenCooldown              ·      35828  ·      52940  ·      49129  ·            9  ·       5.79  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenDuration              ·      40103  ·      57215  ·      53404  ·            9  ·       6.29  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  setMeTokenWarmup                ·      40143  ·      57255  ·      53824  ·           10  ·       6.34  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  subscribe                       ·    1323293  ·    1507444  ·    1375620  ·           26  ·     162.14  │
···································|··································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet            ·  transferMeTokenOwnership        ·          -  ·          -  ·      57517  ·            4  ·       6.78  │
···································|··································|·············|·············|·············|···············|··············
|  MigrationRegistry               ·  approve                         ·      49177  ·      49201  ·      49198  ·           12  ·       5.80  │
···································|··································|·············|·············|·············|···············|··············
|  MigrationRegistry               ·  unapprove                       ·          -  ·          -  ·      27301  ·            4  ·       3.22  │
···································|··································|·············|·············|·············|···············|··············
|  MinimalForwarder                ·  execute                         ·     183760  ·    1379771  ·     533863  ·            8  ·      62.93  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDeactivateController         ·      34336  ·      34348  ·      34345  ·            4  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDiamondController            ·          -  ·          -  ·      34325  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setDurationsController          ·          -  ·          -  ·      34346  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setFeesController               ·          -  ·          -  ·      34347  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setMeTokenRegistryController    ·          -  ·          -  ·      34303  ·            2  ·       4.04  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setRegisterController           ·          -  ·          -  ·      34324  ·            2  ·       4.05  │
···································|··································|·············|·············|·············|···············|··············
|  OwnershipFacet                  ·  setTrustedForwarder             ·      29285  ·      51425  ·      44045  ·            3  ·       5.19  │
···································|··································|·············|·············|·············|···············|··············
|  SameAssetTransferMigration      ·  poke                            ·      87757  ·     136929  ·     104189  ·            9  ·      12.28  │
···································|··································|·············|·············|·············|···············|··············
|  SingleAssetVault                ·  claim                           ·      43122  ·      51159  ·      47328  ·            8  ·       5.58  │
···································|··································|·············|·············|·············|···············|··············
|  UniswapSingleTransferMigration  ·  poke                            ·      87777  ·     267733  ·     143691  ·           13  ·      16.94  │
···································|··································|·············|·············|·············|···············|··············
|  Deployments                                                        ·                                         ·  % of limit   ·             │
······································································|·············|·············|·············|···············|··············
|  BancorCurve                                                        ·          -  ·          -  ·    2729369  ·        9.1 %  ·     321.71  │
······································································|·············|·············|·············|···············|··············
|  CurveRegistry                                                      ·          -  ·          -  ·     366499  ·        1.2 %  ·      43.20  │
······································································|·············|·············|·············|···············|··············
|  Diamond                                                            ·    1436146  ·    1436158  ·    1436156  ·        4.8 %  ·     169.28  │
······································································|·············|·············|·············|···············|··············
|  DiamondCutFacet                                                    ·          -  ·          -  ·    1265779  ·        4.2 %  ·     149.20  │
······································································|·············|·············|·············|···············|··············
|  DiamondInit                                                        ·          -  ·          -  ·     248596  ·        0.8 %  ·      29.30  │
······································································|·············|·············|·············|···············|··············
|  DiamondLoupeFacet                                                  ·          -  ·          -  ·     429342  ·        1.4 %  ·      50.61  │
······································································|·············|·············|·············|···············|··············
|  FeesFacet                                                          ·          -  ·          -  ·     448345  ·        1.5 %  ·      52.85  │
······································································|·············|·············|·············|···············|··············
|  FeesFacetMock                                                      ·          -  ·          -  ·     229184  ·        0.8 %  ·      27.01  │
······································································|·············|·············|·············|···············|··············
|  FoundryFacet                                                       ·          -  ·          -  ·    2684440  ·        8.9 %  ·     316.41  │
······································································|·············|·············|·············|···············|··············
|  HubFacet                                                           ·          -  ·          -  ·    1630435  ·        5.4 %  ·     192.18  │
······································································|·············|·············|·············|···············|··············
|  MeTokenFactory                                                     ·          -  ·          -  ·    1538690  ·        5.1 %  ·     181.36  │
······································································|·············|·············|·············|···············|··············
|  MeTokenRegistryFacet                                               ·          -  ·          -  ·    2314957  ·        7.7 %  ·     272.86  │
······································································|·············|·············|·············|···············|··············
|  MigrationRegistry                                                  ·          -  ·          -  ·     417332  ·        1.4 %  ·      49.19  │
······································································|·············|·············|·············|···············|··············
|  MinimalForwarder                                                   ·          -  ·          -  ·     678170  ·        2.3 %  ·      79.93  │
······································································|·············|·············|·············|···············|··············
|  OwnershipFacet                                                     ·          -  ·          -  ·     450157  ·        1.5 %  ·      53.06  │
······································································|·············|·············|·············|···············|··············
|  SameAssetTransferMigration                                         ·          -  ·          -  ·    1553832  ·        5.2 %  ·     183.15  │
······································································|·············|·············|·············|···············|··············
|  SingleAssetVault                                                   ·          -  ·          -  ·    1158946  ·        3.9 %  ·     136.60  │
······································································|·············|·············|·············|···············|··············
|  StepwiseCurve                                                      ·          -  ·          -  ·    1597134  ·        5.3 %  ·     188.25  │
······································································|·············|·············|·············|···············|··············
|  UniswapSingleTransferMigration                                     ·          -  ·          -  ·    1948617  ·        6.5 %  ·     229.68  │
······································································|·············|·············|·············|···············|··············
|  WeightedAverage                                                    ·          -  ·          -  ·     175711  ·        0.6 %  ·      20.71  │
·---------------------------------------------------------------------|-------------|-------------|-------------|---------------|-------------·

Considerable changes:
UniswapSingleTransferMigration deployment cost: 0.896431% increase
SameAssetTransferMigration deployment cost: 0.839602% increase
MeTokenRegistryFacet deployment cost: 1.1287% increase
Max poke call cost: 1.80964% increase

@pegahcarter pegahcarter merged commit d9dc4cb into main Apr 7, 2022
@pegahcarter pegahcarter deleted the fix/cancelResubscribe branch April 7, 2022 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants