Skip to content
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

swaps.fetchPools(); error #500

Open
hitdavid opened this issue Jul 28, 2023 · 0 comments
Open

swaps.fetchPools(); error #500

hitdavid opened this issue Jul 28, 2023 · 0 comments

Comments

@hitdavid
Copy link

hitdavid commented Jul 28, 2023

I try a demo code:

const balancer = new BalancerSDK({
    network: 1, // Mainnet
    rpcUrl: "https://my-eth-rpc" // rpc endpoint
  })

  const { swaps } = balancer // Swaps module is abstracting SOR
  const pools = await swaps.fetchPools();

throws exception:

Unknown pool type: HighAmpComposableStable 0xea912e1afa137c15f1638142e32f978e92fbce390000000000000000000003b4
(anonymous function)         	onChainData.ts:58
bi                           	onChainData.ts:56
getPools                     	subgrap…oolDataService.ts:92
processTicksAndRejections    	task_queues:95
Async call from await
(anonymous function)         	poolCacher.ts:51
(anonymous function)         	tslib.es6.js:74
__awaiter                    	tslib.es6.js:70
fetchPools                   	poolCacher.ts:49
(anonymous function)         	wrapper.ts:73
(anonymous function)         	tslib.es6.js:74
__awaiter                    	tslib.es6.js:70
fetchPools                   	wrapper.ts:72
fetchPools                   	swaps.module.ts:292
(anonymous function)         	app.ts:45
(anonymous function)         	app.ts:8
__awaiter                    	app.ts:4
(anonymous function)         	app.ts:38
dispatch                     	index.js:42
(anonymous function)         	router.js:425
dispatch                     	index.js:42
(anonymous function)         	index.js:34
dispatch                     	router.js:430
dispatch                     	index.js:42
bodyParser                   	index.js:78
processTicksAndRejections    	task_queues:95
Async call from await
dispatch                     	index.js:42
(anonymous function)         	index.js:34
handleRequest                	application.js:186
handleRequest                	application.js:157
emit                         	events:511
emit                         	domain:489
parserOnIncoming             	_http_server:1105
parserOnHeadersComplete      	_http_common:119
Async call from HTTPINCOMINGMESSAGE
init                         	inspector_async_hook:25
emitInitNative               	async_hooks:202
connectionListenerInternal   	_http_server:638
defaultTriggerAsyncIdScope   	async_hooks:465
connectionListener           	_http_server:611
emit                         	events:511
emit                         	domain:489
onconnection                 	net:2095
callbackTrampoline           	async_hooks:130
Async call from TCPSERVERWRAP
init                         	inspector_async_hook:25
emitInitNative               	async_hooks:202
createServerHandle           	net:1736
setupListenHandle            	net:1779
listenInCluster              	net:1860
Server.listen                	net:1948
listen                       	application.js:88
(anonymous function)         	app.ts:469
Module._compile              	loader:1267
m._compile                   	index.ts:1618
Module._extensions..js       	loader:1321
require.extensions.<computed>	index.ts:1621
Module.load                  	loader:1125
Module._load                 	loader:965
executeUserEntryPoint        	run_main:83
phase4                       	bin.ts:649
bootstrap                    	bin.ts:95
main                         	bin.ts:55
(anonymous function)         	bin.ts:800
Module._compile              	loader:1267
Module._extensions..js       	loader:1321
Module.load                  	loader:1125
Module._load                 	loader:965
executeUserEntryPoint        	run_main:83
(anonymous function)         	run_main_module:23

Unknown pool type: HighAmpComposableStable 0x1d1b44a4c5a047bdc9b3f06842566e5ea9c1966d0000000000000000000003b3
(anonymous function)         	onChainData.ts:58
bi                           	onChainData.ts:56
getPools                     	subgrap…oolDataService.ts:92
processTicksAndRejections    	task_queues:95
Async call from await
(anonymous function)         	poolCacher.ts:51
(anonymous function)         	tslib.es6.js:74
__awaiter                    	tslib.es6.js:70
fetchPools                   	poolCacher.ts:49
(anonymous function)         	wrapper.ts:73
(anonymous function)         	tslib.es6.js:74
__awaiter                    	tslib.es6.js:70
fetchPools                   	wrapper.ts:72
fetchPools                   	swaps.module.ts:292
(anonymous function)         	app.ts:45
(anonymous function)         	app.ts:8
__awaiter                    	app.ts:4
(anonymous function)         	app.ts:38
dispatch                     	index.js:42
(anonymous function)         	router.js:425
dispatch                     	index.js:42
(anonymous function)         	index.js:34
dispatch                     	router.js:430
dispatch                     	index.js:42
bodyParser                   	index.js:78
processTicksAndRejections    	task_queues:95
Async call from await
dispatch                     	index.js:42
(anonymous function)         	index.js:34
handleRequest                	application.js:186
handleRequest                	application.js:157
emit                         	events:511
emit                         	domain:489
parserOnIncoming             	_http_server:1105
parserOnHeadersComplete      	_http_common:119
Async call from HTTPINCOMINGMESSAGE
init                         	inspector_async_hook:25
emitInitNative               	async_hooks:202
connectionListenerInternal   	_http_server:638
defaultTriggerAsyncIdScope   	async_hooks:465
connectionListener           	_http_server:611
emit                         	events:511
emit                         	domain:489
onconnection                 	net:2095
callbackTrampoline           	async_hooks:130
Async call from TCPSERVERWRAP
init                         	inspector_async_hook:25
emitInitNative               	async_hooks:202
createServerHandle           	net:1736
setupListenHandle            	net:1779
listenInCluster              	net:1860
Server.listen                	net:1948
listen                       	application.js:88
(anonymous function)         	app.ts:469
Module._compile              	loader:1267
m._compile                   	index.ts:1618
Module._extensions..js       	loader:1321
require.extensions.<computed>	index.ts:1621
Module.load                  	loader:1125
Module._load                 	loader:965
executeUserEntryPoint        	run_main:83
phase4                       	bin.ts:649
bootstrap                    	bin.ts:95
main                         	bin.ts:55
(anonymous function)         	bin.ts:800
Module._compile              	loader:1267
Module._extensions..js       	loader:1321
Module.load                  	loader:1125
Module._load                 	loader:965
executeUserEntryPoint        	run_main:83
(anonymous function)         	run_main_module:23

Error: fetchPools(): Error: Issue with multicall execution.
(anonymous function)     	poolCacher.ts:58
rejected                 	tslib.es6.js:72
processTicksAndRejections	task_queues:95

please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant