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

[InterFlux] Allocate conversion fees based on confirmation participation #1153

Draft
wants to merge 1 commit into
base: feature/1.5.0.0-interflux
Choose a base branch
from

Conversation

zeptin
Copy link
Collaborator

@zeptin zeptin commented Jun 28, 2023

Adds the additional constraint that a multisig federation node must be actively participating in the InterFlux confirmation process in order to receive a portion of the fees thereof.

This is achieved by populating a set of the node pubkeys that confirmed a given transaction at the time it is marked as processed. This tracker is available to the FederatedPeg feature without having any smart contract interface logic inside it.

When a fee is about to be distributed, a list of the request IDs of n (currently 5, this can be changed) previous processed InterFlux deposits is retrieved. A set of the pubkeys that participated in confirming these deposits is constructed, nodes that are not present in this set do not receive a portion of the fee.

WIP: Still needs the pubkey/account mappings to be populated

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

Successfully merging this pull request may close these issues.

1 participant