Skip to content

Commit

Permalink
Merge pull request #16 from Steemhunt/v0.2.0
Browse files Browse the repository at this point in the history
V0.2.0 - Add `userLockUp.accTotal` & Gas savings
  • Loading branch information
sydneyitguy authored Nov 23, 2020
2 parents c15fe72 + ea243ff commit 93dd24e
Show file tree
Hide file tree
Showing 15 changed files with 995 additions and 399 deletions.
552 changes: 552 additions & 0 deletions .openzeppelin/goerli.json

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,72 +22,72 @@ A governance token distribution contract on top of LockUpPool. A maximum of 1.2M

## Görli (goerli) Testnet
- ETH faucet (to pay gas): https://faucet.goerli.mudit.blog/
- Contract: 0xD5B9A9dB6E11E216e08bF10B0C0e53478315E8C3
- Lock-up contract: 0x8f62599Ce9E93Cda072EA4F4E86dbaBF3CCC2bC9
- Test tokens
- WRN: 0x64B45af8ED1ABA874144802B34e99262E444202f
- HUNT: 0x3cCc84296b4dDf99d628e1472F697c4649A9962F
- WETH: 0x0370789664eCBc83a9a44766c2384b9d5A638Dfb
- WBTC: 0xF0aa78e4Ea6C717891085879Bd78Fd87a98D8572
- WRN: 0xdAecEce4b065595907F04b8a9C96A9B7929Ee626
- HUNT: 0xD409b07cC381c3D831F7fD71C4141c86DdC2a5c6
- WETH: 0x608f8CeB3Af57Dd3b56b480B51dcfd7E7096acA3
- WBTC: 0x48A32932F3BD2Fd7Bb31c97570290dE9d1e8827C

