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

Classifiers: add 1inch Limit Order Protocol #91

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

come-maiz
Copy link

No description provided.

@come-maiz
Copy link
Author

I cannot use the Infura rpc to test this. Which RPC do you use?

@taarushv
Copy link
Contributor

taarushv commented Oct 7, 2021

I cannot use the Infura rpc to test this. Which RPC do you use?

@ElOpio It requires an archive node, sending you a link on discord

@come-maiz
Copy link
Author

Thanks a lot @taarushv! <3

I've been debugging this, and it is blocked because there is a bug when we get the selector of a function that has a tuple. I'm having a lot of fun digging into this :)

@come-maiz come-maiz force-pushed the classifier/1inch branch 2 times, most recently from 0909746 to 215f869 Compare October 9, 2021 04:48
@come-maiz
Copy link
Author

I've pushed #94 to fix the tuple issues.

Now I'm confused about classifying this as a swap, because it seems to requiere a pool:
https://github.com/flashbots/mev-inspect-py/blob/main/mev_inspect/swaps.py#L75

In this protocol, the swap is direct from an open order. I'm not sure what to do about the pool. Is it that this is not a swap, or is it that pools in swaps should be optional? 🤔

Who can help me finishing this branch?

@lukevs
Copy link
Collaborator

lukevs commented Oct 12, 2021

@ElOpio I can help you get this over the line

which approach do you prefer?

happy to talk through in discord as well

@come-maiz
Copy link
Author

come-maiz commented Oct 12, 2021

Thank you @lukevs. Let's try to do it here. My main question is if this, in order to be a swap, needs a pool.

@come-maiz
Copy link
Author

@lukevs there was one merge problem, but now it's all good. I'm back again at my pool question. This transaction doesn't have a pool. Does it mean that it's not a swap?

@lukevs
Copy link
Collaborator

lukevs commented Nov 13, 2021

@ElOpio this is something we ran into w/ 0x as well. thinking we might want to rename that field to just contract_address

@come-maiz
Copy link
Author

pool and contract address, both sound good to me. But in this case there is no transfer to the contract, just a direct exchange. As far as I understand this function.

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.

3 participants