Skip to content

Relayers pallet: extend payment source id#1907

Merged
serban300 merged 8 commits intoparitytech:masterfrom
serban300:refactoring_2
Feb 28, 2023
Merged

Relayers pallet: extend payment source id#1907
serban300 merged 8 commits intoparitytech:masterfrom
serban300:refactoring_2

Conversation

@serban300
Copy link
Copy Markdown
Collaborator

Implementing this comment and also addressing #1692

2 questions however (for future PRs maybe):

  1. This approach might make it more complicated for the relayer to claim rewards. It will have to execute a claim_rewards call for each (lane_id, bridged_chain_id, lane_direction). Could this be an inconvenience ? Should we make it easier for the relayer ? Maybe modify claim_rewards in order to handle LaneDirection::In and LaneDirection::Out at once ?

  2. Right now we have 2 steps for awarding rewards:

  • registering the reward

  • the relayer claims the reward

    What if the account that pays the reward doesn't have funds at step 2 ? Can this occur ? It may not have funds in the first place, or it may have funds when registering the rewards, and spend them until the relayer claims the reward. Should / could we handle this ? Maybe freeze some funds at step 1 ?

Loading
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.

2 participants