pump-trader 1.0.4 → 1.0.5

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
@@ -792,7 +792,8 @@ class PumpTrader {
792
792
  DISCRIMINATORS.BUY,
793
793
  u64(baseAmountOut),
794
794
  u64(maxQuoteAmountIn),
795
- Buffer.from([1, 1])
795
+ // trackVolume = Some(false) to avoid recent overflow path in pump-amm buy accounting
796
+ Buffer.from([1, 0])
796
797
  ])
797
798
  });
798
799
  }
package/index.js CHANGED
@@ -1144,7 +1144,7 @@ export class PumpTrader {
1144
1144
  DISCRIMINATORS.BUY,
1145
1145
  u64(baseAmountOut),
1146
1146
  u64(maxQuoteAmountIn),
1147
- Buffer.from([1, 1]) // trackVolume = Some(true)
1147
+ Buffer.from([1, 0]) // trackVolume = Some(false)
1148
1148
  ])
1149
1149
  });
1150
1150
  }
package/index.ts CHANGED
@@ -1257,7 +1257,8 @@ export class PumpTrader {
1257
1257
  DISCRIMINATORS.BUY,
1258
1258
  u64(baseAmountOut),
1259
1259
  u64(maxQuoteAmountIn),
1260
- Buffer.from([1, 1])
1260
+ // trackVolume = Some(false) to avoid recent overflow path in pump-amm buy accounting
1261
+ Buffer.from([1, 0])
1261
1262
  ])
1262
1263
  });
1263
1264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pump-trader",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "PumpFun 交易库 - 自动判断 Token Program 和内盘/外盘",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",