@@ -102,8 +102,7 @@ export class AmmClient {
102102 baseMint ,
103103 quoteMint ,
104104 twapFirstObservationScaled ,
105- twapMaxObservationChangePerUpdateScaled ,
106- proposal
105+ twapMaxObservationChangePerUpdateScaled
107106 ) . rpc ( ) ;
108107
109108 return amm ;
@@ -114,8 +113,7 @@ export class AmmClient {
114113 baseMint : PublicKey ,
115114 quoteMint : PublicKey ,
116115 twapInitialObservation : BN ,
117- twapMaxObservationChangePerUpdate : BN ,
118- proposal : PublicKey
116+ twapMaxObservationChangePerUpdate : BN
119117 ) : MethodsBuilder < AmmIDLType , any > {
120118 let [ amm ] = getAmmAddr ( this . getProgramId ( ) , baseMint , quoteMint ) ;
121119 let [ lpMint ] = getAmmLpMintAddr ( this . getProgramId ( ) , amm ) ;
@@ -139,29 +137,6 @@ export class AmmClient {
139137 } ) ;
140138 }
141139
142- // async addLiquidity(
143- // amm: PublicKey,
144- // ) {
145- // let storedAmm = await this.getAmm(amm);
146-
147- // let ix = this.addLiquidityIx(
148- // amm,
149- // storedAmm.baseMint,
150- // storedAmm.quoteMint,
151- // maxBaseAmount instanceof BN ? maxBaseAmount : new BN(maxBaseAmount),
152- // maxQuoteAmount instanceof BN ? maxQuoteAmount : new BN(maxQuoteAmount),
153- // minBaseAmount instanceof BN ? minBaseAmount : new BN(minBaseAmount),
154- // minQuoteAmount instanceof BN ? minQuoteAmount : new BN(minQuoteAmount),
155- // user ? user.publicKey : undefined
156- // );
157-
158- // if (user) {
159- // ix = ix.signers([user]);
160- // }
161-
162- // return ix.rpc();
163- // }
164-
165140 async addLiquidity (
166141 amm : PublicKey ,
167142 quoteAmount ?: number ,
0 commit comments