-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add addPool to AMM creatorFacet and reinstate economy boot #5428
Conversation
7b457dd
to
7f8738e
Compare
@@ -291,10 +291,38 @@ const start = async (zcf, privateArgs) => { | |||
}), | |||
); | |||
|
|||
/** @type {GovernedCreatorFacet<*>} */ | |||
const creatorFacet = makeGovernorFacet( | |||
// TODO: pass this into makeAddPoolInvitation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be done before merge to DRY out the two addPools. They've already diverged in that the other one updates metrics. cc @Chris-Hibbert
zcf.saveIssuer(secondaryIssuer, keyword); | ||
/** @param {ZCFMint} mint */ | ||
async mint => { | ||
await zcf.saveIssuer(secondaryIssuer, keyword); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noting #5407 to link this instance to that ticket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes it possible to create a new empty pool, violating the requirement for a minimum funding. It also allows/requires the pool to be funded using addLiquidity
rather than going through addPoolAndLiquidityHandler
, which means that no liquidity will be extracted to the reserve.
@Chris-Hibbert , this no-fee
The motivation for minimum funding was essentially spam prevention, wasn't it? This no-fee
Yes, this is a consideration that anyone with access to the AMM creator facet should be aware of. Is it a reason not to add the feature, though? |
discussion with @Chris-Hibbert , @dtribble and co suggests:
|
obsolete in favor of #5441 |
refs: #5375
Description
Security Considerations
Documentation Considerations
Testing Considerations