-
Notifications
You must be signed in to change notification settings - Fork 208
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: reinstate economy boot using minInitialPoolLiquidity=0 #5441
Conversation
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.
linking #5407 for motivation
@@ -415,7 +425,7 @@ test('Benefactor can add to reserve', async t => { | |||
await s.startDevNet(); | |||
await s.provisionMembers(); | |||
await s.startRunPreview(); | |||
await s.benefactor.makePool(2000n, 1000n); | |||
// await s.benefactor.makePool(2000n, 1000n); |
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.
please delete dead code
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.
justification above doesn't suffice?
// This isn't used now that we make the pool from a denom
// in publishInterchainAssetFromBank in addAssetToVault.js
// But it should still work. TODO: Perhaps we should test both ways?
// i.e. from a board ID as well?
basically: this design has flip-flopped rapidly recently. I'd like to keep it there as a hedge.
- restore support for $INTERCHAIN_DENOM - allow passing env explicitly with process.env as a default - fix: minInitialPoolLiquidity goes inside options - addPool in publishInterchainAssetFromBank in proposals/addAssetToVault.js
refs: #5375
obsoletes: #5428
Description
make scenario2-run-chain-to-halt
in cosmic-swingset)minInitialPoolLiquidity
to 0 in "economy" bootstrappublishInterchainAssetFromBank
), add it to the AMM, assumingminInitialPoolLiquidity
is 0await zcf.saveIssuer()
(drive-by, found during testing)Security Considerations
Users of "economy" bootstrap must manage the risk of spam AMM pools.
Documentation Considerations
can't think of any
Testing Considerations
restoring
test-gov-collateral.js
to working order was a bit challenging; thebenefactor.makePool()
code is now dead code, but I left a TODO to test that path, so I'm inclined to keep it around.