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

refactor: bring autoswap up to date on the new Zoe spike branch #1411

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

Chris-Hibbert
Copy link
Contributor

This brings the autoswap contract up-to-date on the new-zoe-spike-2 branch, based on the synchronous seat work.

The unit tests for autoswap pass. I haven't yet done the swingset tests.

@Chris-Hibbert Chris-Hibbert self-assigned this Aug 9, 2020
@Chris-Hibbert Chris-Hibbert added this to the zoe-v0.8.0 milestone Aug 9, 2020
Base automatically changed from syncEmptySeat to new-zoe-spike-2 August 9, 2020 23:55
Copy link
Contributor

@katelynsills katelynsills left a comment

Choose a reason for hiding this comment

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

Looks good! I need to learn more about how addEmptySeat works - it was surprising to me that it was asynchronous.

throw new Error('getPoolKeyword: brand not found');
};

const { zcfSeat: poolSeat } = await zcf.addEmptySeat();
Copy link
Contributor

Choose a reason for hiding this comment

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

is this meant to be async? If so, why not use makeEmptyOffer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped the async. Thanks.

});

return { publicFacet, creatorFacet: publicFacet };
Copy link
Contributor

Choose a reason for hiding this comment

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

Ooo nice, I like the concept of passing the publicFacet back as the creatorFacet. We might consider always passing the publicFacet back to the creator too.

@Chris-Hibbert
Copy link
Contributor Author

addresses #1267, for autoswap. I think that bug also refers to multipoolAutoswap, so I won't close it.

Based on the synchronous seat work.

The unit tests for autoswap pass. I haven't yet done the swingset tests.
@Chris-Hibbert
Copy link
Contributor Author

I need to learn more about how addEmptySeat works - it was surprising to me that it was asynchronous.

No, it was my oversight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Zoe package: Zoe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants