UNPKG

@multiversx/sdk-dapp-swap

Version:

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

51 lines (46 loc) 1.05 kB
import{a as n}from"./chunk-BEGD3BIU.js";import{a as o}from"./chunk-7TLKU4MQ.js";import{f as e}from"./chunk-DKQLHRWP.js";e();import{gql as a}from"@apollo/client";var t="TRANSACTIONS_PLACEHOLDER",s=` transactions { ${o} } `,r=` query swapPackageSwapRoute ( $amountIn: String $amountOut: String $tokenInID: String! $tokenOutID: String! $tolerance: Float! ) { swap( amountIn: $amountIn amountOut: $amountOut tokenInID: $tokenInID tokenOutID: $tokenOutID tolerance: $tolerance ) { amountIn tokenInID tokenInPriceUSD tokenInExchangeRateDenom amountOut tokenOutID tokenOutPriceUSD tokenOutExchangeRateDenom fees swapType tokenRoute pricesImpact maxPriceDeviationPercent tokensPriceDeviationPercent intermediaryAmounts pairs { ${n} } ${t} } } `,I=a` ${r.replace(t,s)} `,k=a` ${r.replace(t,"")} `;export{I as a,k as b}; //# sourceMappingURL=chunk-26PTVGNW.js.map