mirror of https://github.com/logos-co/staking.git
129 lines
12 KiB
Plaintext
129 lines
12 KiB
Plaintext
| contracts/StakeManager.sol:StakeManager contract | | | | | |
|
|
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 3080753 | 15624 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| EPOCH_SIZE | 263 | 263 | 263 | 263 | 55 |
|
|
| MAX_BOOST | 285 | 285 | 285 | 285 | 1 |
|
|
| MAX_LOCKUP_PERIOD | 361 | 361 | 361 | 361 | 4 |
|
|
| MIN_LOCKUP_PERIOD | 287 | 287 | 287 | 287 | 10 |
|
|
| YEAR | 263 | 263 | 263 | 263 | 1 |
|
|
| accounts | 1619 | 1619 | 1619 | 1619 | 3453 |
|
|
| calculateMPToMint | 741 | 741 | 741 | 741 | 2 |
|
|
| currentEpoch | 406 | 1739 | 2406 | 2406 | 27 |
|
|
| epochEnd | 649 | 677 | 649 | 4649 | 283 |
|
|
| epochReward | 1403 | 2903 | 1403 | 5903 | 3 |
|
|
| executeAccount | 1325 | 13878 | 10708 | 148364 | 1778 |
|
|
| executeEpoch | 384 | 133575 | 136331 | 160231 | 223 |
|
|
| isVault | 540 | 1873 | 2540 | 2540 | 30 |
|
|
| lock | 2636 | 18294 | 4780 | 105233 | 7 |
|
|
| migrateTo | 1009 | 1676 | 1009 | 2677 | 5 |
|
|
| migration | 439 | 1439 | 1439 | 2439 | 4 |
|
|
| migrationInitialize | 642 | 13254 | 17109 | 18159 | 4 |
|
|
| owner | 2432 | 2432 | 2432 | 2432 | 13 |
|
|
| pendingMPToBeMinted | 386 | 386 | 386 | 386 | 2 |
|
|
| pendingReward | 364 | 1398 | 2364 | 2364 | 29 |
|
|
| previousManager | 275 | 275 | 275 | 275 | 13 |
|
|
| setVault | 22640 | 22640 | 22640 | 22640 | 20 |
|
|
| stake | 2639 | 222868 | 270638 | 291575 | 32 |
|
|
| stakeRewardEstimate | 436 | 602 | 436 | 2436 | 12 |
|
|
| stakedToken | 273 | 273 | 273 | 273 | 46 |
|
|
| startMigration | 68717 | 77983 | 82617 | 82617 | 3 |
|
|
| totalSupply | 740 | 1921 | 2740 | 2740 | 22 |
|
|
| totalSupplyBalance | 385 | 1785 | 2385 | 2385 | 20 |
|
|
| totalSupplyMP | 385 | 1602 | 2385 | 2385 | 23 |
|
|
| unstake | 1720 | 31879 | 7201 | 153448 | 11 |
|
|
|
|
|
|
| contracts/StakeManager.sol:StakeRewardEstimate contract | | | | | |
|
|
|---------------------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 249010 | 1251 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| decrementExpiredMP | 814 | 814 | 814 | 814 | 7 |
|
|
| deleteExpiredMP | 543 | 543 | 543 | 543 | 3 |
|
|
| getExpiredMP | 427 | 2405 | 2427 | 2427 | 278 |
|
|
| incrementExpiredMP | 836 | 12442 | 2836 | 24736 | 58 |
|
|
| transferOwnership | 2301 | 5901 | 7101 | 7101 | 4 |
|
|
|
|
|
|
| contracts/StakeVault.sol:StakeVault contract | | | | | |
|
|
|----------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 635445 | 3370 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| acceptMigration | 1694 | 1694 | 1694 | 1694 | 2 |
|
|
| leave | 1680 | 1680 | 1680 | 1680 | 1 |
|
|
| lock | 3733 | 21761 | 5637 | 106090 | 6 |
|
|
| owner | 362 | 362 | 362 | 362 | 32 |
|
|
| stake | 3433 | 252588 | 301413 | 322350 | 32 |
|
|
| stakedToken | 212 | 212 | 212 | 212 | 2 |
|
|
| unstake | 2578 | 40078 | 11522 | 157769 | 10 |
|
|
|
|
|
|
| contracts/VaultFactory.sol:VaultFactory contract | | | | | |
|
|
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 1043406 | 5305 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| createVault | 670967 | 673224 | 672967 | 675467 | 33 |
|
|
| setStakeManager | 2518 | 5317 | 4644 | 8790 | 3 |
|
|
| stakeManager | 368 | 1868 | 2368 | 2368 | 4 |
|
|
|
|
|
|
| lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol:ERC20 contract | | | | | |
|
|
|---------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 649818 | 3562 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| approve | 24603 | 24603 | 24603 | 24603 | 30 |
|
|
| balanceOf | 561 | 581 | 561 | 2561 | 4272 |
|
|
| transfer | 3034 | 3175 | 3034 | 22934 | 1731 |
|
|
| transferFrom | 27530 | 27530 | 27530 | 27530 | 31 |
|
|
|
|
|
|
| script/Deploy.s.sol:Deploy contract | | | | | |
|
|
|-------------------------------------|-----------------|---------|---------|---------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 6169892 | 32121 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| run | 5861599 | 5861599 | 5861599 | 5861599 | 54 |
|
|
|
|
|
|
| script/DeployMigrationStakeManager.s.sol:DeployMigrationStakeManager contract | | | | | |
|
|
|-------------------------------------------------------------------------------|-----------------|---------|---------|---------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 3519135 | 18889 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| run | 2838769 | 2838769 | 2838769 | 2838769 | 9 |
|
|
|
|
|
|
| script/DeploymentConfig.s.sol:DeploymentConfig contract | | | | | |
|
|
|---------------------------------------------------------|-----------------|-----|--------|-----|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 1634091 | 8548 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| activeNetworkConfig | 455 | 455 | 455 | 455 | 108 |
|
|
|
|
|
|
| test/mocks/BrokenERC20.s.sol:BrokenERC20 contract | | | | | |
|
|
|---------------------------------------------------|-----------------|-------|--------|-------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 475642 | 2660 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| approve | 24603 | 24603 | 24603 | 24603 | 1 |
|
|
| balanceOf | 561 | 1227 | 561 | 2561 | 3 |
|
|
| transferFrom | 511 | 511 | 511 | 511 | 1 |
|
|
|
|
|
|
| test/script/DeployBroken.s.sol:DeployBroken contract | | | | | |
|
|
|------------------------------------------------------|-----------------|---------|---------|---------|---------|
|
|
| Deployment Cost | Deployment Size | | | | |
|
|
| 4942510 | 25919 | | | | |
|
|
| Function Name | min | avg | median | max | # calls |
|
|
| run | 4701420 | 4701420 | 4701420 | 4701420 | 1 |
|
|
|
|
|
|
|
|
|