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

vaultFactory terms: auctioneerPublicFacet or auctioneer instance? #7873

Closed
dckc opened this issue Jun 1, 2023 · 5 comments · Fixed by #9283
Closed

vaultFactory terms: auctioneerPublicFacet or auctioneer instance? #7873

dckc opened this issue Jun 1, 2023 · 5 comments · Fixed by #9283
Assignees
Labels
auction enhancement New feature or request Governance Governance Inter-protocol Overarching Inter Protocol Vaults VaultFactor (née Treasury)

Comments

@dckc
Copy link
Member

dckc commented Jun 1, 2023

What is the Problem Being Solved?

The vaultFactory's terms include auctioneerPublicFacet; a party who wants to audit/verify the auctioneer is likely to have the instance (for example from agoricNames.instance). This puts the burden on such parties to call E(zoe).getPublicFacet(instance) in order to verify.

Description of the Design

Perhaps the vaultFactory should take the instance and do the call to E(zoe).getPublicFacet(instance)

Security Considerations

Scaling Considerations

Test Plan

@dckc dckc added enhancement New feature or request Inter-protocol Overarching Inter Protocol Governance Governance Vaults VaultFactor (née Treasury) auction labels Jun 1, 2023
@turadg turadg assigned iomekam and unassigned Chris-Hibbert Jul 18, 2023
@turadg
Copy link
Member

turadg commented Jul 18, 2023

@iomekam in the course of #7954 please change it to take the instance instead of the PF.

@dckc
Copy link
Member Author

dckc commented May 6, 2024

I still see auctioneerPublicFacet in the terms

* @param {ERef<import('../auction/auctioneer.js').AuctioneerPublicFacet>} auctioneer

Should we close this as not planned, @Chris-Hibbert ?

@turadg
Copy link
Member

turadg commented May 6, 2024

I still see auctioneerPublicFacet in the terms

That link is to the Director exo. The contract start gets that from the instance in terms:

const auctioneerPublicFacet = E(zoe).getPublicFacet(auctioneerInstance);

@Chris-Hibbert
Copy link
Contributor

There isn't a way to remove objects from terms on upgrade or restart. As @turadg noted, the Director asks Zoe for the publicFacet, by providing the instance specified in privateArgs. It ignores the old publicFacet, which is still in the terms.

So we made the change proposed in the Design section, though legibility has been lost, since terms is now misleading.

@dckc
Copy link
Member Author

dckc commented May 6, 2024

ok. I misread. Thanks for clarifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auction enhancement New feature or request Governance Governance Inter-protocol Overarching Inter Protocol Vaults VaultFactor (née Treasury)
Projects
None yet
4 participants