File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -257,9 +257,9 @@ export default async function startAgent({
257
257
brand : secondaryBrandP ,
258
258
purse : secondaryPurse ,
259
259
} = E . get ( tokenKit ) ;
260
- const liquidityIssuer = E ( amm ) . addPool (
261
- secondaryIssuer ,
262
- issuerPetnames [ tokenBrandPetname ] ,
260
+ const liquidityIssuer = fallback (
261
+ E ( amm ) . addIssuer ( secondaryIssuer , issuerPetnames [ tokenBrandPetname ] ) ,
262
+ E ( amm ) . addPool ( secondaryIssuer , issuerPetnames [ tokenBrandPetname ] ) ,
263
263
) ;
264
264
const liquidityBrandP = E ( liquidityIssuer ) . getBrand ( ) ;
265
265
@@ -312,7 +312,7 @@ export default async function startAgent({
312
312
} ) ;
313
313
314
314
const addLiquiditySeat = E ( zoe ) . offer (
315
- E ( amm ) . makeAddLiquidityInvitation ( ) ,
315
+ fallback ( E ( amm ) . addPoolInvitation ( ) , E ( amm ) . makeAddLiquidityInvitation ( ) ) ,
316
316
proposal ,
317
317
harden ( {
318
318
Secondary : secondaryAMMPayment ,
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ export {};
28
28
* XYKAMMPublicFacet,
29
29
* 'getPriceAuthorities' | 'makeSwapInInvitation' | 'makeAddLiquidityInvitation'
30
30
* > & {
31
- * addPool: (issuer: ERef<Issuer>, keyword: Keyword) => Promise<Issuer>
31
+ * addPool?: (issuer: ERef<Issuer>, keyword: Keyword) => Promise<Issuer>;
32
+ * addIssuer?: (issuer: ERef<Issuer>, keyword: Keyword) => Promise<Issuer>;
33
+ * addPoolInvitation?: () => Promise<Invitation>;
32
34
* } } AttenuatedAMM
33
35
*/
34
36
You can’t perform that action at this time.
0 commit comments