diff --git a/.changeset/nice-eyes-enjoy.md b/.changeset/nice-eyes-enjoy.md new file mode 100644 index 000000000..8d417185a --- /dev/null +++ b/.changeset/nice-eyes-enjoy.md @@ -0,0 +1,5 @@ +--- +'@xchainjs/xchain-mayachain-amm': patch +--- + +doSwap streaming parameters bug fix diff --git a/packages/xchain-mayachain-amm/src/mayachain-amm.ts b/packages/xchain-mayachain-amm/src/mayachain-amm.ts index 597ac347f..492a0880f 100644 --- a/packages/xchain-mayachain-amm/src/mayachain-amm.ts +++ b/packages/xchain-mayachain-amm/src/mayachain-amm.ts @@ -217,6 +217,8 @@ export class MayachainAMM { affiliateAddress, affiliateBps, toleranceBps, + streamingInterval, + streamingQuantity, }: QuoteSwapParams): Promise { const quoteSwap = await this.estimateSwap({ fromAsset, @@ -227,6 +229,8 @@ export class MayachainAMM { affiliateAddress, affiliateBps, toleranceBps, + streamingInterval, + streamingQuantity, }) // Check if the swap can be performed if (!quoteSwap.canSwap) throw Error(`Can not swap. ${quoteSwap.errors.join(' ')}`)