Skip to content

Latest commit

 

History

History
120 lines (118 loc) · 15.3 KB

coverageReport.md

File metadata and controls

120 lines (118 loc) · 15.3 KB

Coverage and Gas Profile Report

Generated on Aug 18, 20

A. Coverage

-------------------------|----------|----------|----------|----------|----------------|
File                     |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-------------------------|----------|----------|----------|----------|----------------|
 base/                   |    96.33 |    74.14 |      100 |    94.69 |                |
  Core.sol               |    96.15 |       75 |      100 |    94.39 |... 215,237,358 |
  CoreProxy.sol          |      100 |      100 |      100 |      100 |                |
  DUSD.sol               |      100 |       50 |      100 |      100 |                |
 common/                 |       90 |    66.67 |    85.71 |    92.86 |                |
  Initializable.sol      |      100 |       50 |      100 |      100 |                |
  Ownable.sol            |     87.5 |       75 |    83.33 |    90.91 |             36 |
 common/mocks/           |       50 |      100 |    66.67 |       50 |                |
  Reserve.sol            |       50 |      100 |    66.67 |       50 |          25,26 |
 common/proxy/           |    86.67 |       50 |     87.5 |    89.47 |                |
  IERCProxy.sol          |      100 |      100 |      100 |      100 |                |
  Proxy.sol              |        0 |      100 |       50 |       50 |             35 |
  UpgradableProxy.sol    |    92.86 |       50 |      100 |    94.12 |             46 |
 interfaces/             |      100 |      100 |      100 |      100 |                |
  ICore.sol              |      100 |      100 |      100 |      100 |                |
  IDUSD.sol              |      100 |      100 |      100 |      100 |                |
  IOracle.sol            |      100 |      100 |      100 |      100 |                |
  IPeak.sol              |      100 |      100 |      100 |      100 |                |
  IStakeLPToken.sol      |      100 |      100 |      100 |      100 |                |
 peaks/curve/            |    92.63 |    57.69 |     91.3 |    92.63 |                |
  CurveSusdPeak.sol      |    92.63 |    57.69 |    90.91 |    92.63 |... 179,184,185 |
  CurveSusdPeakProxy.sol |      100 |      100 |      100 |      100 |                |
  ICurve.sol             |      100 |      100 |      100 |      100 |                |
  IGauge.sol             |      100 |      100 |      100 |      100 |                |
 peaks/curve/mocks/      |      100 |      100 |       75 |      100 |                |
  Gauge.sol              |      100 |      100 |       80 |      100 |                |
  Mintr.sol              |      100 |      100 |        0 |      100 |                |
  MockSusdToken.sol      |      100 |      100 |      100 |      100 |                |
 stream/                 |    88.89 |      100 |    66.67 |    88.89 |                |
  Oracle.sol             |    88.89 |      100 |    66.67 |    88.89 |             41 |
 stream/mocks/           |      100 |      100 |      100 |      100 |                |
  MockAggregator.sol     |      100 |      100 |      100 |      100 |                |
 valley/                 |      100 |     87.5 |      100 |      100 |                |
  StakeLPToken.sol       |      100 |     87.5 |      100 |      100 |                |
  StakeLPTokenProxy.sol  |      100 |      100 |      100 |      100 |                |
-------------------------|----------|----------|----------|----------|----------------|
All files                |    94.48 |    71.31 |    91.67 |     94.1 |                |
-------------------------|----------|----------|----------|----------|----------------|

B. Gas Profile

