1"use strict";(self["webpackChunkabracadabra_money"]=self["webpackChunkabracadabra_money"]||[]).push([[386],{4386:function(t,a,s){s.r(a),s.d(a,{default:function(){return U}});var e=function(){var t=this,a=t._self._c;return a("section",{staticClass:"analytics-block"},[t._m(0),a("div",{staticClass:"analistics-description"},[a("img",{staticClass:"line",attrs:{src:s(5607),alt:""}}),a("h3",{staticClass:"analistics-title"},[t._v("Analytics")]),a("div",{staticClass:"row"},[a("div",{staticClass:"tvl-wrap"},[t.totalValueLockedUsd?a("h4",{staticClass:"tvl-value"},[t._v("$"+t._s(t.totalValueLockedUsd))]):a("RowSkeleton",{attrs:{height:"45px"}}),a("p",{staticClass:"tvl-title"},[t._v("Total Value Locked")])],1),a("div",{staticClass:"total-list"},[a("div",{staticClass:"list-item"},[a("span",{staticClass:"item-marker"}),t.totalFeesGenerated?a("span",{staticClass:"item-value"},[t._v("$"+t._s(t.totalFeesGenerated))]):a("RowSkeleton",{attrs:{width:"65px"}}),a("span",{staticClass:"item-title"},[t._v("Total Fees Generated")])],1),a("div",{staticClass:"list-item"},[a("span",{staticClass:"item-marker"}),t.totalMimBorrowed?a("span",{staticClass:"item-value"},[t._v("$"+t._s(t.totalMimBorrowed))]):a("RowSkeleton",{attrs:{width:"65px"}}),a("span",{staticClass:"item-title"},[t._v("Total MIM Minted")])],1),a("div",{staticClass:"list-item"},[a("span",{staticClass:"item-marker"}),t.totalCollateralDeposited?a("span",{staticClass:"item-value"},[t._v("$"+t._s(t.totalCollateralDeposited))]):a("RowSkeleton",{attrs:{width:"65px"}}),a("span",{staticClass:"item-title"},[t._v("Total Collateral Deposited")])],1)])]),t._m(1)])])},l=[function(){var t=this,a=t._self._c;return a("div",{staticClass:"animation-wrap"},[a("img",{staticClass:"coins-animation",attrs:{src:s(1878),alt:""}}),a("div",{staticClass:"backlight"})])},function(){var t=this,a=t._self._c;return a("div",{staticClass:"analistics-btns"},[a("a",{staticClass:"button",attrs:{href:"https://analytics.abracadabra.money/",target:"_blank",rel:"noopener noreferrer"}},[a("img",{attrs:{src:s(4397),alt:""}}),t._v(" Analytics ")])])}],o=s(7188),i=s(7195),r=s(4582);const n="https://api.studio.thegraph.com/query/56065/",c=[1,10,56,250,2222,42161,43114],d=[1,250,42161,43114],u=[1],m={1:"cauldrons",10:"cauldrons-optimism",250:"cauldrons-fantom",42161:"cauldrons-arbitrum",43114:"cauldrons-avalanche"},p={1:"mspell",250:"mspell-fantom",42161:"mspell-arbitrum",43114:"mspell-avalanche"},v={spells:"spell",mspells:"mspell",sspells:"sspell"},y=t=>56===t?"https://api.studio.thegraph.com/query/56065/cauldrons-bsc/version/latest/":2222===t?"https://kava.graph.abracadabra.money/subgraphs/name/cauldrons":`${n}${m[t]}/version/latest/`,h=t=>`${n}${p[t]}/version/latest/`,k=t=>`${n}${v[t]}/version/latest/`,C=async()=>{const t="query MyQuery {\n protocols {\n totalFeesGenerated\n totalMimBorrowed\n totalValueLockedUsd\n }\n }",a=await Promise.all(c.map((async a=>{const{data:s}=await r.Z.post(y(a),{query:t});return s.data.protocols[0]})));return a.reduce(((t,a)=>(t.totalFeesGenerated+=+a.totalFeesGenerated,t.totalMimBorrowed+=+a.totalMimBorrowed,t.totalValueLockedUsd+=+a.totalValueLockedUsd,t)),{totalFeesGenerated:0,totalMimBorrowed:0,totalValueLockedUsd:0})},w=async()=>{const t="query MyQuery {\n mspells {\n totalValueLockedUsd\n }\n }",a=await Promise.all(d.map((async a=>{const{data:s}=await r.Z.post(h(a),{query:t});return{totalValueLockedUsd:+s.data.mspells[0].totalValueLockedUsd}})));return a.reduce(((t,a)=>t+ +a.totalValueLockedUsd),0)},f=async()=>{const t="query MyQuery {\n sspells {\n totalValueLockedUsd\n\n }\n }",a=await Promise.all(u.map((async()=>{const{data:a}=await r.Z.post(k("sspells"),{query:t});return{totalValueLockedUsd:+a.data.sspells[0].totalValueLockedUsd}})));return a.reduce(((t,a)=>t+ +a.totalValueLockedUsd),0)},_=async()=>{const t=await C(),a=await w(),s=await f();return{totalFeesGenerated:t.totalFeesGenerated,totalMimBorrowed:t.totalMimBorrowed,totalValueLockedUsd:t.totalValueLockedUsd+a+s,totalCollateralDeposited:t.totalValueLockedUsd}};var L={data(){return{analyticsData:null}},computed:{totalValueLockedUsd(){return this.analyticsData?o.Z.formatLargeSum(this.analyticsData.totalValueLockedUsd):0},totalFeesGenerated(){return this.analyticsData?o.Z.formatLargeSum(this.analyticsData.totalFeesGenerated):0},totalMimBorrowed(){return this.analyticsData?o.Z.formatLargeSum(this.analyticsData.totalMimBorrowed):0},totalCollateralDeposited(){return this.analyticsData?o.Z.formatLargeSum(this.analyticsData.totalCollateralDeposited):0}},async created(){this.analyticsData=await _()},components:{RowSkeleton:(0,i.RC)((()=>s.e(995).then(s.bind(s,8995))))}},b=L,g=s(1001),V=(0,g.Z)(b,e,l,!1,null,"6a1d3279",null),U=V.exports},4397:function(t,a,s){t.exports=s.p+"img/bars-icon.202f190c.svg"},5607:function(t,a,s){t.exports=s.p+"img/line.1c254404.svg"},1878:function(t,a,s){t.exports=s.p+"img/coins.f13cc7ea.gif"}}]);
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.