-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support setting the sanitization window to 0 #306
Comments
Agreed on the call to implement this, but log the whenever this sanitization happens. There should be an alert created for this per chain. There is a possibility that the base fee reported by the RPC will be too large, causing us to drain the wallet. This is quite unprobable, but we will see how this works in practice. |
We also discussed this issue with @bbenligiray . This problem arises specifically on The main issue is that unlike other chains, Even if we implement a solution for this issue, our transactions may still not be submitted on Fwiw, some chains don't include the base fee attribute in their To solve this problem arbitrum like chains, it's better to disable sanitization by setting |
While this is a good point, I don't think we will be able to submit a transaction during these heavy gas spikes because of the sanitization. This shouldn't matter that much though, because we can expect the OEV update to be done by the searcher if the update is important.
Yeah, good point. I guess we would want to have some factor of the base fee (e.g. 150% of the provider returned base fee) applied. But that is another complexity increase.
Yeah, makes sense to me. And I am happy that we avoid the complexity 💪 . That said, I checked the implementation and we are not really supporting sanitization window set to 0 because of this. Also here we may purge the currently fetched gas price (pretty rare case as the check works with seconds) and we'll also do this warning. |
We talked about to update sanitization parameters, I forgot to mention. {
sanitizationMultiplier: 5 -> 10,
sanitizationSamplingWindow: 600 -> 300,
} Both update on the parameters will help to submit transactions on congested situations.
How about setting |
All chains, Including testnets?
Yeah, setting I'd probably still keep the issue open, because the workaround moves the complexity to the configuration. But we don't need to implement it now. |
All chains that we want to utilize sanitization.
👌🏼 |
Moved to backlog and unassigned @bdrhn9 based on the discussion above. Also, changed the issue title. |
Also setting |
NOTE: The issue started as a task to use base fee from the RPC as the lower bound after the sanitization. The decision was later changed, and now the issue support sanitization window set to 0.
PREVIOUS DESCRIPTION:
We discussed on call, that it's possible that the RPC node returns gas price which is lower than the base fee. That said, so far all occurrences of the "gas price lower than base fee" were seen after we've sanitised the gas price. The disadvantage of this could be that we submit the tx with a high gas price (e.g. in case there is an issue with RPC and it reports wrong base fee).
What we could do is get the gas price and base fee from the RPC, sanitize it and then use
max(sanitized_gas_price, base_fee)
.The text was updated successfully, but these errors were encountered: