mycel-labs / mycel

Apache License 2.0
12 stars 4 forks source link

Furnace Module #95

Closed taryune closed 1 year ago

taryune commented 1 year ago

66

Burn Timing

  1. Initial State Id=0
Id 0 1 2 3 4 5
BurnAmount 0 0 0 0 0 0
Current *
  1. Register TLD onId=0 Registration fee is 10 tokens each period. (period=2) Add 10 tokens toBurnAmount each for Id=1 and Id=2
Id 0 1 2 3 4 5
BurnAmount 0 10 10 0 0 0
Current *
  1. Id=1 Burn 10 tokens in this period.
Id 0 1 2 3 4 5
BurnAmount 0 10 10 0 0 0
Current *
  1. Resgister TLD on Id=1 Registration fee is 10 tokens each period. (period=2) Add 10 tokens toBurnAmount each for Id=2 and Id=3
Id 0 1 2 3 4 5
BurnAmount 0 10 20 10 0 0
Current *

Event

const (
    EventTypeEpochBurn = "epoch-burn"

    AttributeKeyEpochIdentifier      = "epoch-identifier"
    AttributeKeyEpochNumber          = "epoch-number"
    AttributeKeyBurnIndex            = "burn-index"
    AttributeKeyBurnTotalEpochs      = "burn-total-epochs"
    AttributeKeyBurnCurrentEpoch     = "burn-current-epoch"
    AttributeKeybBurnAmount          = "burn-amount"
    AttributeKeyBurnCumulativeAmount = "burn-cumulative-amount"
    AttributeKeyBurnTimestamp        = "burn-timestamp"
)