Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Custom Feehandler & Add destination to FeeReason #167

Conversation

yrong
Copy link

@yrong yrong commented Jul 31, 2024

Context

Explore the idea from Alistair

  1. The exporter adds the teleported dot to the cost and returns it. This will make sure the user is charged the full amount.
  2. In a custom fee handler the Ethereum location must not be waived.
  3. In a custom fee handler we check if the the destination is Ethereum(our bridge) then we transfer to the treasury the cost - teleported dot. i.e. burning teleported dot

and solve the issue

The challenge here is that in FeeHandler here, there is no context of the original destination(i.e. Ethereum). So seems not possible to do the hack above?

with destination(i.e. Ethereum) added into the FeeReason of InitiateReserveWithdraw.

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

Successfully merging this pull request may close these issues.

1 participant