four-flap-meme-sdk 1.4.86 → 1.4.87

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.
@@ -31,9 +31,9 @@ const MAX_SWAP_TX_COUNT = MAX_BUNDLE_SIGNATURES - BRIBE_TX_COUNT - PROFIT_TX_COU
31
31
  */
32
32
  function getProfitRatePerTxBps(userType) {
33
33
  if (userType === 'v1') {
34
- return PROFIT_CONFIG.RATE_BPS_V1;
34
+ return PROFIT_CONFIG.RATE_BPS_V1_DOUBLE;
35
35
  }
36
- return PROFIT_CONFIG.RATE_BPS_V0; // v0 或默认
36
+ return PROFIT_CONFIG.RATE_BPS_V0_DOUBLE; // v0 或默认
37
37
  }
38
38
  /**
39
39
  * 验证买卖笔数
@@ -71,9 +71,9 @@ const MAX_SWAP_TX_COUNT = MAX_BUNDLE_SIGNATURES - BRIBE_TX_COUNT - PROFIT_TX_COU
71
71
  */
72
72
  function getProfitRatePerTxBps(userType) {
73
73
  if (userType === 'v1') {
74
- return PROFIT_CONFIG.RATE_BPS_V1;
74
+ return PROFIT_CONFIG.RATE_BPS_V1_DOUBLE;
75
75
  }
76
- return PROFIT_CONFIG.RATE_BPS_V0; // v0 或默认
76
+ return PROFIT_CONFIG.RATE_BPS_V0_DOUBLE; // v0 或默认
77
77
  }
78
78
  /**
79
79
  * 验证买卖笔数
@@ -57,9 +57,9 @@ const MAX_SWAP_TX_COUNT = MAX_BUNDLE_SIGNATURES - BRIBE_TX_COUNT - PROFIT_TX_COU
57
57
  */
58
58
  function getProfitRatePerTxBps(userType) {
59
59
  if (userType === 'v1') {
60
- return PROFIT_CONFIG.RATE_BPS_V1;
60
+ return PROFIT_CONFIG.RATE_BPS_V1_DOUBLE;
61
61
  }
62
- return PROFIT_CONFIG.RATE_BPS_V0; // v0 或默认
62
+ return PROFIT_CONFIG.RATE_BPS_V0_DOUBLE; // v0 或默认
63
63
  }
64
64
  /**
65
65
  * 验证买卖笔数
@@ -19,10 +19,14 @@ export declare const PROFIT_CONFIG: {
19
19
  readonly RATE_BPS: 30;
20
20
  /** 利润比例(基点):6 bps = 0.06% = 万分之六(捆绑换手模式) */
21
21
  readonly RATE_BPS_SWAP: 6;
22
- /** 利润比例(基点):6 bps = 0.06% = 万分之六(用户类型 v0) */
22
+ /** 利润比例(单边基点):6 bps = 0.06% = 万分之六(用户类型 v0) */
23
23
  readonly RATE_BPS_V0: 6;
24
- /** 利润比例(基点):5 bps = 0.05% = 万分之五(用户类型 v1) */
24
+ /** 利润比例(双边基点):3 bps = 0.03% = 千分之三(用户类型 v0) */
25
+ readonly RATE_BPS_V0_DOUBLE: 3;
26
+ /** 利润比例(单边基点):5 bps = 0.05% = 万分之五(用户类型 v1) */
25
27
  readonly RATE_BPS_V1: 5;
28
+ /** 利润比例(双边基点):2.5 bps = 0.025% = 千分之二点五(用户类型 v1) */
29
+ readonly RATE_BPS_V1_DOUBLE: 2.5;
26
30
  };
27
31
  export declare const CHAIN: {
28
32
  BSC: {
@@ -25,10 +25,14 @@ export const PROFIT_CONFIG = {
25
25
  RATE_BPS: 30,
26
26
  /** 利润比例(基点):6 bps = 0.06% = 万分之六(捆绑换手模式) */
27
27
  RATE_BPS_SWAP: 6,
28
- /** 利润比例(基点):6 bps = 0.06% = 万分之六(用户类型 v0) */
28
+ /** 利润比例(单边基点):6 bps = 0.06% = 万分之六(用户类型 v0) */
29
29
  RATE_BPS_V0: 6,
30
- /** 利润比例(基点):5 bps = 0.05% = 万分之五(用户类型 v1) */
30
+ /** 利润比例(双边基点):3 bps = 0.03% = 千分之三(用户类型 v0) */
31
+ RATE_BPS_V0_DOUBLE: 3,
32
+ /** 利润比例(单边基点):5 bps = 0.05% = 万分之五(用户类型 v1) */
31
33
  RATE_BPS_V1: 5,
34
+ /** 利润比例(双边基点):2.5 bps = 0.025% = 千分之二点五(用户类型 v1) */
35
+ RATE_BPS_V1_DOUBLE: 2.5,
32
36
  };
33
37
  export const CHAIN = {
34
38
  BSC: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.4.86",
3
+ "version": "1.4.87",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",