## Gas consumption
```
·------------------------------------------------|---------------------------|--------------|----------------------------·
| Solc version: 0.7.1+commit.f4a555be · Optimizer enabled: true · Runs: 1500 · Block limit: 6718946 gas │
·················································|···························|··············|·····························
| Methods · 27 gwei/gas · 472.47 usd/eth │
| Methods · 25 gwei/gas · 495.45 usd/eth │
························|························|·············|·············|··············|··············|··············
| Contract · Method · Min · Max · Avg · # calls · usd (avg) │
························|························|·············|·············|··············|··············|··············
| ERC20Token · addMinter · 72827 · 75612 · 73116 · 30 · 0.93
| ERC20Token · addMinter · 72815 · 75612 · 73164 · 34 · 0.91
························|························|·············|·············|··············|··············|··············
| ERC20Token · approve · 29070 · 46897 · 43960 · 127 · 0.56
| ERC20Token · approve · 29070 · 46897 · 43988 · 133 · 0.54
························|························|·············|·············|··············|··············|··············
| ERC20Token · initialize · 324430 · 369343 · 356923 · 98 · 4.55
| ERC20Token · initialize · 324430 · 369343 · 356342 · 104 · 4.41
························|························|·············|·············|··············|··············|··············
| ERC20Token · mint · - · - · 52871 · 49 · 0.67
| ERC20Token · mint · - · - · 52871 · 51 · 0.65
························|························|·············|·············|··············|··············|··············
| ERC20Token · transfer · 37081 · 52141 · 51421 · 21 · 0.66
| ERC20Token · transfer · 37081 · 52141 · 51421 · 21 · 0.64
························|························|·············|·············|··············|··············|··············
| LockUpPool · addLockUpPool · 71227 · 86311 · 84685 · 37 · 1.08
| LockUpPool · addLockUpPool · 71227 · 86311 · 84684 · 37 · 1.05
························|························|·············|·············|··············|··············|··············
| LockUpPool · claimBonus · 26660 · 126167 · 72998 · 3 · 0.93
| LockUpPool · claimBonus · 26634 · 105197 · 64009 · 3 · 0.79
························|························|·············|·············|··············|··············|··············
| LockUpPool · doLockUp · 191797 · 356752 · 299921 · 46 · 3.83
| LockUpPool · doLockUp · 185088 · 350039 · 297644 · 46 · 3.69
························|························|·············|·············|··············|··············|··············
| LockUpPool · exit · 69530 · 287168 · 191781 · 31 · 2.45
| LockUpPool · exit · 58250 · 207065 · 134293 · 31 · 1.66
························|························|·············|·············|··············|··············|··············
| LockUpPool · initialize · - · - · 155573 · 31 · 1.98
| LockUpPool · initialize · - · - · 116378 · 31 · 1.44
························|························|·············|·············|··············|··············|··············
| LockUpPool · setEmergencyMode · - · - · 43203 · 4 · 0.55
| LockUpPool · setEmergencyMode · - · - · 28217 · 4 · 0.35
························|························|·············|·············|··············|··············|··············
| LockUpPool · updateMaxLimit · 28742 · 28814 · 28778 · 2 · 0.37
| LockUpPool · updateMaxLimit · 28764 · 28836 · 28800 · 2 · 0.36
························|························|·············|·············|··············|··············|··············
| Migrations · setCompleted · - · - · 21204 · 5 · 0.27
| Migrations · setCompleted · - · - · 21204 · 5 · 0.26
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · addLockUpRewardPool · 100340 · 223565 · 133451 · 37 · 1.70
| WRNRewardPool · addLockUpRewardPool · 101166 · 224459 · 121603 · 41 · 1.51
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · claimWRN · 146764 · 202564 · 183964 · 6 · 2.35
| WRNRewardPool · claimWRN · 146854 · 202654 · 184054 · 6 · 2.28
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · doLockUp · 326314 · 414161 · 394392 · 28 · 5.03
| WRNRewardPool · claimWRNandBonus · - · - · 200393 · 1 · 2.48
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · exit · 194309 · 370528 · 305938 · 7 · 3.90
| WRNRewardPool · doLockUp · 304635 · 422522 · 391213 · 32 · 4.85
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · initialize · 280112 · 280232 · 280156 · 27 · 3.57
| WRNRewardPool · exit · 159193 · 290449 · 250260 · 8 · 3.10
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · setEmergencyMode · - · - · 43181 · 1 · 0.55
| WRNRewardPool · initialize · 241834 · 241954 · 241873 · 30 · 3.00
························|························|·············|·············|··············|··············|··············
| WRNRewardPool · updatePoolMultiplier · - · - · 222978 · 1 · 2.84
| WRNRewardPool · setEmergencyMode · - · - · 28218 · 1 · 0.35
························|························|·············|·············|··············|··············|··············
| WRNRewardPoolV2Test · setVarAdded · - · - · 44291 · 1 · 0.57 │
| WRNRewardPool · updatePoolMultiplier · - · - · 223728 · 1 · 2.77 │
························|························|·············|·············|··············|··············|··············
| WRNRewardPoolV2Test · setVarAdded · - · - · 44269 · 2 · 0.55 │
························|························|·············|·············|··············|··············|··············
| Deployments · · % of limit · │
·················································|·············|·············|··············|··············|··············
| ERC20Token · - · - · 1926451 · 28.7 % · 24.58 │
·················································|·············|·············|··············|··············|··············
| LockUpPool · - · - · 2025346 · 30.1 % · 25.84 │
| ERC20Token · - · - · 1926451 · 28.7 % · 23.86 │
·················································|·············|·············|··············|··············|··············
| WRNRewardPool · - · - · 2747015 · 40.9 % · 35.04
| LockUpPool · - · - · 1950515 · 29 % · 24.16
·················································|·············|·············|··············|··············|··············
| WRNRewardPoolV2Test · - · - · 2535788 · 37.7 % · 32.35
| WRNRewardPool · - · - · 2696051 · 40.1 % · 33.39
·------------------------------------------------|-------------|-------------|--------------|--------------|-------------·
```
Loading

0 comments on commit 93dd24e

Please sign in to comment.