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

Remove incorrect assertion in multipoolAutoSwap priceAuthority #2839

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

Chris-Hibbert
Copy link
Contributor

fixes #2831

priceAggregator shows that when priceQuery() returns a falsy value, createQuote()
is expected to return undefined. This happens when the comparefunction returns
false, so the promise isn't resolved.

I added a test of the priceAuthority in multipoolAutoSwap. The test fails before
the change (The first trigger gets false on the comparison) and passes afterward.

fixes #2831

priceAggregator shows that when priceQuery() returns a falsy value, createQuote()
is expected to return undefined. This happens when the comparefunction returns
false, so the promise isn't resolved.

I added a test of the priceAuthority in multipoolAutoSwap. The test fails before
the change (The first trigger gets false on the comparison)  and passes afterward.
@Chris-Hibbert Chris-Hibbert added bug Something isn't working Small Zoe Contract Contracts within Zoe Core Economy OBSOLETE in favor of INTER-protocol labels Apr 7, 2021
@Chris-Hibbert Chris-Hibbert added this to the Beta Treasury Launch milestone Apr 7, 2021
@Chris-Hibbert Chris-Hibbert self-assigned this Apr 7, 2021
@Chris-Hibbert Chris-Hibbert requested a review from michaelfig April 8, 2021 00:06
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM!

@Chris-Hibbert Chris-Hibbert enabled auto-merge (squash) April 8, 2021 01:13
@Chris-Hibbert Chris-Hibbert merged commit cb022d6 into master Apr 8, 2021
@Chris-Hibbert Chris-Hibbert deleted the priceQuery-2831 branch April 8, 2021 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Core Economy OBSOLETE in favor of INTER-protocol Zoe Contract Contracts within Zoe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

priceQuery must return a quote
2 participants