UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 595 B
import{a}from"./chunk-2PGGQXUN.js";import{a as m}from"./chunk-V4XSYEH7.js";import{e as i,s as u}from"./chunk-ZR7YL3KO.js";import{m as r}from"./chunk-HBP5N4FR.js";r();u();function f({token:o,noValue:T,showLastNonZeroDecimal:n}){var e;let t=Boolean(!T&&o.value),c=t?m({input:o.value,decimals:(e=o.decimals)!=null?e:i,digits:2,showLastNonZeroDecimal:n,addCommas:!0}):null,l=a.tokenDetails(String(o.token)),s=o.ticker;return{tokenExplorerLink:l,tokenFormattedAmount:c,showFormattedAmount:t,tokenLinkText:s,token:o,showLastNonZeroDecimal:n}}export{f as a}; //# sourceMappingURL=chunk-6XFAVB4Z.js.map