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

fix: deposit index calculation #11

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

Conversation

dib542
Copy link
Collaborator

@dib542 dib542 commented May 6, 2024

The main fix is in 52ccccd

The send set of deposit indexes was incorrect because the function get_unique_integers_between expects the parameters to be ordered as get_unique_integers_between $lower $upper, however the values were being passed as get_unique_integers_between $upper $lower (because swap_index_accuracy should always be smaller than deposit_index_accuracy) so the deposits occurred at higher indexes than expected.

The second commit refactors the code slightly allowing these indexes to be logged and seen.

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