1import{ot as e,rt as t,t as n,w as r}from"./jsx-runtime-vlDczagz.js";import{Nn as i,r as a,t as o}from"./layout-1UWg9V41.js";import{o as s}from"./constants-Hr0ije_t.js";import{t as c}from"./get-meta-CJ8PcTDR.js";import{n as l,t as u}from"./call-to-action-primary-CP7YCyUO.js";var d=e(t(),1),f=n(),{desc:p,title:m}=s.usdcPayoutCost,h=({loaderData:e})=>e?c({desc:p,title:m,urls:e.urls}):[],g=e=>new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:2}).format(e),_=e=>`$${(e/1e6).toFixed(1)}M`,v=[{key:`monthlyVolume`,label:`Total Monthly Volume`,min:1e6,max:2e8,step:1e6,formatValue:e=>g(e)},{key:`avgPaymentSize`,label:`Average Payment Amount`,min:100,max:1e4,step:100,formatValue:e=>g(e)},{key:`rampFee`,label:`Ramp Fee`,min:.05,max:1,step:.01,formatValue:e=>`${e.toFixed(2)}%`},{key:`platformFee`,label:`Monthly Platform Fee`,min:500,max:1e4,step:100,formatValue:e=>g(e)}],y=[{header:`Fee Type`},{header:`Amount`}],b=[{label:`Ramp Fees`,getValue:e=>g(e.monthlyRampFees)},{label:`Monthly Platform Fee`,getValue:(e,t)=>g(t.platformFee)},{label:`Total Monthly Fees`,getValue:e=>g(e.monthlyTotalFees)},{label:`Total Annual Fees`,getValue:e=>g(e.annualFees)},{label:`Effective Fee Rate`,getValue:e=>`${e.effectiveFeeRate.toFixed(3)}%`}],x=r(function(){let[e,t]=(0,d.useState)({monthlyVolume:1e8,avgPaymentSize:2e3,rampFee:.2,platformFee:3e3}),n=Math.round(e.monthlyVolume/e.avgPaymentSize),r=(()=>{let t=e.monthlyVolume*(e.rampFee/100),n=t+e.platformFee,r=n*12;return{monthlyRampFees:t,monthlyTotalFees:n,annualFees:r,fiveYearFees:r*5,effectiveFeeRate:n/e.monthlyVolume*100}})();return(0,f.jsxs)(o,{children:[(0,f.jsx)(`section`,{className:`section-first`,children:(0,f.jsxs)(i.div,{variants:a,className:`container`,children:[(0,f.jsx)(`div`,{className:`eyebrow`,children:`Calculator`}),(0,f.jsx)(`h1`,{className:`h2 m-0`,children:`USDC Payout Cost`})]})}),(0,f.jsx)(`section`,{className:`section-sub`,children:(0,f.jsx)(`div`,{className:`container`,children:(0,f.jsxs)(i.div,{variants:a,children:[(0,f.jsx)(`div`,{className:`mb-12 grid gap-x-12 gap-y-6 md:grid-cols-2`,children:v.map(n=>(0,f.jsx)(`div`,{children:(0,f.jsx)(l,{label:n.label,value:e[n.key],min:n.min,max:n.max,step:n.step,formatValue:n.formatValue,onChange:r=>t({...e,[n.key]:r})})},n.key))}),(0,f.jsxs)(`div`,{className:`round border-border grid overflow-clip border md:grid-cols-12`,children:[(0,f.jsxs)(`div`,{className:`overflow-x-auto p-6 md:col-span-8`,children:[(0,f.jsx)(`h3`,{className:`mt-0 mb-6`,children:`Fee Breakdown`}),(0,f.jsxs)(`table`,{className:`m-0 w-full`,children:[(0,f.jsx)(`thead`,{children:(0,f.jsx)(`tr`,{children:y.map(({header:e},t)=>(0,f.jsx)(`th`,{className:`px-4 text-base leading-snug lg:whitespace-nowrap ${t===0?`text-left`:`text-right`}`,children:e},e))})}),(0,f.jsx)(`tbody`,{children:b.map(({label:t,getValue:n})=>(0,f.jsxs)(`tr`,{className:`border-border border-t`,children:[(0,f.jsx)(`td`,{className:`px-4 align-middle text-base whitespace-nowrap`,children:t}),(0,f.jsx)(`td`,{className:`px-4 text-right align-middle text-base whitespace-nowrap`,children:n(r,e)})]},t))})]})]}),(0,f.jsxs)(`div`,{className:`border-border bg-fill border-t p-6 md:col-span-4 md:border-t-0 md:border-l`,children:[(0,f.jsx)(`h3`,{className:`mt-0 mb-6`,children:`Total Costs (5 Years)`}),(0,f.jsxs)(`div`,{className:`xs:grid-cols-2 grid gap-8 md:!grid-cols-1`,children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`p`,{className:`text-foreground-muted mt-0 mb-3`,children:`Monthly Transactions`}),(0,f.jsx)(`p`,{className:`text-foreground m-0 !text-4xl font-semibold`,children:n.toLocaleString()})]}),(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`p`,{className:`text-foreground-muted mt-0 mb-3`,children:`Total Cost`}),(0,f.jsx)(`p`,{className:`text-foreground m-0 !text-4xl font-semibold`,children:_(r.fiveYearFees)})]})]})]})]})]})})}),(0,f.jsx)(i.div,{variants:a,initial:`hidden`,whileInView:`visible`,viewport:{once:!0},children:(0,f.jsx)(u,{heading:`Create a stablecoin. Together.`,subheading:`Collaborate, plan, and build with us.`,primaryBtn:`Talk to sales`,primaryBtnUrl:`/contact`,secondaryBtn:`View product`,secondaryBtnUrl:`/platform`})})]})});export{x as default,h as meta};
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.