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

[API-3578] Fundrebalancer ERC20 approvals #48

Merged
merged 7 commits into from
Nov 15, 2024

Conversation

mattac21
Copy link
Contributor

No description provided.

@mattac21 mattac21 requested a review from a team as a code owner November 15, 2024 21:08
@@ -309,34 +306,6 @@ func (r configReader) Config() Config {
return r.config
}

func (r configReader) GetSolverAddress(domain uint32, environment ChainEnvironment) (string, []byte, error) {
Copy link
Contributor Author

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)
Copy link
Contributor Author

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)

Copy link
Contributor

@dhfang dhfang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice lgtm

@mattac21 mattac21 merged commit 7e24642 into main Nov 15, 2024
5 checks passed
@mattac21 mattac21 deleted the ma/fund-rebalancer-erc20-approve branch November 15, 2024 23:01
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

Successfully merging this pull request may close these issues.

2 participants