Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Proposer adds new fee reciever when token is registered. #608

Open
jacque006 opened this issue Jun 17, 2021 · 0 comments
Open

Proposer adds new fee reciever when token is registered. #608

jacque006 opened this issue Jun 17, 2021 · 0 comments
Labels
client This PR is about implementing the client

Comments

@jacque006
Copy link
Collaborator

What's wrong

When a proposer is running, it will have a list of tokenIDs to stateIDs indicating where transaction fees are sent. However, if a new token is registered while it is running, it will not be able to handle that token until a new state leaf is added on L1 and its config is updated.

How can we fix it?

Have proposers listen for the TokenRegistry's RegisteredToken event (https://github.com/thehubbleproject/hubble-contracts/blob/master/contracts/TokenRegistry.sol#L75) and have the proposer deposit a new state leaf for that tokenID. The proposer should then update its internal configuration with the new fee receiver.

This proposer feature should be hidden behind a configuration flag in case a node operator does not want to automatically update their token list and wishes to do so manually.

@jacque006 jacque006 added the client This PR is about implementing the client label Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
client This PR is about implementing the client
Projects
None yet
Development

No branches or pull requests

1 participant