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

Store amount when the funding transaction is sent #27

Open
escottalexander opened this issue Feb 22, 2024 · 0 comments
Open

Store amount when the funding transaction is sent #27

escottalexander opened this issue Feb 22, 2024 · 0 comments

Comments

@escottalexander
Copy link
Collaborator

escottalexander commented Feb 22, 2024

Currently when the funding transaction is sent we add 15-20% so that we make sure it is enough if gas prices move against us while the user is signing the recovery transactions. This could be made more efficient if we use the funding amount as a reference for the gas price of each recovery transaction. This way the user should never send more than would potentially be used and in the other case they can never create transactions that potentially use more gas than is given.

All this logic is in useRecoveryProcess and useGasEstimation I believe.

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