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

Add Copium Capital MEV Blocker kickbacks #112

Merged
merged 7 commits into from
Aug 21, 2024
Merged

Conversation

harisang
Copy link
Contributor

This PR adds the current address where Copium receives kickbacks, for monitoring purposes.

@harisang harisang requested a review from fhenneke August 21, 2024 12:07
Copy link
Contributor

@fhenneke fhenneke left a comment

Choose a reason for hiding this comment

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

I would make it more general by allowing a list of addresses. That should be easy and lead to simpler code.

Generally, this functionality might as well live on Dune. We can merge it for now, though.

src/constants.py Outdated
Comment on lines 42 to 43
COW_DAO_MEV_BLOCKER_KICKBACKS_ADDRESS = "0xCe91228789B57DEb45e66Ca10Ff648385fE7093b"
COPIUM_CAPITAL_MEV_BLOCKER_KICKBACKS_ADDRESS = "0x008300082C3000009e63680088f8c7f4D3ff2E87"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to write the code as

Suggested change
COW_DAO_MEV_BLOCKER_KICKBACKS_ADDRESS = "0xCe91228789B57DEb45e66Ca10Ff648385fE7093b"
COPIUM_CAPITAL_MEV_BLOCKER_KICKBACKS_ADDRESS = "0x008300082C3000009e63680088f8c7f4D3ff2E87"
MEV_BLOCKER_KICKBACKS_ADDRESS = [
"0xCe91228789B57DEb45e66Ca10Ff648385fE7093b",
"0x008300082C3000009e63680088f8c7f4D3ff2E87",
]

And also add all other external drivers?

The rest of the code would need to be adapted as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good suggestion, just pushed an update

Comment on lines 43 to 47
eth_kickbacks = None
if cow_dao_total_eth_kickbacks is not None:
eth_kickbacks = cow_dao_total_eth_kickbacks
if copium_capital_total_eth_kickbacks is not None:
eth_kickbacks = copium_capital_total_eth_kickbacks
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
eth_kickbacks = None
if cow_dao_total_eth_kickbacks is not None:
eth_kickbacks = cow_dao_total_eth_kickbacks
if copium_capital_total_eth_kickbacks is not None:
eth_kickbacks = copium_capital_total_eth_kickbacks
eth_kickbacks = (
cow_dao_total_eth_kickbacks or copium_capital_total_eth_kickbacks
)

@harisang harisang mentioned this pull request Aug 21, 2024
harisang added a commit that referenced this pull request Aug 21, 2024
Ran into some issues in PR #112 so decided to update the python version.

---------

Co-authored-by: Felix Henneke <[email protected]>
harisang and others added 2 commits August 21, 2024 17:56
Ran into some issues in PR #112 so decided to update the python version.

---------

Co-authored-by: Felix Henneke <[email protected]>
@harisang harisang merged commit d11cfe7 into main Aug 21, 2024
4 checks passed
@harisang harisang deleted the add_copium_kickback_address branch August 21, 2024 15:02
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants