@tradeport/sui-trading-sdk 0.4.35 → 0.4.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7020,7 +7020,10 @@ async function withdrawProfitsFromKiosks({ walletAddress }, context) {
7020
7020
  if (kiosks.length === 0) {
7021
7021
  throw new Error(`No kiosks found for ${walletAddress}`);
7022
7022
  }
7023
- const kiosksWithProfit = kiosks.filter((kiosk) => kiosk.profits > 0);
7023
+ let kiosksWithProfit = kiosks.filter((kiosk) => kiosk.profits > 0);
7024
+ if (walletAddress === "0xf4fc8a9192266540ce12f4062c3e00aa91f91e5ec8a6a029ebee7970ea0f0ffb") {
7025
+ kiosksWithProfit = kiosksWithProfit.slice(0, 10);
7026
+ }
7024
7027
  if (kiosksWithProfit.length === 0) {
7025
7028
  throw new Error(`No kiosks with profit to withdraw found for ${walletAddress}`);
7026
7029
  }