Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Implement a Fee Splitting and Burning mechanism to burn KMD and support the Komodo blockchain #2010

Open
4 tasks
shamardy opened this issue Nov 15, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@shamardy
Copy link
Collaborator

shamardy commented Nov 15, 2023

A feature was proposed to introduce a KMD burn program using a part of the DEX fee, in order to support the Komodo blockchain and create a deflationary pressure. This feature would consist of the following steps:

  • Convert 25% of the DEX fee to KMD if the fee is not paid in KMD. We can convert all of the DEX fee or only the part that is to be burned to KMD.
  • The amount of KMD that to be burned can be burned using an OP_RETURN output, which would make them unspendable and allow us to store some metadata in the transaction if needed.

For the proof of concept, we would implement the feature only for the fee paid in KMD, as this is the simplest way to do it. After that, we would research a way to convert the fee or the part to be burned from any other coin to KMD and burn the part to be burned.

The checklist for the proof of concept would be:

  • Add a new output to the DEX fee transaction that is an OP_RETURN with 25% of the fee burned in KMD. (Onur)
  • Validate the new output by the maker as part of the taker fee validation step. (Onur)
  • Implement this feature for the trading protocol upgrade. (Artem)

Burning mechanism in EVM TPU on defi framework side

@shamardy shamardy added the enhancement New feature or request label Nov 15, 2023
@onur-ozkan
Copy link
Member

onur-ozkan commented Nov 15, 2023

A feature was proposed to introduce a KMD burn program using a part of the DEX fee, in order to support the Komodo blockchain and create a deflationary pressure. This feature would consist of the following steps:

Convert 25% of the DEX fee to KMD if the fee is not paid in KMD. We can convert all of the DEX fee or only the part that is to be burned to KMD.

The amount of KMD that to be burned can be burned using an OP_RETURN output, which would make them unspendable and allow us to store some metadata in the transaction if needed.

Once #2006 is merged, this issue will be closed. It's worth to move these to a separate issue. I have a strong opinion that we should have the global fee handler implementation before going for something like this (otherwise swap algorithms will become quite fragile with the complex calculations splitted all over the core swap implementations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants