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

Update query to use hardcoded values for colocated solvers #14

Merged

Conversation

bram-vdberg
Copy link
Contributor

@bram-vdberg bram-vdberg commented Sep 5, 2024

This PR addresses issue #12 and updates the CIP-48 query to use hard-coded values for colocated drivers.

This change also updates the logic for calculating the 3 month grace period for colocated solvers. Now, the logic only sets the grace period if they are manually marked as being in a reduced bonding pool.

Currently hardcoding all colocated solvers. Updates have been made to the CMS to allow us to get this information in a GitHub action, but since that's not live yet I'm adding these manually.

@bram-vdberg bram-vdberg linked an issue Sep 5, 2024 that may be closed by this pull request
3 tasks
@bram-vdberg bram-vdberg force-pushed the 12-add-hardcoded-colocated-solver-addresses-for-cow-bonding-pool branch from c5ed515 to bed1344 Compare September 10, 2024 10:07
@bram-vdberg bram-vdberg marked this pull request as ready for review September 10, 2024 10:11
@harisang harisang force-pushed the 12-add-hardcoded-colocated-solver-addresses-for-cow-bonding-pool branch from 5ebbb6a to 9991610 Compare September 12, 2024 15:28
@harisang
Copy link
Contributor

I took the liberty to add an alternative query that is simpler, at least to me, to parse. It is definitely doing redundant things and recomputing things here and there, but i had a bit of a hard time parsing the original query, so this is why i decided to do this.

I am not suggesting we should use the new one, but would be good to have a look at both, proof-read them and then make a call

@harisang
Copy link
Contributor

One thing that needs to happen is that the original query should better invoke query 1541516 as black box, even if that means repeating some calculations. @bram-vdberg would be good to check how much this would simplify your query

@harisang
Copy link
Contributor

Merging now as we need to execute the payouts tomorrow. Will open an issue to simplify the query

@harisang harisang merged commit f4a8ce7 into main Sep 17, 2024
1 check passed
@harisang harisang deleted the 12-add-hardcoded-colocated-solver-addresses-for-cow-bonding-pool branch September 17, 2024 00:16
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.

Add Hardcoded Colocated Solver Addresses for CoW Bonding Pool
2 participants