1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6777],{86777:(e,t,a)=>{a.d(t,{getMultipleV2LiquidityBalances:()=>n});var r=a(6485),l=a(20258);async function n(e,t){if(0===t.length)return[];try{let a=t.map(e=>{let{pairAddress:t,userAddress:a}=e;return{address:t,abi:l.Oq,functionName:"balanceOf",args:[a]}});return console.log("Fetching ".concat(a.length," LP token balances via multicall...")),(await (0,r.I)(e,{contracts:a})).map((e,a)=>{var r;return"success"===e.status&&e.result?e.result.toString():(console.warn("Failed to fetch balance for pair ".concat(null==(r=t[a])?void 0:r.pairAddress,":"),e.error),"0")})}catch(e){return console.error("Failed to fetch multiple liquidity balances via multicall:",e),t.map(()=>"0")}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.