PageSourceSearch

https://sunswap.com/static/js/6320.0ec76d2cd8ee27dbeb93.js

js sunswap.com collected 2026-10-03 22:50:08 UTC 5,806 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkswap_front=globalThis.webpackChunkswap_front||[]).push([[6320],{6320(e,s,t){t.r(s),t.d(s,{default:()=>_});var a,n=t(96540),r=t(36607),l=t(77668),i=t(33723),o=t(6406),d=t(68505),c=t(31416),u=t(49027),h=t(29724),m=t(81350),y=t(79054),g=t(43918),x=t(98377),b=t(74848);const{getBurnLog:k,getBuyBackList:p}=y.A,j=(0,r.WQ)("network")(a=(0,r.WQ)("pool")(a=(0,r.PA)(a=class extends n.Component{constructor(e){super(e),this.getDestroyData=async()=>{const e=await k(),s=e?.data||{},{alreadyBurned:t,alreadyPurchase:a,alreadyPurchaseUnBurned:n,logs:r,calculated:l,sunPrice:i}=s;let o=r?.map(e=>({key:e.id,blockTime:e.blockTime,tokenAmount:new m.gH(e.tokenAmount).div(1e18),hash:e.txId}));this.setState({bought:new m.gH(a).div(1e18),not_burned:new m.gH(n).div(1e18),burned:new m.gH(t).div(1e18),tableData:o,calculated:new m.gH(l).div(1e18),sunPrice:i})},this.getBuyBackList=async()=>{const e=await p(),{logs:s}=e.data;let t=s.map(e=>({key:e.id,blockTime:e.blockTime,tokenAmount:e.tokenAmount,hash:e.txId}));this.setState({buyBackTableData:t})},this.getColumns=()=>[{title:i.Ay.get("sun_destroy.txn_hash"),dataIndex:"hash",key:"hash",render:e=>(0,b.jsx)("div",{className:"hash",onClick:()=>this.toTronScanDetail(e),children:(0,m.it)(e,6,6)})},{title:i.Ay.get("sun_destroy.burned_amount"),dataIndex:"tokenAmount",key:"tokenAmount",render:e=>(0,b.jsxs)(b.Fragment,{children:[(0,m.ZV)(e,4,!0,1e-4,!1),(0,b.jsx)("span",{className:"bold",children:" SUN"})]})},{title:i.Ay.get("sun_destroy.burned_time"),key:"blockTime",dataIndex:"blockTime",render:e=>new Date(e).format("yyyy-MM-dd hh:mm")}],this.getColumnsBuyBack=()=>[{title:i.Ay.get("sun_destroy.txn_hash"),dataIndex:"hash",key:"hash",render:e=>(0,b.jsx)("div",{className:"hash",onClick:()=>this.toTronScanDetail(e),children:(0,m.it)(e,6,6)})},{title:i.Ay.get("sun_destroy.buy_back_num"),dataIndex:"tokenAmount",key:"tokenAmount",render:e=>(0,b.jsxs)(b.Fragment,{children:[(0,m.ZV)(e,4,!0,1e-4,!1),(0,b.jsx)("span",{className:"bold",children:" SUN"})]})},{title:i.Ay.get("sun_destroy.buy_back_time"),key:"blockTime",dataIndex:"blockTime"}],this.toTronScanDetail=e=>{window.open(`${u.A.tronscanUrl}/transaction/${e}?lang=${this.state.lang}`,"tronscan"+e)},this.state={lang:window.localStorage.getItem("lang")||i.Ay.options.currentLocale,showRules:!1,bought:"",not_burned:"",burned:"",tableData:[],buyBackTableData:[],isMobile:(0,l.A)(window.navigator).any}}componentDidMount(){this.props.network.setData({defaultSelectedKeys:"destroySun"}),this.getBuyBackList(),this.getDestroyData()}render(){const{bought:e,not_burned:s,burned:t,tableData:a,calculated:n,sunPrice:r,buyBackTableData:u}=this.state;return(0,b.jsxs)("div",{className:l.A?"":"flex",children:[(0,b.jsx)(h.A,{}),(0,b.jsxs)(o.A,{className:"destroy-sun-home",children:[(0,b.jsxs)("h1",{className:"page-title",children:[i.Ay.get("sun_destroy.buyback"),(0,b.jsx)("span",{children:"V2"})]}),(0,b.jsx)("h3",{className:"page-subtitle",children:i.Ay.get("sun_destroy.deflation")}),(0,b.jsxs)("section",{className:"view-data",children:[(0,b.jsxs)("div",{className:"view-data-header",children:[(0,b.jsx)("span",{children:i.Ay.get("sun_destroy.statistics")}),(0,b.jsx)("span",{className:"rules",onClick:()=>{this.setState({showRules:!0})},children:i.Ay.get("sun_destroy.rules")})]}),(0,b.jsxs)(d.A,{className:"rules-modal",title:i.Ay.get("sun_destroy.buyback_burn_rules"),visible:this.state.showRules,footer:null,onCancel:()=>{this.setState({showRules:!1})},getContainer:!1,children:[(0,b.jsxs)("p",{children:[" ",i.Ay.get("sun_destroy.tips1")]}),(0,b.jsx)("br",{}),(0,b.jsx)("p",{children:i.Ay.get("sun_destroy.tips2")})]}),(0,b.jsxs)("div",{className:"view-data-content",children:[(0,b.jsxs)("div",{className:"view-data-item",children:[(0,b.jsxs)("p",{className:"name",children:[" ",i.Ay.get("sun_destroy.tobe_burned")]}),(0,b.jsxs)("p",{className:"value",children:[(0,m.ZV)(n,2,!1,.01)," SUN"]}),(0,b.jsxs)("p",{className:"value-usd",children:["≈ $",(0,m.ZV)((0,m.gH)(n).times(r),0)]})]}),(0,b.jsxs)("div",{className:"view-data-item",children:[(0,b.jsx)("p",{className:"name",children:i.Ay.get("sun_destroy.burned")}),(0,b.jsxs)("p",{className:"value",children:[(0,m.ZV)(t,2,!1,.01)," SUN"]}),(0,b.jsxs)("p",{className:"value-usd",children:["≈ $",(0,m.ZV)((0,m.gH)(t).times(r),0)]})]})]})]}),(0,b.jsx)("h2",{className:"destroy-record-header",children:i.Ay.get("sun_destroy.burn_history")}),(0,b.jsx)("section",{className:"destroy-record",children:(0,b.jsx)(c.A,{className:"destroy-record-table",columns:this.getColumns(),dataSource:a,scroll:{x:1e3},locale:{emptyText:i.Ay.get("no_token_found")},pagination:{position:["bottomCenter"],size:"small",maxShowPage:2,pageSize:5,showSizeChanger:!1,defaultCurrent:1,itemRender:(e,s,t)=>"prev"===s?(0,b.jsx)("a",{children:(0,b.jsx)("img",{src:g})}):"next"===s?(0,b.jsx)("a",{children:(0,b.jsx)("img",{src:x})}):t}})}),(0,b.jsx)("h2",{className:"destroy-record-header mt-20",children:i.Ay.get("sun_destroy.buy_back")}),(0,b.jsx)("section",{className:"destroy-record",children:(0,b.jsx)(c.A,{className:"destroy-record-table",columns:this.getColumnsBuyBack(),dataSource:u,scroll:{x:1e3},locale:{emptyText:i.Ay.get("no_token_found")},pagination:{position:["bottomCenter"],size:"small",maxShowPage:2,pageSize:5,showSizeChanger:!1,defaultCurrent:1,itemRender:(e,s,t)=>"prev"===s?(0,b.jsx)("a",{children:(0,b.jsx)("img",{src:g})}):"next"===s?(0,b.jsx)("a",{children:(0,b.jsx)("img",{src:x})}):t}})})]})]})}})||a)||a)||a;var A;const _=(0,r.WQ)("network")(A=(0,r.PA)(A=class extends n.Component{render(){return(0,b.jsx)("div",{children:(0,b.jsx)(j,{})})}})||A)||A},43918(e,s,t){e.exports=t.p+"static/media/triangle-left-active.4e550ac5d1cf9b11cb7a.svg"},98377(e,s,t){e.exports=t.p+"static/media/triangle-right-active.e12d8903c569dff6c9a1.svg"}}]);

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.