diff --git a/.gas-report b/.gas-report index dcf8f68..4cfabf6 100644 --- a/.gas-report +++ b/.gas-report @@ -1,29 +1,35 @@ | contracts/StakeManager.sol:StakeManager contract | | | | | | |--------------------------------------------------|-----------------|--------|--------|--------|---------| | Deployment Cost | Deployment Size | | | | | -| 2058079 | 10495 | | | | | +| 2400875 | 12207 | | | | | | Function Name | min | avg | median | max | # calls | -| EPOCH_SIZE | 285 | 285 | 285 | 285 | 9 | -| MAX_LOCKUP_PERIOD | 405 | 405 | 405 | 405 | 2 | -| MIN_LOCKUP_PERIOD | 264 | 264 | 264 | 264 | 3 | -| accounts | 1406 | 1406 | 1406 | 1406 | 22 | -| currentEpoch | 341 | 1571 | 2341 | 2341 | 13 | -| epochEnd | 627 | 627 | 627 | 627 | 56 | -| executeAccount | 1311 | 54054 | 58730 | 104630 | 63 | -| executeEpoch | 87833 | 95166 | 87833 | 109833 | 3 | -| isVault | 517 | 2117 | 2517 | 2517 | 15 | -| lock | 2614 | 2614 | 2614 | 2614 | 1 | -| migrateTo | 1041 | 1713 | 1041 | 2721 | 5 | -| oldManager | 240 | 240 | 240 | 240 | 8 | -| owner | 2341 | 2341 | 2341 | 2341 | 8 | -| pendingReward | 386 | 1243 | 386 | 2386 | 21 | -| setVault | 22606 | 22606 | 22606 | 22606 | 12 | -| stake | 2638 | 136864 | 188409 | 189128 | 17 | -| stakedToken | 260 | 260 | 260 | 260 | 26 | -| totalSupply | 561 | 561 | 561 | 561 | 17 | -| totalSupplyBalance | 362 | 1592 | 2362 | 2362 | 13 | -| totalSupplyMP | 384 | 1614 | 2384 | 2384 | 13 | -| unstake | 1730 | 20008 | 8086 | 127550 | 9 | +| EPOCH_SIZE | 285 | 285 | 285 | 285 | 437 | +| MAX_BOOST_LIMIT_EPOCH_COUNT | 469 | 469 | 469 | 469 | 1 | +| MAX_LOCKUP_PERIOD | 405 | 405 | 405 | 405 | 4 | +| MIN_LOCKUP_PERIOD | 264 | 264 | 264 | 264 | 10 | +| accounts | 1539 | 1539 | 1539 | 1539 | 1059 | +| currentEpoch | 364 | 1697 | 2364 | 2364 | 27 | +| epochEnd | 649 | 677 | 649 | 4649 | 276 | +| epochReward | 1413 | 2913 | 1413 | 5913 | 3 | +| executeAccount | 1289 | 23148 | 10970 | 145886 | 668 | +| executeEpoch | 394 | 113393 | 115689 | 157489 | 223 | +| isVault | 517 | 719 | 517 | 2517 | 198 | +| lock | 2658 | 18236 | 4782 | 104805 | 7 | +| migrateTo | 1019 | 1691 | 1019 | 2699 | 5 | +| migration | 371 | 1371 | 1371 | 2371 | 4 | +| migrationInitialize | 582 | 8217 | 10413 | 11463 | 4 | +| owner | 2408 | 2408 | 2408 | 2408 | 13 | +| pendingMPToBeMinted | 386 | 386 | 386 | 386 | 2 | +| pendingReward | 386 | 1420 | 2386 | 2386 | 29 | +| previousManager | 240 | 240 | 240 | 240 | 13 | +| setVault | 22628 | 22628 | 22628 | 22628 | 20 | +| stake | 2661 | 170717 | 163471 | 260112 | 200 | +| stakedToken | 283 | 283 | 283 | 283 | 214 | +| startMigration | 52756 | 55822 | 57356 | 57356 | 3 | +| totalSupply | 762 | 1943 | 2762 | 2762 | 22 | +| totalSupplyBalance | 385 | 1785 | 2385 | 2385 | 20 | +| totalSupplyMP | 362 | 1579 | 2362 | 2362 | 23 | +| unstake | 1599 | 28414 | 6271 | 150094 | 12 | | contracts/StakeVault.sol:StakeVault contract | | | | | | @@ -31,12 +37,13 @@ | Deployment Cost | Deployment Size | | | | | | 635445 | 3370 | | | | | | Function Name | min | avg | median | max | # calls | -| acceptMigration | 1726 | 1726 | 1726 | 1726 | 2 | -| leave | 1712 | 1712 | 1712 | 1712 | 1 | -| owner | 362 | 362 | 362 | 362 | 14 | -| stake | 3433 | 165544 | 219184 | 219903 | 17 | +| acceptMigration | 1704 | 1704 | 1704 | 1704 | 2 | +| leave | 1690 | 1690 | 1690 | 1690 | 1 | +| lock | 3731 | 21690 | 5639 | 105662 | 6 | +| owner | 362 | 362 | 362 | 362 | 200 | +| stake | 3433 | 201323 | 194246 | 290887 | 200 | | stakedToken | 212 | 212 | 212 | 212 | 2 | -| unstake | 2588 | 28122 | 14407 | 131871 | 8 | +| unstake | 2457 | 35628 | 10592 | 154415 | 11 | | contracts/VaultFactory.sol:VaultFactory contract | | | | | | @@ -44,7 +51,7 @@ | Deployment Cost | Deployment Size | | | | | | 1043406 | 5305 | | | | | | Function Name | min | avg | median | max | # calls | -| createVault | 670954 | 674204 | 675454 | 675454 | 18 | +| createVault | 670977 | 671347 | 670977 | 675477 | 201 | | setStakeManager | 2518 | 5317 | 4644 | 8790 | 3 | | stakeManager | 368 | 1868 | 2368 | 2368 | 4 | @@ -54,18 +61,26 @@ | Deployment Cost | Deployment Size | | | | | | 649818 | 3562 | | | | | | Function Name | min | avg | median | max | # calls | -| approve | 24603 | 24603 | 24603 | 24603 | 15 | -| balanceOf | 561 | 819 | 561 | 2561 | 139 | -| transfer | 3034 | 8340 | 3034 | 22934 | 15 | -| transferFrom | 27530 | 27530 | 27530 | 27530 | 16 | +| approve | 24603 | 24603 | 24603 | 24603 | 198 | +| balanceOf | 561 | 597 | 561 | 2561 | 2034 | +| transfer | 3034 | 3314 | 3034 | 22934 | 447 | +| transferFrom | 27530 | 27530 | 27530 | 27530 | 199 | | script/Deploy.s.sol:Deploy contract | | | | | | |-------------------------------------|-----------------|---------|---------|---------|---------| | Deployment Cost | Deployment Size | | | | | -| 5142589 | 26992 | | | | | +| 5485485 | 28704 | | | | | | Function Name | min | avg | median | max | # calls | -| run | 4837698 | 4837698 | 4837698 | 4837698 | 32 | +| run | 5180895 | 5180895 | 5180895 | 5180895 | 54 | + + +| script/DeployMigrationStakeManager.s.sol:DeployMigrationStakeManager contract | | | | | | +|-------------------------------------------------------------------------------|-----------------|---------|---------|---------|---------| +| Deployment Cost | Deployment Size | | | | | +| 2834895 | 15472 | | | | | +| Function Name | min | avg | median | max | # calls | +| run | 2438430 | 2438430 | 2438430 | 2438430 | 9 | | script/DeploymentConfig.s.sol:DeploymentConfig contract | | | | | | @@ -73,7 +88,7 @@ | Deployment Cost | Deployment Size | | | | | | 1634091 | 8548 | | | | | | Function Name | min | avg | median | max | # calls | -| activeNetworkConfig | 455 | 455 | 455 | 455 | 64 | +| activeNetworkConfig | 455 | 455 | 455 | 455 | 108 | | test/mocks/BrokenERC20.s.sol:BrokenERC20 contract | | | | | | @@ -89,9 +104,9 @@ | test/script/DeployBroken.s.sol:DeployBroken contract | | | | | | |------------------------------------------------------|-----------------|---------|---------|---------|---------| | Deployment Cost | Deployment Size | | | | | -| 3915327 | 20790 | | | | | +| 4258174 | 22502 | | | | | | Function Name | min | avg | median | max | # calls | -| run | 3677521 | 3677521 | 3677521 | 3677521 | 1 | +| run | 4020717 | 4020717 | 4020717 | 4020717 | 1 |