·-----------------------------------------|----------------------------|-------------|-----------------------------·
|  Solc version: 0.5.17+commit.d19bba13   ·  Optimizer enabled: false  ·  Runs: 200  ·  Block limit: 10000000 gas  │
··········································|····························|·············|······························
|  Methods                                ·               81 gwei/gas                ·       431.35 usd/eth        │
···················|······················|··············|·············|·············|···············|··············
|  Contract        ·  Method              ·  Min         ·  Max        ·  Avg        ·  # calls      ·  usd (avg)  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  mint                ·           -  ·          -  ·     106721  ·            2  ·       3.73  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  redeem              ·       33275  ·      63275  ·      48275  ·            4  ·       1.69  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  setFee              ·           -  ·          -  ·      45643  ·            2  ·       1.59  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  setPeakStatus       ·       16953  ·      31965  ·      24459  ·            4  ·       0.85  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  syncSystem          ·      206900  ·     213134  ·     208700  ·            7  ·       7.29  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  whitelistPeak       ·           -  ·          -  ·     159875  ·            1  ·       5.59  │
···················|······················|··············|·············|·············|···············|··············
|  Core            ·  withdrawAdminFee    ·           -  ·          -  ·      45748  ·            2  ·       1.60  │
···················|······················|··············|·············|·············|···············|··············
|  CurveSusdPeak   ·  mint                ·      395635  ·     520588  ·     456978  ·           23  ·      15.97  │
···················|······················|··············|·············|·············|···············|··············
|  CurveSusdPeak   ·  mintWithScrv        ·      216866  ·     216950  ·     216894  ·            6  ·       7.58  │
···················|······················|··············|·············|·············|···············|··············
|  CurveSusdPeak   ·  redeem              ·      328920  ·     401261  ·     375242  ·           15  ·      13.11  │
···················|······················|··············|·············|·············|···············|··············
|  CurveSusdPeak   ·  redeemInScrv        ·      126455  ·     126527  ·     126491  ·            4  ·       4.42  │
···················|······················|··············|·············|·············|···············|··············
|  CurveSusdPeak   ·  redeemInSingleCoin  ·      458289  ·     472321  ·     467620  ·            6  ·      16.34  │
···················|······················|··············|·············|·············|···············|··············
|  DUSD            ·  approve             ·       24925  ·      44509  ·      43108  ·           70  ·       1.51  │
···················|······················|··············|·············|·············|···············|··············
|  DUSD            ·  mint                ·       50935  ·      65995  ·      60958  ·           45  ·       2.13  │
···················|······················|··············|·············|·············|···············|··············
|  DUSD            ·  transfer            ·           -  ·          -  ·      51262  ·            5  ·       1.79  │
···················|······················|··············|·············|·············|···············|··············
|  LPTokenWrapper  ·  stake               ·      165106  ·     207004  ·     186253  ·           20  ·       6.51  │
···················|······················|··············|·············|·············|···············|··············
|  LPTokenWrapper  ·  withdraw            ·      161504  ·     189935  ·     169004  ·           12  ·       5.90  │
···················|······················|··············|·············|·············|···············|··············
|  MockAggregator  ·  setLatestAnswer     ·       26472  ·      26484  ·      26480  ·            6  ·       0.93  │
···················|······················|··············|·············|·············|···············|··············
|  MockSusdToken   ·  approve             ·       44209  ·      44233  ·      44215  ·            4  ·       1.54  │
···················|······················|··············|·············|·············|···············|··············
|  StakeLPToken    ·  exit                ·      106353  ·     171059  ·     144837  ·            7  ·       5.06  │
···················|······················|··············|·············|·············|···············|··············
|  StakeLPToken    ·  getReward           ·           -  ·          -  ·     186807  ·            4  ·       6.53  │
···················|······················|··············|·············|·············|···············|··············
|  Deployments                            ·                                          ·  % of limit   ·             │
··········································|··············|·············|·············|···············|··············
|  Core                                   ·           -  ·          -  ·    3721190  ·       37.2 %  ·     130.02  │
··········································|··············|·············|·············|···············|··············
|  CoreProxy                              ·           -  ·          -  ·     654664  ·        6.5 %  ·      22.87  │
··········································|··············|·············|·············|···············|··············
|  CurveSusdPeak                          ·           -  ·          -  ·    3840982  ·       38.4 %  ·     134.20  │
··········································|··············|·············|·············|···············|··············
|  CurveSusdPeakProxy                     ·           -  ·          -  ·     654664  ·        6.5 %  ·      22.87  │
··········································|··············|·············|·············|···············|··············
|  DUSD                                   ·           -  ·          -  ·    1460247  ·       14.6 %  ·      51.02  │
··········································|··············|·············|·············|···············|··············
|  MockSusdToken                          ·           -  ·          -  ·    1672179  ·       16.7 %  ·      58.42  │
··········································|··············|·············|·············|···············|··············
|  Oracle                                 ·           -  ·          -  ·     816763  ·        8.2 %  ·      28.54  │
··········································|··············|·············|·············|···············|··············
|  StakeLPToken                           ·           -  ·          -  ·    1578091  ·       15.8 %  ·      55.14  │
··········································|··············|·············|·············|···············|··············
|  StakeLPTokenProxy                      ·           -  ·          -  ·     654664  ·        6.5 %  ·      22.87  │
·-----------------------------------------|--------------|-------------|-------------|---------------|-------------·