PageSourceSearch

https://aerodrome.finance/assets/epochs.worker-5_cNFdew.js

js aerodrome.finance collected 2026-10-02 06:15:23 UTC 1,184 bytes, 1 lines download raw bytes

1import{D as b,m as f,p as T,a as g,r as h,R as A}from"./contracts-DcsX1MC7.js";import{g as I,p as y}from"./pools-l3BMkjeo.js";import{fetchVeAPR as D}from"./ve.worker-D5jE1D9c.js";import"./execution-worker-Dc4cyUX5.js";import"./wagmi-VxofBtPD.js";import"./parseAbi-Dk3Ttnwp.js";async function L(t){const r=(c,e)=>h({chainId:t.id,address:t.superchainConfig.rewardsSugar,abi:A,functionName:"epochsLatest",args:[BigInt(c),BigInt(e)]}),{limit:m,upperBound:p}=await I(t);return y({limit:m,upperBound:p,fetchData:r})}async function B(t,r,m){const[p,c]=await Promise.all([L(t),D()]),e=r[`${b.id}:${m.toLowerCase()}`];if(!r||!e)return[];const a=e.decimals,l=s=>{let n=0n;return s.forEach(i=>{const o=r[`${t.id}:${i.token.toLowerCase()}`];o&&(n=n+f(i.amount,o.price,o.decimals))}),n};return(p||[]).map(s=>{const n=l(s.bribes),i=l(s.fees),o=n+i;if(o===0n||s.votes===0n)return{...s,tbv:n,tfv:i,tvv:o,veAPR:c,vapr:0n,emissionsTokenDecimals:a,emissionsTokenSymbol:e.symbol,chainId:t.id};const u=f(o,T("52",a),a),d=f(s.votes,e.price,a),v=g(d,u,a);return{...s,tbv:n,tfv:i,tvv:o,vapr:v,veAPR:c,emissionsTokenDecimals:a,emissionsTokenSymbol:e.symbol,chainId:t.id}})}export{B as fetchLatestPairEpochs};

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.