Merge pull request #2208 from nucypher/worklock-parameters

Worklock parameters; Mainnet Registry
pull/2215/head
MacLane S Wilkison 2020-08-30 18:16:21 +00:00 committed by GitHub
commit 3297fc9d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 8 deletions

View File

@ -78,13 +78,15 @@ class BaseEconomics:
_default_reward_coefficient = 2
# Worklock
_default_worklock_supply: int = NotImplemented
_default_bidding_start_date: int = NotImplemented
_default_bidding_end_date: int = NotImplemented
_default_cancellation_end_date: int = NotImplemented
_default_worklock_boosting_refund_rate: int = NotImplemented
_default_worklock_commitment_duration: int = NotImplemented
_default_worklock_min_allowed_bid: int = NotImplemented
from maya import MayaDT
from web3 import Web3
_default_worklock_supply: int = NU(225_000_000, 'NU').to_nunits()
_default_bidding_start_date: int = MayaDT.from_iso8601('2020-09-01T00:00:00.0Z').epoch
_default_bidding_end_date: int = MayaDT.from_iso8601('2020-09-28T23:59:59.0Z').epoch
_default_cancellation_end_date: int = MayaDT.from_iso8601('2020-09-30T23:59:59.0Z').epoch
_default_worklock_boosting_refund_rate: int = 800
_default_worklock_commitment_duration: int = 180
_default_worklock_min_allowed_bid: int = Web3.toWei(5, "ether")
def __init__(self,

View File

@ -5,7 +5,7 @@ This repo contains an authorative source of contract registries for several NuCy
## Current networks
* **Mainnet**: (_Coming soon..._)
* **Mainnet**: Official addresses and ABIs for mainnet contracts.
* **LTS**: Public long-term support testnet (_Coming soon... # TODO: Name this testnet_)
* **Ibex**: Internal testnet. Mainly for development purposes. You're free to join, but note that we may reboot this testnet without prior notice.

File diff suppressed because one or more lines are too long