File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,10 +164,21 @@ export const removeLiquidity = async (
164164
165165 const liquidateFn = async ( ) => {
166166 if ( poolToken . version < 28 ) {
167+ console . log ( 'liquidate' , {
168+ poolToken,
169+ amount : expandToken ( poolToken . amount , poolToken . poolDecimals ) ,
170+ } ) ;
167171 return await contract . liquidate (
168- expandToken ( poolToken . amount , poolToken . poolDecimals )
172+ expandToken ( poolToken . amount , poolToken . poolDecimals ) ,
173+ {
174+ gasLimit : 1000000 ,
175+ }
169176 ) ;
170177 } else {
178+ console . log ( 'removeLiquidity' , {
179+ poolToken,
180+ amount : expandToken ( poolToken . amount , poolToken . poolDecimals ) ,
181+ } ) ;
171182 return await contract . removeLiquidity (
172183 expandToken ( poolToken . amount , poolToken . poolDecimals ) ,
173184 [ poolToken . bnt . token . address , poolToken . tkn . token . address ] ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { WalletConnectConnector } from '@web3-react/walletconnect-connector';
77import { TorusConnector } from '@web3-react/torus-connector' ;
88import { SafeAppConnector } from '@gnosis.pm/safe-apps-web3-react' ;
99
10- export const ALCHEMY_URL = `https://eth-mainnet.alchemyapi.io /v2/${
10+ export const ALCHEMY_URL = `https://eth-mainnet.g.alchemy.com /v2/${
1111 process . env . REACT_APP_ALCHEMY_MAINNET as string
1212} `;
1313
You can’t perform that action at this time.
0 commit comments