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

Provide alternative for fast_gas_price - for slower but cheaper transactions (aka: lowering processing fee) #15

Open
Deepcryptodive opened this issue Aug 28, 2020 · 1 comment

Comments

@Deepcryptodive
Copy link

Currently, the processing fee suggested by the front end is calculated according to the following formula:
operation_fee = 1.1 * gas_per_operation * fast_gas_price * eth_price_in_dai (or chai),
where fast_gas_price is provided by Gas Station Network.

At the time of writing this comes down to a $9.9 tx fee for a simple DAI transfer (at ~145 Gwei for fast_gast_price). For many applications, this is prohibitively expensive.
image

Can an alternative be provided for users that do not require fast transactions?
e.g. using the average_gas_price from the Gas Station Network?

image
(Source)

Potential issue: The "time to live" for messages signed using stablecoin.services is currently 10 minutes. This might need to be increased, to accomodate for slower confirmation.

@MrChico
Copy link
Owner

MrChico commented Aug 28, 2020

Thanks for the writeup. This is indeed an accurate description of the situation. The fast gas price is chosen simply for being the most reliable to ensure that the tx will eventually be included and not dropped from the mempool. The backend is simple threaded right now, so it would need to be improved to be able to deal with different tx speeds. Another simple solution would be to set the default speed to avg for all transactions

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