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 bug awarding LP to wrong actor handling bucketTake #58

Merged
merged 4 commits into from
Aug 21, 2023

Conversation

EdNoepel
Copy link
Contributor

@EdNoepel EdNoepel commented Aug 19, 2023

A typo caused both the kicker and taker to get the LP which should be awarded to taker in a bucketTake. Updated both pools to award kicker LP to kicker. Integration tested on parvati.

Added a bucketIndex field to Lend, allowing lends to be filtered by bucket index. GraphQL has limitation that consumer cannot filter on subproperties (bucket.bucketIndex).

Attempted to consolidate handleBucketTake logic into base-pool.ts, but the logic was too different between pool types.

Copy link
Contributor

@MikeHathaway MikeHathaway left a comment

Choose a reason for hiding this comment

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

LGTM

@EdNoepel EdNoepel merged commit 4508c3d into develop Aug 21, 2023
@EdNoepel EdNoepel deleted the lend-lpb-fix branch August 21, 2023 11:11
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.

2 participants