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) 239 B
import{f as t}from"./chunk-5W737WN4.js";t();var f=({pairs:o,tokenRoute:n})=>n.map(r=>o.map(({firstToken:e,secondToken:i})=>[e,i]).flat().find(e=>e.identifier===r)).filter(Boolean);export{f as a}; //# sourceMappingURL=chunk-QHNNSNK5.js.map