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

888: Refactor of useHistoricalTransactions #892

Merged
2 commits merged into from
Apr 2, 2024
Merged

888: Refactor of useHistoricalTransactions #892

2 commits merged into from
Apr 2, 2024

Conversation

ghost
Copy link

@ghost ghost commented Mar 29, 2024

Fixes #888

The old useHistoricalTransactions stopped working because of the swapContract.filters.SwapERC20 update, it now only accepts nonce and signerWallet to reduce gas cost.

Because of this you're only able to get orders where the account is the signerWallet. It won't work for orders with senderWallet.

Having no other choice we have to traverse all the logs of the swapContract. Hopefully this doesn't cause any issues when the logs get too large. If block limit is reached the logs will be fetched in increments so should be fine.

Right now it's not able to determine if an order is LastLook or RFQ. But since we also have OTC orders now we might have to rethink the labeling of transactions. I've added a separate ticket for that stuff: #891

@ghost ghost requested review from dmosites and gpxl-dev March 29, 2024 22:32
@ghost ghost force-pushed the feature/888 branch from efab39c to a879386 Compare March 31, 2024 14:01
@ghost ghost merged commit 7bb0fb9 into feature/876 Apr 2, 2024
3 checks passed
@ghost ghost deleted the feature/888 branch April 2, 2024 19:43
This pull request was closed.
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.

1 participant