diff --git a/docs/net.md b/docs/net.md deleted file mode 100644 index 24208d37..00000000 --- a/docs/net.md +++ /dev/null @@ -1,12 +0,0 @@ - -# How to add new net - -1. Buy domain and move it to AWS (other providers possible, so this is already encoded) and enable proper limits and billing -2. You have to enable AWS login locally mighty enough. Nix will eat what you have (like awscli2) -3. Tell `domain`, admin `email`, state encryption "age" key to nix via `email` and `domain` attributes in `flake.nix` -4. Set `UPTIME_TOKEN` into env. -5. run `terraform/base.nix` to apply base layer with node image -6. Generate `gen-node-key` for `.secret/node-a`, `-b`, etc -7. Run `terraform/testnet.nix` to deploy testnet and bind it to DNS -8. Get `ip` from `output` of 6, and put it into `flake.nix` for `deploy-testnet-node-a`, `deploy-testnet-node-b`, etc -9. Run relevant nix scripts diff --git a/docs/tokenomics.md b/docs/tokenomics.md deleted file mode 100644 index 019a6434..00000000 --- a/docs/tokenomics.md +++ /dev/null @@ -1,126 +0,0 @@ -# Tokenomics [DRAFT] - -## Initial Total Supply - -`1 Billion GGX` - -`1 GGX ~= 0.05 USD` - -`18 decimals` - -All amounts in this document are in GGX. - -## APY - -Schedule of APY will be next: - -| Date | Yearly APY** | -| -----|-----------------------| -| 2023 | 14.93% | -| 2024 | 13.93% | -| ... | ... | -| 2028 | 11.31% | -| ... | ... | -| 2043| 4% | -| ... | ... | -| 2053 | 2% | -| 2054 | 2% | - -** decreases by 6.7% per year - -After 30 years the APY stabilizes at 2% - -### Current state - -* Initial total supply is distributed to active nodes for now. -* 18 decimals is done. (configured by MILLIGGX) -* APY configured to 16%. (configured by runtime/mainnet/src/pos/currency.rs InflationPercent) -* APY decrease ladder scheduled for the runtime. -APY decrease happens every 365.25 days to address leap years. (configured by runtime/mainnet/src/pos/currency.rs InflationPercentDecay) - -## Staking - -Each new validators when enters `PoS` with `200 thousands` staked for `1 year`. - -Staking rewards are distributed each session. - -`Session period = 4 hours` -`Election period = quarter` - -### Slashing - -| Misbehavior | Amount | Parameters | -| ------------| -------| ------------------ -| Consensus Offline | 0.01% to 44% * Stake | starting from 10% validators offline linear increase | -| Consensus Equivocation for blocks(double sign) | 0.01% * Stake | TBD | -| MPC Signature (Wrong message) | 0.01% * Stake | TBD | -| MPC Key generation(Failure to participate) | 0.001% * Stake | TBD | -| Early unsake | 10% * Stake | -| ...TBD... | ...TBD... | - -Slashed amounts are sent to treasury. - -### Nominations - -| Account | Part | Type | -| ------- | ---- | ---- | -| Validator** | 5% | Fixed comission | -| Nominator + Validator** | 95% | Shared between nominators and validator || - -** 10% of validators rewards go to Treasury -| Account | Part | -| --------- | ---- | -| Validator | 90% | -| Treasury | 10% | - -### Current state - -* 1 year withdrawal lock is implemented -* Session period is 4 hours. Era period is quarter. -(configured by EpochDurationInBlocks, SessionsPerEra). -* Payout at the end of the session. Configured by runtime/mainnet/src/pos/session_payout/mod.rs -* Median commission to nominators from validator preferences calculated each session. -Static commission can be enabled by referenda. Configured by runtime/mainnet/src/pos/session_payout/mod.rs -* 10% Treasury comission is implemented. (configured by runtime/mainnet/src/pos/currency.rs TreasuryCommission) - -## Rewards - -### From transaction fees - -| Account | Part | -| -------- | ----- | -| Treasury | 100% | -| Validator(block producer) | 0% | -| Burn | 0% | - -Fees are distributed each block. - -### From transaction tips - -| Account | Part | -| -------- | ----- | -| Treasury | 25% | -| Validator(block producer) | 75% | -| Burn | 0% | - -### Current state - -* Done - -## Fees - -| Category | Type | Amount | -|------|--------|-----------| -|Transaction | 1 second of execution(or equivalent prove size)| 10000 | -|Transaction | MPC signatrue | 100 | -|Storage | ED for account | 0.1 | - -Proper fees to be defined. - -## Parameters configuration - -Parameters can be changed by OpenGov. - -### Current state - -* Implemented most of it. diff --git a/docs/validator.md b/docs/validator.md deleted file mode 100644 index fd50a9fa..00000000 --- a/docs/validator.md +++ /dev/null @@ -1,8 +0,0 @@ -# How to add more validators - -0. [You are running net](net.md) -1. `gen-node-key` for `.secret/node-d` -2. Add `node-d` into `terraform/testnet.nix` in places where `node-b` mentioned (instances, zones, keys). Run. -3. Copy `node-d` IP. -4. In `flake.nix` add `node-d` in all places where mentioned `node-b`. Run `deploy-node-d` routine. -5. Follow [guide](../examples/adding-new-validator/README.md) on how to get validator public keys set and add it into chain.