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

Treat ETH and WETH as single token in winners selection #3074

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

sunce86
Copy link
Contributor

@sunce86 sunce86 commented Oct 18, 2024

Description

Fixes #3043

Treats ETH and WETH as a same token in winner detection.

@sunce86 sunce86 self-assigned this Oct 18, 2024
@sunce86 sunce86 requested a review from a team as a code owner October 18, 2024 19:45
@@ -33,6 +39,27 @@ pub struct TxId(pub H256);
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, From, Into)]
pub struct TokenAddress(pub H160);

impl TokenAddress {
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is also in the driver, would it make sense to move it to the shared?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we went the opposite direction - moving away things from shared

crates/autopilot/src/run_loop.rs Outdated Show resolved Hide resolved
crates/autopilot/src/domain/eth/mod.rs Outdated Show resolved Hide resolved
@sunce86 sunce86 requested a review from m-lord-renkse October 21, 2024 15:09
@sunce86 sunce86 enabled auto-merge (squash) October 22, 2024 13:25
@sunce86 sunce86 merged commit 388486d into main Oct 22, 2024
11 checks passed
@sunce86 sunce86 deleted the improve-eth-weth-recognition branch October 22, 2024 13:29
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 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.

chore: Improve checking of commonly used tokens in autopilot competition
3 participants