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

Remove naive solver #2571

Closed
wants to merge 2 commits into from
Closed

Remove naive solver #2571

wants to merge 2 commits into from

Conversation

MartinquaXD
Copy link
Contributor

Description

The team seems to agree that the naive solver is not adding a lot of value so it's reasonable to delete its code.

Changes

Removes the naive solver code.

@MartinquaXD MartinquaXD requested a review from a team as a code owner March 27, 2024 17:33
@fleupold
Copy link
Contributor

What are the alternatives considered? I realise that currently Naive solver is somewhat useless, since it doesn't support fee=0 orders, but how hard is it to add this (it should be strictly simpler than for baseline).

Given the name of our product, I'd find it unfortunate if we are only relying on a single external solver to find obvious CoWs. Also for e2e tests I think it would be good to be able to test CoWs.

@MartinquaXD
Copy link
Contributor Author

it should be strictly simpler than for baseline

Conceptually it's fairly easy to come up with some way to distribute the execution cost across orders. However, the code is some serious spaghetti. :/
I looked more into supporting limit orders last night and I think I found a way that could make it work but it's not pretty.

@sunce86
Copy link
Contributor

sunce86 commented Mar 28, 2024

Given the name of our product, I'd find it unfortunate if we are only relying on a single external solver to find obvious CoWs.

Good point. OTOH I don't think Naive solver is the one we should rely on in the future for COWs (or anything). External solvers should start supporting COWs and if they don't it's just a matter of incentive then.

@fleupold
Copy link
Contributor

I don't think Naive solver is the one we should rely on in the future for COWs (or anything)

For the purpose of e2e tests and making sure the driver logic supports CoWed solutions I still see value in having a solver that finds obvious CoWs

@MartinquaXD
Copy link
Contributor Author

Closing since there is pushback after all. Already looked into supporting limit order support but the code is pretty hard to reason about and it's not 100% clear to me where the adjustment to the fee logic has to happen ideally.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 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.

3 participants