FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.
Other
58.17k stars 2.76k forks source link

Allow users to pay for gas with alternate assets #1205

Open Voxelot opened 1 year ago

Voxelot commented 1 year ago

Devise a method to allow users to pay fees without using the base asset (eth). For example, the network could have the ability to configure a set of approved alternate assets at a fixed conversion rate (i.e eth/usdc rate). If the transaction contains an output for the block producer address, they may set the gasPrice to zero and have their tx accepted if the producer determines the converted fee amount is sufficient to pay for the amount of gas on the transaction.

cc @SilentCicero

xgreenx commented 1 year ago

Related https://github.com/FuelLabs/fuel-vm/issues/164

SilentCicero commented 11 months ago

For this, I'd keep the design simple. All txs are paid for in the base asset, but a transaction can allow native meta-transactionality, allowing another party to pay a fee payer.

This way we keep the base asset system simple for fee payments.

SilentCicero commented 11 months ago

See: https://github.com/orgs/FuelLabs/projects/27/views/3?pane=issue&itemId=37661556

bvrooman commented 9 months ago

I'm starting an RFC to dive deeper into possible proposals, including some existing research. See the living document here. This document is still immature and sparse, but I expect to be putting more details into it shortly, including thoughts on implementation.