PageSourceSearch

https://borrower.saltlending.com/static/js/483.0eece894.chunk.js

js saltlending.com collected 2026-09-26 03:45:02 UTC 21,235 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkborrower_portal=self.webpackChunkborrower_portal||[]).push([[483],{20483:function(e,t,a){a.r(t),a.d(t,{default:function(){return $}});var n=a(90675),r=a(10467),o=a(65043),i=a(97508),s=a(91688),l=a(67088),c=a(87677),d=a(58432),u=a(92169),p=a(58168),h=a(5544),m=a(1991),w=a.n(m),A=a(75654),v=a(4226),C=a(20748),g=a(66132),y=a(29095),f=a(86126),W=a(63516),Y=a(17281),M=a(83290),b=(0,W.bk)({validateOnChange:!1,mapPropsToValues:function(e){return{amount:"",toAddress:"",twoFactorCode:"",stage:0,targetAddressType:"",rangeResponse:null,withdrawalType:"exact"}},handleSubmit:function(){var e=(0,r.A)((0,n.A)().mark((function e(t,a){var r,o,i,s,l,c,d,u;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.props,o=a.setStatus,i=a.setSubmitting,s=a.setFieldValue;try{l={targetAddressType:"Personal",maxValue:null,asset:r.symbol,minTargets:{},feeEstimate:new(w())(15).dividedBy(new(w())(r.price)).toString()},s("rangeResponse",l),s("stage",1)}catch(t){u=(null===(c=t.response)||void 0===c||null===(d=c.data)||void 0===d?void 0:d.body)||"",o(u)}i(!1);case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),validationSchema:function(e){return f.RZ((function(t){var a=(0,l.jl)(t.toAddress||"",e.symbol),n=a.isValid,r=a.error;return f.Ik().shape({toAddress:f.Yj().required("Address is required.").test({name:"toAddress",exclusive:!0,message:(0,l.Dd)(r),test:function(){return n}})})}))}});var S={requestWithdrawal:d.TJ,withdrawMax:d.zM},N=(0,i.Ng)((function(e,t){var a,n,r,o,i=e.loans,s=e.accounts,l=(0,y.yq)(s),c=null===t||void 0===t||null===(a=t.match)||void 0===a||null===(n=a.params)||void 0===n?void 0:n.id,d=(0,Y.sx)(c,l),u=(0,Y.yv)(i,d),p=null===l||void 0===l||null===(r=l.product)||void 0===r||null===(o=r.investment)||void 0===o?void 0:o.performanceLink;return{loanId:u.id,performanceLink:p}}),S)(b((function(e){var t,a;var n=e.errors,r=e.handleSubmit,i=e.handleBlur,s=e.handleChange,d=e.touched,u=e.type,m=e.values,w=null===(t=Array.from(l.HD.entries()).find((function(e){var t=(0,h.A)(e,2);t[0];return t[1].name===u})))||void 0===t?void 0:t[0];return(0,M.Y)(o.Fragment,null,0===m.stage&&(0,M.Y)("div",{className:"CMAWithdrawCrypto-layout"},(0,M.Y)("h1",{className:"Modal-title"},"Withdraw ",u),(0,M.Y)("form",{className:"CMAWithdrawCrypto-form",onSubmit:r,noValidate:!0},(0,M.Y)(c.R2,{className:"CMAWithdrawCrypto-warnBox",size:"sm",text:"Your first withdrawal of the month is free. For any additional requests within the same month, you will be charged a fee of 0.25% of the total withdrawal amount. Please allow up to 7 business days for us to send the withdrawal to your chosen destination address."}),(0,M.Y)(c.JU,{className:"CMAWithdrawCrypto-addressInput",text:"".concat(u," Address"),error:d.toAddress&&n.toAddress,isRequired:!0},(0,M.Y)(c.pd,{placeholder:"Enter Address",type:"text",id:"toAddress",name:"toAddress",hasError:d.toAddress&&!!n.toAddress,onChange:s,onBlur:i,value:m.toAddress})),(null===(a=e.status)||void 0===a?void 0:a.length)>0&&(0,M.Y)("p",{className:"CMAWithdrawCrypto-errorMessage"},e.status),(0,l.bc)(w||u)&&(0,M.Y)(c.Gr,{href:"https://faq.saltlending.com/en_us/how-do-i-fix-error-address-is-not-checksummed-HJ9H5jiB6",className:"CMAWithdrawCrypto-checksumLink"},"What is a checksummed address?"),(0,M.Y)(c.$n,{className:"CMAWithdrawCrypto-nextButton",loading:e.isSubmitting,text:"Next",type:"submit"}))),1===m.stage&&(0,M.Y)(z,(0,p.A)({},e,{withdrawalMin:m.rangeResponse.feeEstimate,handleStageChange:function(t){e.setFieldValue("stage",t)},handleWithdrawalTypeChange:function(t){e.setFieldValue("withdrawalType",t)},withdrawalType:m.withdrawalType,handleAmountChange:function(t){e.setFieldValue("amount",t)},toAddress:m.toAddress,smartContractAgreed:"Contract"!==m.rangeResponse.targetAddressType,feeEstimate:m.rangeResponse.feeEstimate})),2===m.stage&&(0,M.Y)(L,(0,p.A)({},e,{toAddress:m.toAddress,amount:m.amount,withdrawalType:m.withdrawalType,smartContractAgreed:"Contract"!==m.rangeResponse.targetAddressType,targetAddressType:m.rangeResponse.targetAddressType})))}))),x=a(80045),T=a(62582),k=a(84363),F=a(57574),H=["addToast","collateral","txCosts","type","isWithdrawalRangeLoading","getWalletTransactions","getNotifications","mfaEnabled","walletAddress","prices"],R=function(e){var t,a,n,r,s,d=e.addToast,u=e.collateral,m=e.txCosts,A=e.type,v=e.isWithdrawalRangeLoading,C=e.getWalletTransactions,g=e.getNotifications,f=e.mfaEnabled,W=e.walletAddress,b=e.prices,S=(0,x.A)(e,H),R=(0,o.useState)(!1),D=(0,h.A)(R,2),q=D[0],B=D[1],V=(0,o.useState)(!1),U=(0,h.A)(V,2),E=U[0],I=U[1],L=(0,i.d4)((function(e){return e})),P=L.loans,j=L.accounts,z=L.user,G=(0,y.yq)(j),O=null===S||void 0===S||null===(t=S.match)||void 0===t||null===(a=t.params)||void 0===a?void 0:a.id,$=(0,Y.sx)(O,G),J=(0,Y.yv)(P,$),_=(0,l.gV)(G,J),Z=!(0,l.A9)(z,_),K=function(){C(A),g(),B(!1),I(!1)},Q="iba"===(null===G||void 0===G||null===(n=G.product)||void 0===n||null===(r=n.investment)||void 0===r?void 0:r.type),X=(null===u||void 0===u||null===(s=u.transactions)||void 0===s?void 0:s.filter((function(e){return null===e.status})))||[],ee=parseFloat(null===u||void 0===u?void 0:u.projectedBalance)>0,te=ee?new(w())(u.projectedBalance).toFormat(l.HD.get(A).balanceDigits):"0",ae=!ee&&Q||X.length>0||"owner"!==G.role||Z||v;return(0,M.Y)("div",{className:"CMAWalletActionHeader","data-testid":"CMAWalletActionHeader"},(0,M.Y)("div",{className:"CMAWalletActionHeader-buttonGroup"},(0,M.Y)("div",{className:"CMAWalletActionHeader-valueGroup"},(0,M.Y)(F.h,{width:"100",height:"100"}),ee&&Q?(0,M.Y)("div",{className:"CMAWalletActionHeader-balanceGroup"},(0,M.Y)("span",{className:"CMAWalletActionHeader-balanceGroup-value","data-test":"CMAWalletActionHeader-balanceGroup-value"},te),(0,M.Y)("span",{className:"CMAWalletActionHeader-currency"},A.toUpperCase())):(0,M.Y)("div",{className:"CMAWalletActionHeader-helperText"}
1,"Deposit ",A.toUpperCase()," to Start Earning"),(0,M.Y)("p",{className:"CMAWalletActionHeader-text"},!Q&&"Check your email for weekly status reports with information on your earnings, total balance, and more. ","For any questions, email your Account Manager at"," ",(0,M.Y)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",className:"CMAWalletActionHeader-contact"},"[email protected]")))),Z&&(0,M.Y)("span",{className:"CMAWalletActionHeader-alert"},"You must"," ",(0,M.Y)(T.N_,{to:"/verification"},(0,M.Y)("u",null,"verify your identity"))," ","before you can deposit or withdraw."),u.isPendingMaxWithdraw&&(0,M.Y)("span",{className:"CMAWalletActionHeader-alert"},"Your request to withdraw all of the funds from your wallet is currently pending. Please wait until the withdrawal is completed or reach out to your Account Manager with any questions."),(0,M.Y)("div",{className:"CMAWalletActionHeader-buttonGroup--bottom"},f?(0,M.Y)(c.$n,{className:"CMAWalletActionHeader-button--action",dataTest:"CMAWalletActionHeader-button--deposit",disabled:Z||u.isPendingMaxWithdraw,onClick:function(){B(!0)},text:"Deposit"}):(0,M.Y)(c.z9,{to:"/account/security",className:"CMAWalletActionHeader-button--action",disabled:Z,matchBtnStyles:!0},"Deposit"),f?(0,M.Y)(c.$n,{className:"CMAWalletActionHeader-button--action CMAWalletActionHeader-button--space",dataTest:"CMAWalletActionHeader-button--withdraw",loading:v,disabled:ae||u.isPendingMaxWithdraw,onClick:function(){return I(!0)},text:"Withdraw"}):(0,M.Y)(c.z9,{to:"/account/security",className:"CMAWalletActionHeader-button--action CMAWalletActionHeader-button--space",disabled:ae},"Withdraw")),(0,M.Y)(c.aF,{title:"Deposit ".concat(A.toUpperCase()),closeModal:K,isOpen:!!q},(0,M.Y)(c.MF,S,(function(e){var t=e.collateralRequiredData;return(0,M.Y)(k.OC,{closeModal:K,collateralRequired:t[A.toUpperCase()],currency:A,wallet:u})}))),E&&(0,M.Y)(c.aF,{isOpen:E,closeModal:K},(0,M.Y)(N,(0,p.A)({addToast:d,closeModal:K,projectedBalance:new(w())((null===u||void 0===u?void 0:u.projectedBalance)||"0"),txCosts:m,symbol:A.toUpperCase(),type:l.HD.get(A).name,walletId:(null===u||void 0===u?void 0:u.id)||"",walletAddress:W,price:b["".concat(A,"-USD")].price,isIBA:Q},S))))},D=a(23029),q=a(92901),B=a(39874),V=a(85501),U=function(e){return["USDC","TUSD","SALT","PAX","USDT"].includes(e)},E=function(e){function t(){return(0,D.A)(this,t),(0,B.A)(this,t,arguments)}return(0,V.A)(t,e),(0,q.A)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.errors,n=t.handleSubmit,r=t.handleBlur,i=t.handleChange,s=t.isSubmitting,d=t.symbol,u=t.touched,p=t.type,h=t.values,m=t.amount,A=t.toAddress,v=t.withdrawalType;return(0,M.Y)(o.Fragment,null,(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-layout"},(0,M.Y)("h1",{className:"Modal-title"},"Review Withdrawal Request"),(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-wrapper"},(0,M.Y)(c.R2,{text:" Please allow up to 7 business days for us to send the withdrawal to your chosen destination address."}),(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-addressSection"},(0,M.Y)("h3",{className:"CMAWithdrawCryptoReviewStep-sectionTitle"},"Withdraw Amount"),(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-sectionData"},"exact"===v?"".concat(new(w())(m).toFormat(l.HD.get(d).balanceDigits)," ").concat(d):"Full ".concat(d," balance"))),(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-addressSection"},(0,M.Y)("h3",{className:"CMAWithdrawCryptoReviewStep-sectionTitle"},"Address"),(0,M.Y)("div",{className:"CMAWithdrawCryptoReviewStep-sectionData"},A)),(0,M.Y)("p",{className:"CMAWithdrawCryptoReviewStep-instructions"},"Please input your 2-Step Verification to finalize your withdrawal request."),(0,M.Y)(c.JU,{className:"CMAWithdrawCryptoReviewStep-twoFactorInput",text:"2-Step Verification Code",error:u.twoFactorCode&&a.twoFactorCode,isRequired:!0},(0,M.Y)(c.pd,{placeholder:"Enter Code",type:"tel",id:"twoFactorCode",name:"twoFactorCode",hasError:u.twoFactorCode&&!!a.twoFactorCode,onChange:i,onBlur:r,pattern:"\\d*",value:h.twoFactorCode})),"Litecoin"===p&&(0,M.Y)("p",{className:"CMAWithdrawCryptoReviewStep-description CMAWithdrawCryptoReviewStep-description--noSpace"},(0,M.Y)("i",null,'Note: To help ensure your funds are not lost, we only accept Litecoin addresses that start with "M" or "L"')),"Contract"===this.props.targetAddressType&&(0,M.Y)(c.Sc,{className:"CMAWithdrawCryptoReviewStep-checkbox",renderLabel:function(){return(0,M.Y)("p",{style:{lineHeight:"normal",display:"inline"}},(0,M.Y)("b",null,"WARNING:")," If you are sending ERC-20 tokens (including [SALT, USDC, TUSD, 'USDT']) to a smart contract, you must ensure that the receiving address can support such tokens and that you will have the ability to access such tokens after mov
1ing from the SALT platform. SALT Lending is not able to confirm or ensure that the smart contract address will support the tokens or that you will have access to such tokens after transfer. If you have any questions, please contact us at [email protected].")},size:"sm",checked:h.smartContractAgreed,onChange:function(){return e.props.setFieldValue("smartContractAgreed",!h.smartContractAgreed)}}),(0,M.Y)(c.$n,{className:"CMAWithdrawCryptoReviewStep-nextButton",disabled:!h.twoFactorCode||!h.smartContractAgreed,text:"Request Withdrawal",loading:s,onClick:n}))))}}])}(o.Component),I=(0,W.bk)({validateOnChange:!1,mapPropsToValues:function(e){return{amount:"",twoFactorCode:"",usdValue:"",smartContractAgreed:e.smartContractAgreed}},handleSubmit:function(){var e=(0,r.A)((0,n.A)().mark((function e(t,a){var r,o,i,s,c,d,u,p,h,m,A,v,C;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C=function(e){var t,a,n,r=(null===e||void 0===e||null===(t=e.response)||void 0===t||null===(a=t.data)||void 0===a||null===(n=a.body)||void 0===n?void 0:n.error)||"",i=(0,l.rO)(e,"response","status");o("invalid MFA code"===r?{twoFactorCode:"Invalid 2-Step Verification Code."}:{twoFactorCode:i>=500?"There was an interal server error. Please try again later.":"There was an error processing your withdrawal.".concat(U(d)?" Please ensure that you have sufficient gas.":"")})},v=function(){r.closeModal(),r.addToast({message:"Successfully submitted Withdrawal Request.",type:"success"})},r=a.props,o=a.setErrors,i=a.setSubmitting,s=r.requestWithdrawal,c=r.withdrawMax,d=r.symbol,u=r.walletId,p=r.toAddress,h=r.amount,m=r.withdrawalType,A=t.twoFactorCode,"exact"!==m){e.next=10;break}return e.next=8,s({currency:d,amount:new(w())(h).toString(),toAddress:p,xrpDestinationTag:null,twoFactorCode:A},u).then(v).catch(C);case 8:e.next=13;break;case 10:if("max"!==m){e.next=13;break}return e.next=13,c({currency:d,toAddress:p,twoFactorCode:A}).then(v).catch(C);case 13:i(!1);case 14:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()}),L=I(E),P=function(e){function t(){var e;(0,D.A)(this,t);for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(e=(0,B.A)(this,t,[].concat(n))).handleOnCryptoChange=function(t){var a=t.target.value.replace(/[$,]/g,""),n=Math.min(a,new(w())(1e10).div(e.props.price).toNumber());e.props.setFieldValue("amount",n.toString())},e.handleMaxClick=function(){e.props.setFieldValue("amount",e.props.projectedBalance.toString())},e}return(0,V.A)(t,e),(0,q.A)(t,[{key:"render",value:function(){var e=this.props,t=e.errors,a=e.handleSubmit,n=e.handleBlur,r=e.performanceLink,i=e.isSubmitting,s=e.symbol,d=e.touched,u=e.values,p=e.handleWithdrawalTypeChange,h=e.withdrawalType,m=e.isIBA,A=e.projectedBalance;return(0,M.Y)(o.Fragment,null,(0,M.Y)("div",{className:"CMAWithdrawCryptoAmountStep-layout"},(0,M.Y)("h1",{className:"Modal-title"},"Withdrawal Request"),(0,M.Y)("div",{className:"CMAWithdrawCryptoAmountStep-info"},m?(0,M.Y)("span",{className:"WithdrawCryptoAmountStep-number"},A.toFormat(l.HD.get(s).balanceDigits)," ",s):(0,M.Y)(o.Fragment,null,(0,M.Y)("span",{className:"CMAWithdrawCryptoAmountStep-text"},"The exact withdrawal amount may fluctuate slightly depending on when your invested funds are able to be unwound from their positions."),(0,M.Y)(c.z9,{className:"CMAWithdrawCryptoAmountStep-balanceBtn",to:r,isExternal:!0,theme:"secondary"},"Check Your Balance"))),!m&&(0,M.Y)(c.sx,{wrapperClassName:"CMAWithdrawCryptoAmountStep-radio",options:[{label:"Withdraw full balance of ".concat(s),value:"max"},{label:"Withdraw exact amount of ".concat(s),value:"exact"}],onChange:function(e,t){p(t.value)},name:"withdrawalType",selected:h,value:h}),"exact"===h&&(0,M.Y)(o.Fragment,null,(0,M.Y)(c.JU,{className:"CMAWithdrawCryptoAmountStep-amountInput",text:"How much ".concat(s," do you want to withdraw?"),error:d.amount&&t.amount,isRequired:!0,htmlFor:"amount"},(0,M.Y)("div",{className:"CMAWithdrawCryptoAmountStep-inputContainer"},(0,M.Y)(c.Q7,{className:"WithdrawCryptoAmountStep-input",id:"amount",name:"amount",thousandSeparator:!0,hasError:d.amount&&!!t.amount,onChange:this.handleOnCryptoChange,onBlur:n,value:new(w())(u.amount).dp(l.HD.get(s).balanceDigits).toString()}),(0,M.Y)("span",{className:"CMAWithdrawCryptoAmountStep-span"},s))),m&&(0,M.Y)("div",{className:"WithdrawCryptoAmountStep-info"}
1,(0,M.Y)(c.$n,{className:"WithdrawCryptoAmountStep-withdrawMax",theme:"link",text:"Withdraw max amount",type:"button",onClick:this.handleMaxClick}),(0,M.Y)(c.JU,{className:"WithdrawCryptoAmountStep-label"},"The maximum withdrawal can not exceed your current account balance."))),(0,M.Y)(c.$n,{className:"CMAWithdrawCryptoAmountStep-nextButton",disabled:""===u.amount&&"exact"===h,text:"Next",loading:i,onClick:a})))}}])}(o.Component),j=(0,W.bk)({validateOnChange:!1,mapPropsToValues:function(e){return{amount:"",twoFactorCode:"",usdValue:"",smartContractAgreed:e.smartContractAgreed,withdrawMax:e.isIBA?e.projectedBalance.toNumber():null,withdrawalMin:e.withdrawalMin}},handleSubmit:function(){var e=(0,r.A)((0,n.A)().mark((function e(t,a){var r,o,i,s,l;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.props,o=a.setSubmitting,i=r.handleStageChange,s=r.handleAmountChange,l=t.amount,i(2),"exact"===r.withdrawalType&&s(l),o(!1);case 6:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),validationSchema:function(e){return f.Ik().shape({amount:"max"===e.withdrawalType||f.ai().when("withdrawalMin",(function(t,a){var n=new(w())(t).times(new(w())(e.price)).toFormat(0);return t?a.min(t,"Withdrawal amount must be greater than $".concat(n)):a})).when("withdrawMax",(function(t,a){return e.isIBA?a.max(t,"Withdrawal Amount exceeds balance."):a})).moreThan(0,"Withdrawal Amount must be greater than 0.").required("Withdrawal Amount is required.")})}}),z=j(P);var G={addToast:g.$,cancelWithdrawal:d.U9,cancelWithdrawalVirtual:d.x1,clearPendingWithdrawal:d.yr,getBlockHeight:d.F3,getNotifications:C.Tr,getTxCost:d.qD,getWallets:d.dz,getWalletStatus:d.Ah,getWalletTransactions:d.Tu,getMe:v.jp},O=(0,s.y)((0,i.Ng)((function(e,t){var a=e.accounts,n=e.collateral,r=e.stats,o=e.user,i=t.match;return{account:(0,y.yq)(a),blockHeight:n.blockHeight,collateral:(0,u.uG)(n,i),idVerificationStatus:o.idVerificationStatus,prices:r.prices,type:i.params.coin,mfaEnabled:o.mfaEnabled}}),G)((function(e){var t,i,s,d,u,m,v,C,g,y,f,W=(0,o.useState)(!1),Y=(0,h.A)(W,2),b=Y[0],S=Y[1],N="iba"===(null===(t=e.account)||void 0===t||null===(i=t.product)||void 0===i||null===(s=i.investment)||void 0===s?void 0:s.type);function x(){return T.apply(this,arguments)}function T(){return(T=(0,r.A)((0,n.A)().mark((function t(){return(0,n.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S(!0),t.next=3,Promise.all([e.getMe(),e.getWallets(),e.getBlockHeight(e.type),e.getWalletTransactions(e.type)]);case 3:S(!1);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}(0,o.useEffect)((function(){x()}),[]);var F=e.collateral,H=e.prices,D=e.type,q=e.account,B=e.blockHeight;return(0,M.Y)("div",{className:"CMAWallet"},(0,M.Y)("div",{className:"CMAWallet-greetingContainer"},(0,M.Y)("span",{className:"CMAWallet-greeting"},N?"Welcome to your Interest Bearing Wallet!":"Welcome to your Kore Investment Wallet!")),(0,M.Y)("section",{className:"CMAWallet-content"},(0,M.Y)("header",{className:"CMAWallet-header"},(0,M.Y)("div",{className:"CMAWallet-headerGroup"},(0,M.Y)("div",{className:"CMAWallet-currencyGroup"},(0,M.Y)("img",{alt:"".concat(D," Icon"),src:a(28416)("./".concat(D.toUpperCase(),".svg")),className:"CMAWallet-icon"}),(null===H||void 0===H?void 0:H["".concat(D.toUpperCase(),"-USD")])&&(0,M.Y)("h2",{className:"CMAWallet-title"}," = $".concat(new(w())(H["".concat(D.toUpperCase(),"-USD")].price).toFormat(l.HD.get(D).priceDigits))),(0,M.Y)("span",{className:"CMAWallet-headerInfo"},(null===q||void 0===q||null===(d=q.product)||void 0===d||null===(u=d.investment)||void 0===u?void 0:u.performanceLink)&&(0,M.Y)(c.z9,{to:null===q||void 0===q||null===(m=q.product)||void 0===m||null===(v=m.investment)||void 0===v?void 0:v.performanceLink,isExternal:!0},"Check My Earnings"),(null===q||void 0===q||null===(C=q.product)||void 0===C||null===(g=C.investment)||void 0===g?void 0:g.interestRate)&&(0,M.Y)("span",null,"Your account is earning"," ",(0,M.Y)("span",{className:"CMAWallet-APR"},new(w())(null===q||void 0===q||null===(y=q.product)||void 0===y||null===(f=y.investment)||void 0===f?void 0:f.interestRate).times(100).toFormat(2),"%")," ","interest.")))))),(0,M.Y)("section",{className:"CMAWallet-content CMAWallet-actions"},(0,M.Y)(R,(0,p.A)({},e,{walletAddress:F.address}))),(null===F||void 0===F?void 0:F.transactions)&&(0,M.Y)(k.e9,{title:"Transaction History"},(0,M.Y)(k.Hf,{transactions:F.transactions.filter((function(e){return!(e.reason===A.h1.commingle||q.isLeveraged&&e.reason===A.h1.gas_transfer)}))||[],blockHeight:B[F.currency],type:D}),(0,M.Y)(c.JS,{height:"24px",width:"24px",loading:b,onClick:x})))}))),$=(0,i.Ng)((function(e){var t=e.accounts,a=e.user,n=(0,y.yq)(t),r=(0,l.gV)(n);return{account:n,idNotVerified:!(0,l.A9)(a,r)}}),{getActiveAccount:y.yq})((function(e){e.account;var t=e.idNotVerified,a=(0,i.wA)(),p=(0,i.d4)((function(e){return e.collateral.isFetched})),h=(0,i.d4)(u.HZ);(0,o.useEffect)((function(){var e=function(){var e=(0,r.A)((0,n.A)().mark((function e(){return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a((0,d.dz)());case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[a]);var m=h.map((function(e){return e.currency})),w=m.join("|");return(0,M.Y)(c.zh,null,h.length>1&&(0,M.Y)(c.rr,{links:h.map((function(e){return{to:"/wallet/".concat(e.currency),text:l.HD.get(e.currency).name}}))}),(0,M.Y)(s.dO,null,(0,M.Y)(s.qh,{exact:!0,path:"/wallet",render:function(){return t?(0,M.Y)(s.rd,{to:"/verification"}):m[0]?(0,M.Y)(s.rd,{to:"/wallet/:coin(".concat(m[0],")")}):void 0}}),(0,M.Y)(c.aM,{exact:!0,sensitive:!0,path:"/wallet/:coin(".concat(w,")"),component:O,pen
1ding:!p}),(0,M.Y)(s.qh,{sensitive:!0,path:"/wallet/:coin(".concat(w.toUpperCase(),")"),render:function(e){return(0,M.Y)(s.rd,{to:"/wallet/".concat(e.match.params.coin.toUpperCase())})}}),(0,M.Y)(s.qh,{path:"*",render:function(){var e;return(0,M.Y)(s.rd,{to:"/wallet/".concat((null===h||void 0===h||null===(e=h[0])||void 0===e?void 0:e.currency)||A.SY.BTC)})}})))}))}}]);

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.