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) 522 B
import{f as a}from"./chunk-5W737WN4.js";a();var o={"Multi swap disabled!":"Smart Swaps are temporarily disabled. We suggest using an alternative route to perform the token swap.","Spread too big!":"Smart Swap not possible because you would lose more than $placeholder_percentage%."},p=({serviceError:r,lossPercentage:n=""})=>{if(!r)return;let s="No trade route found.",e=Object.keys(o).find(t=>r.includes(t));return e?o[e].replace("$placeholder_percentage",n):s};export{p as a}; //# sourceMappingURL=chunk-QVRESOVQ.js.map