staking/.gas-report

128 lines
12 KiB
Plaintext

| contracts/StakeManager.sol:StakeManager contract | | | | | |
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2512529 | 13257 | | | | |
| Function Name | min | avg | median | max | # calls |
| EPOCH_SIZE | 285 | 285 | 285 | 285 | 1498 |
| MAX_LOCKUP_PERIOD | 361 | 361 | 361 | 361 | 4 |
| MAX_MULTIPLIER | 307 | 307 | 307 | 307 | 637 |
| MIN_LOCKUP_PERIOD | 264 | 264 | 264 | 264 | 12 |
| YEAR | 307 | 307 | 307 | 307 | 637 |
| acceptUpdate | 23632 | 23632 | 23632 | 23632 | 1 |
| accounts | 1572 | 1572 | 1572 | 1572 | 144273 |
| calculateMP | 738 | 738 | 738 | 738 | 1276 |
| currentEpoch | 406 | 1072 | 406 | 2406 | 54 |
| epochEnd | 627 | 627 | 627 | 2627 | 23675 |
| epochReward | 1381 | 2881 | 1381 | 5881 | 3 |
| executeAccount(address) | 149349 | 149349 | 149349 | 149349 | 2 |
| executeAccount(address,uint256) | 26540 | 72264 | 74140 | 200389 | 141860 |
| executeEpoch() | 23458 | 120684 | 121843 | 900358 | 23564 |
| executeEpoch(uint256) | 23905 | 24541 | 23905 | 26134 | 7 |
| expiredStakeStorage | 394 | 2303 | 2394 | 2394 | 22 |
| isTrustedCodehash | 541 | 949 | 541 | 2541 | 680 |
| leave | 23631 | 23631 | 23631 | 23631 | 1 |
| lock | 23862 | 23862 | 23862 | 23862 | 1 |
| migration | 417 | 1417 | 1417 | 2417 | 4 |
| migrationInitialize | 24624 | 24624 | 24624 | 24624 | 1 |
| newEpoch | 441 | 441 | 441 | 441 | 5 |
| owner | 2410 | 2410 | 2410 | 2410 | 13 |
| pendingReward | 408 | 1442 | 2408 | 2408 | 29 |
| potentialMP | 408 | 408 | 408 | 408 | 46432 |
| previousManager | 275 | 275 | 275 | 275 | 13 |
| rewardToken | 293 | 293 | 293 | 293 | 696 |
| setTrustedCodehash | 47960 | 47960 | 47960 | 47960 | 139 |
| stake | 24005 | 24005 | 24005 | 24005 | 1 |
| startMigration | 103624 | 103632 | 103636 | 103636 | 3 |
| startTime | 264 | 264 | 264 | 264 | 21 |
| totalMP | 385 | 385 | 385 | 2385 | 46453 |
| totalStaked | 385 | 1785 | 2385 | 2385 | 20 |
| totalSupply | 784 | 1965 | 2784 | 2784 | 22 |
| unstake | 23841 | 23841 | 23841 | 23841 | 1 |
| contracts/StakeVault.sol:StakeVault contract | | | | | |
|----------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| acceptMigration | 35140 | 35140 | 35140 | 35140 | 2 |
| leave | 35152 | 35152 | 35152 | 35152 | 1 |
| lock | 43329 | 90544 | 61982 | 180383 | 7 |
| owner | 351 | 351 | 351 | 351 | 679 |
| stake | 27265 | 282111 | 265792 | 351743 | 684 |
| stakedToken | 215 | 215 | 215 | 215 | 2 |
| unstake | 40157 | 96345 | 78682 | 229644 | 11 |
| contracts/VaultFactory.sol:VaultFactory contract | | | | | |
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| createVault | 682103 | 682103 | 682103 | 682103 | 683 |
| setStakeManager | 23710 | 26669 | 26076 | 30222 | 3 |
| stakeManager | 368 | 1868 | 2368 | 2368 | 4 |
| contracts/storage/ExpiredStakeStorage.sol:ExpiredStakeStorage contract | | | | | |
|------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| getExpiredMP | 2427 | 2427 | 2427 | 2427 | 23725 |
| transferOwnership | 28533 | 28533 | 28533 | 28533 | 1 |
| lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol:ERC20 contract | | | | | |
|---------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 46175 | 46241 | 46199 | 46367 | 679 |
| balanceOf | 561 | 2107 | 2561 | 2561 | 30744 |
| script/Deploy.s.sol:Deploy contract | | | | | |
|-------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 6149710 | 29676 | | | | |
| Function Name | min | avg | median | max | # calls |
| run | 5343984 | 5343984 | 5343984 | 5343984 | 66 |
| script/DeployMigrationStakeManager.s.sol:DeployMigrationStakeManager contract | | | | | |
|-------------------------------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 3329385 | 16522 | | | | |
| Function Name | min | avg | median | max | # calls |
| run | 2345854 | 2345854 | 2345854 | 2345854 | 19 |
| script/DeploymentConfig.s.sol:DeploymentConfig contract | | | | | |
|---------------------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| activeNetworkConfig | 455 | 455 | 455 | 455 | 132 |
| test/mocks/BrokenERC20.s.sol:BrokenERC20 contract | | | | | |
|---------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 0 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 46175 | 46175 | 46175 | 46175 | 1 |
| balanceOf | 561 | 1227 | 561 | 2561 | 3 |
| test/script/DeployBroken.s.sol:DeployBroken contract | | | | | |
|------------------------------------------------------|-----------------|---------|---------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 4834448 | 23474 | | | | |
| Function Name | min | avg | median | max | # calls |
| run | 4183805 | 4183805 | 4183805 | 4183805 | 1 |