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 redeem amount #105

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Fix redeem amount #105

merged 2 commits into from
Oct 6, 2023

Conversation

Adamantios
Copy link
Collaborator

The previous calculation was resulting in the number of conditional tokens instead of the amount in WEI.
amount = int(self.outcomeTokenMarginalPrice * self.outcomeTokensTraded)
amount = self.outcomeTokensTraded
Copy link
Collaborator Author

@Adamantios Adamantios Oct 6, 2023

Choose a reason for hiding this comment

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

The previous calculation resulted in the number of conditional tokens instead of the amount in WEI.

@Adamantios Adamantios merged commit 8f8bfbd into main Oct 6, 2023
6 checks passed
@Adamantios Adamantios deleted the fix/redeem-amount branch October 6, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants