Skip to content

Steemhunt/neverlose.money-contract

Repository files navigation

Neverlose.money - Gamified HODL Protocol

A lock-up smart contract HODL protocol on Ethereum that pays bonus to the winners with the losers penalty.

"If you aren’t willing to own a stock for ten years, don’t even think about owning it for ten minutes."
- Warren Buffet -

Source: https://youtu.be/vCpT-UmVf3g

Contracts

LockUpPool.sol

A lock-up smart contract that pays bonus to the winners with the losers' penalty when they break lock-up prematurely.

WRNRewardPool.sol

A governance token distribution contract on top of LockUpPool. A maximum of 1.2M WRN tokens will be distributed for 4 years depending on users' contribution to the lockup pool

Boost Factor

  1. Token Amount: Linear
  2. Lock-up period: 1x (3 months) - 40x (10 years)
  3. Pool multiplier: 2x (HUNT), 1x (WETH), 1x (WBTC)

Contract addresses

Gas consumption

·------------------------------------------------|---------------------------|--------------|----------------------------·
|      Solc version: 0.7.1+commit.f4a555be       ·  Optimizer enabled: true  ·  Runs: 1500  ·  Block limit: 6718946 gas  │
·················································|···························|··············|·····························
|  Methods                                       ·               20 gwei/gas                ·       585.63 usd/eth       │
························|························|·············|·············|··············|··············|··············
|  Contract             ·  Method                ·  Min        ·  Max        ·  Avg         ·  # calls     ·  usd (avg)  │
························|························|·············|·············|··············|··············|··············
|  ERC20Token           ·  addMinter             ·      72827  ·      75612  ·       73164  ·          34  ·       0.86  │
························|························|·············|·············|··············|··············|··············
|  ERC20Token           ·  approve               ·      29070  ·      46897  ·       43989  ·         134  ·       0.52  │
························|························|·············|·············|··············|··············|··············
|  ERC20Token           ·  initialize            ·     324430  ·     369343  ·      356465  ·         105  ·       4.18  │
························|························|·············|·············|··············|··············|··············
|  ERC20Token           ·  mint                  ·          -  ·          -  ·       52871  ·          51  ·       0.62  │
························|························|·············|·············|··············|··············|··············
|  ERC20Token           ·  transfer              ·      37081  ·      52141  ·       50769  ·          22  ·       0.59  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  addLockUpPool         ·      71238  ·      86334  ·       84750  ·          38  ·       0.99  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  claimBonus            ·      26611  ·     105174  ·       63990  ·           3  ·       0.75  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  doLockUp              ·     184167  ·     349118  ·      299673  ·          53  ·       3.51  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  exit                  ·      58231  ·     206998  ·      134236  ·          31  ·       1.57  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  initialize            ·          -  ·          -  ·      155530  ·          32  ·       1.82  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  setEmergencyMode      ·          -  ·          -  ·       43203  ·           4  ·       0.51  │
························|························|·············|·············|··············|··············|··············
|  LockUpPool           ·  updateMaxLimit        ·      28764  ·      28836  ·       28800  ·           2  ·       0.34  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  addLockUpRewardPool   ·     100295  ·     223556  ·      133169  ·          41  ·       1.56  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  claimWRN              ·     146800  ·     202600  ·      184000  ·           6  ·       2.16  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  claimWRNandBonus      ·          -  ·          -  ·      200350  ·           1  ·       2.35  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  doLockUp              ·     303650  ·     421525  ·      390216  ·          32  ·       4.57  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  exit                  ·     159128  ·     290372  ·      250187  ·           8  ·       2.93  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  initialize            ·     280156  ·     280276  ·      280201  ·          30  ·       3.28  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  setEmergencyMode      ·          -  ·          -  ·       43181  ·           1  ·       0.51  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPool        ·  updatePoolMultiplier  ·          -  ·          -  ·      222725  ·           1  ·       2.61  │
························|························|·············|·············|··············|··············|··············
|  WRNRewardPoolV2Test  ·  setVarAdded           ·          -  ·          -  ·       44247  ·           2  ·       0.52  │
························|························|·············|·············|··············|··············|··············
|  Deployments                                   ·                                          ·  % of limit  ·             │
·················································|·············|·············|··············|··············|··············
|  ERC20Token                                    ·          -  ·          -  ·     1926451  ·      28.7 %  ·      22.56  │
·················································|·············|·············|··············|··············|··············
|  LockUpPool                                    ·          -  ·          -  ·     1924387  ·      28.6 %  ·      22.54  │
·················································|·············|·············|··············|··············|··············
|  WRNRewardPool                                 ·          -  ·          -  ·     2636267  ·      39.2 %  ·      30.88  │
·················································|·············|·············|··············|··············|··············