-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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.
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
COW_DAO_MEV_BLOCKER_KICKBACKS_ADDRESS = "0xCe91228789B57DEb45e66Ca10Ff648385fE7093b" | ||
COPIUM_CAPITAL_MEV_BLOCKER_KICKBACKS_ADDRESS = "0x008300082C3000009e63680088f8c7f4D3ff2E87" |
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.
Is it possible to write the code as
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.
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.
Yeah good suggestion, just pushed an update
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 |
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.
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 | |
) |
Ran into some issues in PR #112 so decided to update the python version. --------- Co-authored-by: Felix Henneke <[email protected]>
Ran into some issues in PR #112 so decided to update the python version. --------- Co-authored-by: Felix Henneke <[email protected]>
This reverts commit 783bf5d.
This PR adds the current address where Copium receives kickbacks, for monitoring purposes.