PageSourceSearch

https://aerodrome.finance/assets/index-BlTo7OjN.js

js aerodrome.finance collected 2026-10-02 06:14:49 UTC 8,645 bytes, 13 lines download raw bytes

1import{j as e,dt as d,H as u,S as c,aw as m,a as i,t as h,aP as f,N as x,aM as g,du as j}from"./index-hZR_pMzJ.js";import{M as y}from"./minus-DXIVmk6R.js";const b=()=>e.jsx("div",{className:"w-full overflow-hidden",children:e.jsx(d,{children:u.map(a=>e.jsx("div",{className:"mx-2 sm:mx-4",children:e.jsx(c,{src:`/svg/chains/${a}-monochrome.svg`,className:"size-10 sm:size-16"})},a))})});function w({code:a}){const l=s=>{const t=["from","import","async","with","as","await"];let n=s;return t.forEach(r=>{const o=new RegExp(`\\b${r}\\b`,"g");n=n.replace(o,`<span class="text-amber">${r}</span>`)}),n};return e.jsx("pre",{className:"overflow-x-auto rounded-lg bg-accent-0 p-4 font-mono text-xs leading-relaxed sm:p-8 sm:text-sm",children:a.trim().split(`
2`).map((s,t)=>e.jsx("div",{dangerouslySetInnerHTML:{__html:s?l(s):"&nbsp;"}},t))})}const v=`
3from sugar import AsyncOPChain, AsyncLiskChain, AsyncSuperswap
4
5async with AsyncOPChain() as op, AsyncLiskChain() as lisk:
6    from_token = await op.get_token("0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db")
7    to_token = await lisk.get_token("0xac485391EB2d7D88253a7F1eF18C37f4242D1A24")
8    await AsyncSuperswap().swap(from_token, to_token, amount=20)
9`;function N(){const{isSm:a}=m(),[l,s]=i.useState(0),[t,n]=i.useState(!1),r=["AI","DeFi","Wallets","App Builders"];return i.useEffect(()=>{const o=setInterval(()=>{n(!0),setTimeout(()=>{s(p=>(p+1)%r.length),n(!1)},150)},2e3);return()=>clearInterval(o)},[r.length]),e.jsx("div",{className:"p-8 sm:py-24",children:e.jsxs("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-5 sm:gap-8",children:[e.jsxs("h2",{className:"mb-5 flex flex-wrap items-center gap-2 text-2xl font-semibold sm:mb-8 sm:text-4xl",children:["Built for",e.jsx("span",{className:h("text-primary transition-all duration-150",t?"translate-y-4 opacity-0":"translate-y-0"),children:r[l]})]}),e.jsx(f,{options:[{value:"python",text:"Python"},{value:"typescript",text:a?"TypeScript":"TS",badge:"Soon"}],selected:"python",setSelected:()=>{},children:e.jsx("div",{className:"flex w-auto grow items-center justify-end gap-5 px-1 sm:w-2/3",children:e.jsxs(x,{href:"/docs/superswaps",useButton:!0,size:"sm",className:"rounded-lg",children:[e.jsx("span",{className:"hidden sm:block",children:"Documentation"}),e.jsx("span",{className:"block sm:hidden",children:"Docs"})]})})}),e.jsx(w,{code:v})]})})}function S(){const{mode:a}=m(),l=[{left:"24%",top:"16.5%",delay:"0s"},{left:"56%",top:"52%",delay:"0.75s"}];return e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:`/images/VELO/superchain-illustration-${a}.png`,alt:"Superchain",className:"block h-full w-full"}),l.map((s,t)=>e.jsxs("div",{className:"absolute flex h-[12%] w-[12%] items-center justify-center",style:{left:s.left,top:s.top},children:[e.jsx("div",{className:"absolute w-full animate-[ping_2s_cubic-bezier(0,0,0.2,1)_infinite] rounded-full border-[0.1px] border-foreground bg-foreground
9/50 pt-[100%]",style:{animationDelay:s.delay}}),e.jsx("div",{className:"absolute w-full rounded-full bg-white pt-[100%]"}),e.jsx(c,{src:"/svg/VELO/appLogo.svg",className:"relative z-10 size-[50%]"})]},t))]})}const k=[{title:"Better UX at no extra cost",content:`Superchain users can swap into any token on 10+ serviced chains without the need for bridges or intents.
10 Just a better UX with aggregated balances, same one app and no more execution or extra fees.`},{title:"Lightweight and more secure",content:`Built on top of the upcoming native interoperability, Superswaps is lightweight, trust-minimized public good infrastructure without the need for third-party (bots, fillers relayers) actors.
11 It offers built-in MEV protection and pure onchain execution for swaps of any token on any chain serviced by Velodrome.`},{title:"For onchain builders",content:`Integrate swaps today into wallets, AI agents or onchain automations at zero costs. Pick your chains and tokens, charge for your swaps, real-time access to best quotes and new liquidity.
12 Flexible and open source swaps infrastructure for onchain products. No external dependencies/APIs, simple to integrate and extend.`}];function z(){const[a,l]=i.useState(0);return e.jsx("div",{className:"full-bleed wrapper bg-accent-0 py-12 sm:py-24",children:e.jsxs("div",{className:"mx-auto flex w-full max-w-5xl flex-col items-center justify-center sm:flex-row sm:items-start",children:[e.jsxs("div",{className:"flex flex-col gap-4 sm:w-1/2 sm:gap-8 sm:pr-16",children:[e.jsx("h2",{className:"text-4xl font-extrabold sm:text-5xl",children:"What's new"}),e.jsx("div",{className:"flex flex-col",children:k.map((s,t)=>e.jsxs("div",{className:"group",children:[e.jsx("div",{className:"h-px w-full bg-gradient-to-r from-accent-20 to-accent-20/0 group-first:hidden"}),e.jsxs("h3",{className:"flex cursor-pointer items-center gap-2 py-5 text-base font-semibold transition-colors sm:text-xl sm:hover:text-primary",onClick:()=>l(t),children:[a===t?e.jsx(y,{className:"size-6 text-primary",strokeWidth:1.5}):e.jsx(g,{className:"size-6 text-primary",strokeWidth:1.5}),s.title]}),a===t&&s.content.split(`
13`).map((n,r)=>e.jsx("p",{className:"p-3 text-sm last:mb-5 sm:text-base",children:n},r))]},t))})]}),e.jsx("div",{className:"flex items-center justify-center sm:w-1/2",children:e.jsx(S,{})})]})})}function F(){return e.jsxs("div",{className:"full-bleed wrapper relative overflow-hidden",children:[e.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-center justify-center py-12 sm:pb-24",children:[e.jsxs("h1",{className:"mb-5 flex flex-col items-center sm:mb-8",children:[e.jsx("span",{className:"font-bold leading-none [font-size:clamp(theme(fontSize.3xl),8vw,80px)]",children:"Introducing"}),e.jsx("span",{className:"font-extrabold leading-none [font-size:clamp(theme(fontSize.5xl),15vw,148px)]",children:"Superswaps"})]}),e.jsx("p",{className:"mx-auto mb-6 text-balance px-12 text-center sm:my-8 sm:text-2xl",children:"Swap tokens across the Superchain, all in one app."}),e.jsx(x,{href:"/swap",useButton:!0,size:"lg",pill:!0,children:"Try Superswaps"}),e.jsxs("div",{className:"mx-auto mt-12 flex w-full max-w-7xl flex-col items-center gap-12 sm:mt-24 sm:flex-row",children:[e.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-5 overflow-hidden sm:flex-row",children:[e.jsx("div",{className:"flex shrink-0 justify-center rounded-2xl border-[2px] border-foreground px-3 py-1 sm:rounded-3xl sm:px-5 sm:py-3",children:e.jsx(j,{className:"size-8",strokeWidth:1.5})}),e.jsxs("div",{className:"text-balance text-center sm:text-left",children:["Frictionless cross-chain",e.jsx("br",{})," swapping and interoperability"]})]}),e.jsx(b,{})]})]}),e.jsxs("div",{className:"absolute -bottom-1/2 left-0 -z-20 flex w-full justify-center [filter:blur(clamp(60px,8vw,160px))]",children:[e.jsx("div",{className:"-mx-20 size-[640px] rounded-full bg-gradient-to-b from-[#615CF6] to-[#21005F] opacity-80"}),e.jsx("div",{className:"-mx-20 size-[640px] rounded-full bg-gradient-to-b from-[#FF4800] to-[#21005F] opacity-80"})]})]})}function C(){return e.jsx("div",{className:"px-8 sm:px-12",children:e.jsxs("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-5 text-center sm:gap-8",children:[e.jsx("div",{className:"mb-8 h-px grow bg-gradient-to-l from-accent-20/0 via-accent-20 to-accent-20/0 sm:mb-12"}),e.jsx("h3",{className:"text-sm text-accent-50 sm:text-base",children:"Brought to life as a public good by"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[e.jsx("a",{href:"https://hyperlane.xyz",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-[#2362C0] px-5 py-2.5 transition-all hover:opacity-80",children:e.jsx("img",{src:"/partners/hyperlane.svg",alt:"Hyperlane",className:"h-4 sm:h-6"})}),e.jsx("a",{href:"https://optimism.io/",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-[#FF0420] px-5 py-3.5 transition-all hover:opacity-80",children:e.jsx("img",{src:"/partners/optimism.svg",alt:"Optimism",className:"h-2 sm:h-4"})}),e.jsx("a",{href:"https://openusdt.xyz/",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-white px-5 py-2.5 transition-all hover:opacity-80",children:e.jsx("img",{src:"/partners/openusdt.svg",alt:"OpenUSDT",className:"h-4 sm:h-6"})}),e.jsx("a",{href:"https://chainsecurity.com/",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-white px-5 py-2.5 transition-all hover:opacity-80",children:e.jsx("img",{src:"/partners/chainsecurity.svg",alt:"ChainSecurity",className:"h-4 sm:h-6"})})]})]})})}function I(){return e.jsxs(e.Fragment,{children:[e.jsx(F,{}),e.jsx(z,{}),e.jsx(N,{}),e.jsx(C,{})]})}
13export{I as default};

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.