Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Furnace Module #95

Merged
merged 28 commits into from
Oct 12, 2023
Merged

Furnace Module #95

merged 28 commits into from
Oct 12, 2023

Conversation

taryune
Copy link
Member

@taryune taryune commented Sep 21, 2023

#66

  • Scaffold Furnace module
  • Burn Mycel on each epoch (daily)
  • Token burn is not implemented

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"
)

@taryune taryune changed the title Scaffold Furnace Module [WIP]Scaffold Furnace Module Sep 26, 2023
@taryune taryune changed the title [WIP]Scaffold Furnace Module Furnace Module Sep 27, 2023
@taryune taryune requested a review from yujiym September 29, 2023 12:01
Copy link
Contributor

@yujiym yujiym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇

@yujiym yujiym merged commit e7eb82f into main Oct 12, 2023
2 checks passed
@taryune taryune deleted the feat/furnace branch October 17, 2023 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants