PageSourceSearch

https://aerodrome.finance/assets/usePositions.worker-CsS-UruZ.js

js aerodrome.finance collected 2026-09-24 19:55:56 UTC 988 bytes, 1 lines download raw bytes

1import{eO as m,eP as o,D as I,aU as P,aG as C,ac as L}from"./index-Chd_Wa1n.js";import{p as w}from"./position-CRLzhpx6.js";async function B(i,e,n,r){if(!n[i.id])return[];const{limit:s,upperBound:d}=await m(i),[u,k]=await Promise.all([o({limit:s,upperBound:d,fetchData:c(i,e,"positions")}),i.id===I.id?o({limit:10,upperBound:300,canLoadMore:!0,fetchData:c(i,e,"positionsUnstakedConcentrated")}):Promise.resolve([])]),g=[...u,...k];return n[i.id].map(t=>{const p=r.all[`${t.chainId}:${t.token0.toLowerCase()}`],f=r.all[`${t.chainId}:${t.token1.toLowerCase()}`];return g.filter(a=>`${i.id}:${a.lp.toLowerCase()}`===t.superchainKey).map(a=>({...a,pool:t,token0:p,token1:f,apr:w(t.apr,t.tick,t.type,a.tick_lower,a.tick_upper),inRange:P({tick:t.tick,tickLow:a.tick_lower,tickHigh:a.tick_upper}).inRange,chainId:t.chainId}))}).flat()}function c(i,e,n){return(r,s)=>C({chainId:i.id,address:i.superchainConfig.sugar,abi:L,functionName:n,args:[BigInt(r),BigInt(s),e]})}export{B as fetchPositions};

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.