four-flap-meme-sdk 1.9.21 → 1.9.22

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.
@@ -165,9 +165,18 @@ export function validateLaunchParams(params) {
165
165
  if (params.buybackRate < 0n || params.buybackRate > RATE_BASE) {
166
166
  errors.push(`buybackRate ${params.buybackRate} out of range [0, ${RATE_BASE}]`);
167
167
  }
168
+ if (params.buybackRate > 0n && params.buybackPath.length === 0) {
169
+ errors.push('buybackPath must not be empty when buybackRate > 0');
170
+ }
168
171
  if (params.lpAddRate < 0n || params.lpAddRate > RATE_BASE) {
169
172
  errors.push(`lpAddRate ${params.lpAddRate} out of range [0, ${RATE_BASE}]`);
170
173
  }
174
+ if (params.whitelistEnabled && params.whitelistAddrs.length === 0) {
175
+ errors.push('whitelistAddrs must not be empty when whitelistEnabled is true');
176
+ }
177
+ if (params.inviteCodeEnabled && params.inviteCodes.length === 0) {
178
+ errors.push('inviteCodes must not be empty when inviteCodeEnabled is true');
179
+ }
171
180
  if (params.vestingAmount > 0n) {
172
181
  if (params.vestingReleaseEndTime < params.vestingLockEndTime) {
173
182
  errors.push('vestingReleaseEndTime must be >= vestingLockEndTime');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",