Closed LittleLionMan closed 1 year ago
Can you link (or reference) the two cw20 assets as well as the pool?
Code that creates error in question: https://github.com/White-Whale-Defi-Platform/migaloo-bots/blob/98ac905a6fbb36df88e5f2976164e99abecbe870/src/juno/queries/getPoolState.ts#L87
Seems that we are using a { info: {} }
query when the CW20 token expects us to use { token_info: {} }
.
Please also share your POOLS
set in your environment.
This don't seem like a "pool" contract to me, can you comment with the address or the POOL variable from the config? (As @kaimen-sano suggests)
Yes, you guys are right. It was the token address. Interestingly I messed this up on two different occasions for one or more pools. Is there a better possibility to look up Pool addresses than directly in the repo https://github.com/CosmosContracts/junoswap-asset-list/blob/main/pools_list.json?
unfortunately not for junoswap no. For most other dexes like Astroport, White Whale you can query the "Factory" with the message {"pairs":{}} and it will return all pairs created by that factory, those are usually the pairs listed by that dex.
Tried to add the Posthuman - Juno pool and got this output: Error: Query failed with (18): Error parsing into type cw20_base_mintable::msg::QueryMsg: unknown variant
info
, expected one ofbalance
,token_info
,minter
,allowance
,all_allowances
,all_accounts
,marketing_info
,download_logo
: query wasm contract failed: invalid request at QueryClient.queryUnverified (.../node_modules/@cosmjs/stargate/build/queryclient/queryclient.js:107:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.queryContractSmart (.../node_modules/@cosmjs/cosmwasm-stargate/build/modules/wasm/queries.js:59:34) at async initPools (.../out/juno/queries/getPoolState.js:42:25) at async main (.../out/index.js:82:19)