-
Notifications
You must be signed in to change notification settings - Fork 1
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
[API-3578] Fundrebalancer ERC20 approvals #48
Conversation
@@ -309,34 +306,6 @@ func (r configReader) Config() Config { | |||
return r.config | |||
} | |||
|
|||
func (r configReader) GetSolverAddress(domain uint32, environment ChainEnvironment) (string, []byte, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want used
@@ -168,12 +168,22 @@ func WithEstimatedGasTipCap() TxBuildOption { | |||
|
|||
func WithEstimatedGasFeeCap() TxBuildOption { | |||
return func(ctx context.Context, b TxBuilder, tx *types.DynamicFeeTx) error { | |||
price, err := b.rpc.SuggestGasPrice(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't always work for 1559 tx's, so I changed it to how the client estimates the gas fee cap by taking the gas tip cap + (base fee of the most recent block * 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice lgtm
No description provided.