UNPKG

@multiversx/sdk-dapp-swap

Version:

A library to hold the main logic for swapping between tokens on the MultiversX blockchain

3 lines (2 loc) 424 B
import{a as c}from"./chunk-QFD3NDSC.js";import{f as r,g as o}from"./chunk-KPPFFURF.js";import{a as e,d as a,e as i}from"./chunk-7OW72CTP.js";import{f as n}from"./chunk-5W737WN4.js";n();var _=s=>{let m=c(s),t=new r;t.minGasLimit=BigInt(e),t.gasPerDataByte=BigInt(a),t.gasPriceModifier=i;try{return new o().computeTransactionFee(m,t).toString(10)}catch(I){return 0}};export{_ as a}; //# sourceMappingURL=chunk-EPHOUI4V.js.map