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

Gas payments MVP #30

Open
1 of 2 tasks
serejke opened this issue Jul 7, 2023 · 1 comment
Open
1 of 2 tasks

Gas payments MVP #30

serejke opened this issue Jul 7, 2023 · 1 comment

Comments

@serejke
Copy link
Contributor

serejke commented Jul 7, 2023

Overview

We are currently considering different approaches for managing the relationship between the Outbox and gas payments. After thorough examination, it seems that a very simple Minimum Viable Product (MVP) solution is emerging that could address the issue without requiring on-chain quoting/rates.

Description

The proposed MVP solution involves the following steps:

  • The Outbox remains independent of gas payments as it currently is, meaning that there won't be any changes to its behavior regarding transaction fees.
  • We do not implement on-chain quoting or rates.
  • A DApp can dispatch a message via Outbox at any time by paying the normal transaction fee.
  • The DApp knows the dispatched messageId and the relayer's address.
  • The DApp posts a UTXO with Datum = messageId and ADA on the relayer's address. Note that anyone can post such a UTXO and even pay for others' messages.
  • The amount of ADA that needs to be paid is calculated off-chain.
  • The relayer listens to UTXO on its address.
    When the relayer is ready to relay a message, it performs off-chain fee quoting (dependent on the ADA-to-ETH current ratio), and decides whether it wants to relay the message or not. If not, the DApp needs to pay more.

Outcomes

This simple MVP solution aims to streamline the process of fee payments and make them more flexible, taking into account the changing ADA-to-ETH ratio and allowing for off-chain calculations. The relayers will have more autonomy in deciding whether or not to relay a message based on the paid fee.

Subtasks

@hai-kreate
Copy link
Contributor

Current status:

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

No branches or pull requests

2 participants