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

Dynamic tx fee #265

Open
greenhat opened this issue Apr 27, 2023 · 0 comments
Open

Dynamic tx fee #265

greenhat opened this issue Apr 27, 2023 · 0 comments

Comments

@greenhat
Copy link
Member

greenhat commented Apr 27, 2023

Motivation

In times of mempool congestion, txs can get on-chain with a significant delay.

Implementation details

Use transactions/getFee node's endpoint to calculate the fee for a tx passing tx's size and time (1 minute) to get on-chain as parameters.
Add max_tx_fee to the oracle config and use it as an upper limit for the suggested tx fee from the node. Set it to double the oracle config's base_fee initially.
I suppose that 'base_fee' can be dropped and tx fee from node used everywhere.

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

1 participant