@paraswap/dex-lib 2.35.7-worker-pool.3 → 2.36.0

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.
Files changed (187) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/build/abi/aerodrome/aerodrome-pool-factory.json +586 -0
  9. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  10. package/build/abi/curve-v1/StableSwapFRXETH.json +889 -0
  11. package/build/abi/curve-v1/StableSwapWBETH.json +1223 -0
  12. package/build/abi/sushiswap-v3/QuoterV2.json +267 -0
  13. package/build/abi/sushiswap-v3/RouterProcessor3.json +289 -0
  14. package/build/abi/wBETH.json +1527 -0
  15. package/build/config.js +2 -2
  16. package/build/dex/algebra/algebra-pool.d.ts +46 -0
  17. package/build/dex/algebra/algebra-pool.js +336 -0
  18. package/build/dex/algebra/algebra-pool.js.map +1 -0
  19. package/build/dex/algebra/algebra.js +5 -4
  20. package/build/dex/algebra/algebra.js.map +1 -1
  21. package/build/dex/balancer-v2/config.js +9 -1
  22. package/build/dex/balancer-v2/config.js.map +1 -1
  23. package/build/dex/curve-v1/pools/frxETHpool.d.ts +7 -0
  24. package/build/dex/curve-v1/pools/frxETHpool.js +27 -0
  25. package/build/dex/curve-v1/pools/frxETHpool.js.map +1 -0
  26. package/build/dex/curve-v1/pools/wbETHpool.d.ts +29 -0
  27. package/build/dex/curve-v1/pools/wbETHpool.js +408 -0
  28. package/build/dex/curve-v1/pools/wbETHpool.js.map +1 -0
  29. package/build/dex/index.js +2 -0
  30. package/build/dex/index.js.map +1 -1
  31. package/build/dex/maverick-v1/config.js +9 -0
  32. package/build/dex/maverick-v1/config.js.map +1 -1
  33. package/build/dex/maverick-v1/maverick-v1.js +11 -2
  34. package/build/dex/maverick-v1/maverick-v1.js.map +1 -1
  35. package/build/dex/pancakeswap-v3/config.js +17 -0
  36. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  37. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +7 -6
  38. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  39. package/build/dex/pancakeswap-v3/types.d.ts +14 -0
  40. package/build/dex/{test-dex → pancakeswap-v3}/types.js.map +1 -1
  41. package/build/dex/{test-dex → ramses-v2}/config.d.ts +1 -1
  42. package/build/dex/ramses-v2/config.js +28 -0
  43. package/build/dex/ramses-v2/config.js.map +1 -0
  44. package/build/dex/ramses-v2/constants.d.ts +28 -0
  45. package/build/dex/ramses-v2/constants.js +35 -0
  46. package/build/dex/ramses-v2/constants.js.map +1 -0
  47. package/build/dex/ramses-v2/contract-math/BitMath.d.ts +4 -0
  48. package/build/dex/ramses-v2/contract-math/BitMath.js +93 -0
  49. package/build/dex/ramses-v2/contract-math/BitMath.js.map +1 -0
  50. package/build/dex/ramses-v2/contract-math/FixedPoint128.d.ts +3 -0
  51. package/build/dex/ramses-v2/contract-math/FixedPoint128.js +8 -0
  52. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +1 -0
  53. package/build/dex/ramses-v2/contract-math/FixedPoint96.d.ts +4 -0
  54. package/build/dex/ramses-v2/contract-math/FixedPoint96.js +9 -0
  55. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +1 -0
  56. package/build/dex/ramses-v2/contract-math/FullMath.d.ts +4 -0
  57. package/build/dex/ramses-v2/contract-math/FullMath.js +19 -0
  58. package/build/dex/ramses-v2/contract-math/FullMath.js.map +1 -0
  59. package/build/dex/ramses-v2/contract-math/LiquidityMath.d.ts +3 -0
  60. package/build/dex/ramses-v2/contract-math/LiquidityMath.js +22 -0
  61. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +1 -0
  62. package/build/dex/ramses-v2/contract-math/Oracle.d.ts +10 -0
  63. package/build/dex/ramses-v2/contract-math/Oracle.js +133 -0
  64. package/build/dex/ramses-v2/contract-math/Oracle.js.map +1 -0
  65. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.d.ts +10 -0
  66. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js +91 -0
  67. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +1 -0
  68. package/build/dex/ramses-v2/contract-math/SwapMath.d.ts +8 -0
  69. package/build/dex/ramses-v2/contract-math/SwapMath.js +70 -0
  70. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +1 -0
  71. package/build/dex/ramses-v2/contract-math/Tick.d.ts +7 -0
  72. package/build/dex/ramses-v2/contract-math/Tick.js +45 -0
  73. package/build/dex/ramses-v2/contract-math/Tick.js.map +1 -0
  74. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +8 -0
  75. package/build/dex/ramses-v2/contract-math/TickBitMap.js +87 -0
  76. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +1 -0
  77. package/build/dex/ramses-v2/contract-math/TickMath.d.ts +8 -0
  78. package/build/dex/ramses-v2/contract-math/TickMath.js +162 -0
  79. package/build/dex/ramses-v2/contract-math/TickMath.js.map +1 -0
  80. package/build/dex/ramses-v2/contract-math/UnsafeMath.d.ts +3 -0
  81. package/build/dex/ramses-v2/contract-math/UnsafeMath.js +10 -0
  82. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +1 -0
  83. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.d.ts +18 -0
  84. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js +392 -0
  85. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +1 -0
  86. package/build/dex/ramses-v2/contract-math/utils.d.ts +3 -0
  87. package/build/dex/ramses-v2/contract-math/utils.js +16 -0
  88. package/build/dex/ramses-v2/contract-math/utils.js.map +1 -0
  89. package/build/dex/ramses-v2/ramses-v2-pool.d.ts +42 -0
  90. package/build/dex/ramses-v2/ramses-v2-pool.js +307 -0
  91. package/build/dex/ramses-v2/ramses-v2-pool.js.map +1 -0
  92. package/build/dex/ramses-v2/ramses-v2.d.ts +61 -0
  93. package/build/dex/ramses-v2/ramses-v2.js +690 -0
  94. package/build/dex/ramses-v2/ramses-v2.js.map +1 -0
  95. package/build/dex/ramses-v2/types.d.ts +154 -0
  96. package/build/dex/ramses-v2/types.js +9 -0
  97. package/build/dex/ramses-v2/types.js.map +1 -0
  98. package/build/dex/ramses-v2/utils.d.ts +6 -0
  99. package/build/dex/ramses-v2/utils.js +71 -0
  100. package/build/dex/ramses-v2/utils.js.map +1 -0
  101. package/build/dex/solidly/config.js +22 -1
  102. package/build/dex/solidly/config.js.map +1 -1
  103. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -0
  104. package/build/dex/solidly/forks-override/aerodrome.js +48 -0
  105. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -0
  106. package/build/dex/solidly/solidly.js +1 -0
  107. package/build/dex/solidly/solidly.js.map +1 -1
  108. package/build/dex/sushiswap-v3/config.d.ts +4 -0
  109. package/build/dex/sushiswap-v3/config.js +132 -0
  110. package/build/dex/sushiswap-v3/config.js.map +1 -0
  111. package/build/dex/sushiswap-v3/constants.d.ts +4 -0
  112. package/build/dex/sushiswap-v3/constants.js +32 -0
  113. package/build/dex/sushiswap-v3/constants.js.map +1 -0
  114. package/build/dex/sushiswap-v3/sushiswap-v3-original.d.ts +56 -0
  115. package/build/dex/sushiswap-v3/sushiswap-v3-original.js +598 -0
  116. package/build/dex/sushiswap-v3/sushiswap-v3-original.js.map +1 -0
  117. package/build/dex/sushiswap-v3/sushiswap-v3-pool.d.ts +1 -0
  118. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js +6 -0
  119. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js.map +1 -0
  120. package/build/dex/sushiswap-v3/sushiswap-v3.d.ts +21 -0
  121. package/build/dex/sushiswap-v3/sushiswap-v3.js +58 -0
  122. package/build/dex/sushiswap-v3/sushiswap-v3.js.map +1 -0
  123. package/build/dex/sushiswap-v3/token.d.ts +6 -0
  124. package/build/dex/sushiswap-v3/token.js +23 -0
  125. package/build/dex/sushiswap-v3/token.js.map +1 -0
  126. package/build/dex/sushiswap-v3/types.d.ts +15 -0
  127. package/build/dex/sushiswap-v3/types.js +18 -0
  128. package/build/dex/sushiswap-v3/types.js.map +1 -0
  129. package/build/dex/uniswap-v3/config.js +12 -0
  130. package/build/dex/uniswap-v3/config.js.map +1 -1
  131. package/build/dex/uniswap-v3/uniswap-v3.js +5 -4
  132. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  133. package/build/dex/woo-fi-v2/config.js +13 -0
  134. package/build/dex/woo-fi-v2/config.js.map +1 -1
  135. package/build/dex-helper/dummy-dex-helper.d.ts +0 -1
  136. package/build/dex-helper/dummy-dex-helper.js +0 -3
  137. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  138. package/build/dex-helper/idex-helper.d.ts +0 -1
  139. package/package.json +1 -1
  140. package/src/abi/aerodrome/aerodrome-pool-factory.json +586 -0
  141. package/src/config.ts +2 -2
  142. package/src/dex/algebra/algebra.ts +10 -10
  143. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +122 -1
  144. package/src/dex/balancer-v2/config.ts +10 -1
  145. package/src/dex/index.ts +2 -0
  146. package/src/dex/maverick-v1/config.ts +10 -0
  147. package/src/dex/maverick-v1/maverick-v1-e2e.test.ts +121 -1
  148. package/src/dex/maverick-v1/maverick-v1.ts +12 -2
  149. package/src/dex/pancakeswap-v3/config.ts +19 -0
  150. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +120 -0
  151. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +12 -12
  152. package/src/dex/solidly/config.ts +24 -1
  153. package/src/dex/solidly/forks-override/aerodrome.ts +57 -0
  154. package/src/dex/solidly/solidly-e2e.test.ts +88 -0
  155. package/src/dex/solidly/solidly-integration.test.ts +66 -0
  156. package/src/dex/solidly/solidly.ts +1 -0
  157. package/src/dex/uniswap-v3/config.ts +13 -0
  158. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +25 -4
  159. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +142 -0
  160. package/src/dex/uniswap-v3/uniswap-v3.ts +10 -10
  161. package/src/dex/woo-fi-v2/config.ts +13 -0
  162. package/src/dex/woo-fi-v2/woo-fi-v2-e2e.test.ts +64 -0
  163. package/src/dex-helper/dummy-dex-helper.ts +0 -15
  164. package/src/dex-helper/idex-helper.ts +0 -7
  165. package/tests/constants-e2e.ts +30 -0
  166. package/tests/utils-e2e.ts +1 -0
  167. package/build/abi/quickPerps/fast-price-events.json +0 -70
  168. package/build/abi/quickPerps/fast-price-feed.json +0 -748
  169. package/build/abi/quickPerps/reader.json +0 -313
  170. package/build/abi/quickPerps/vault-price-feed.json +0 -477
  171. package/build/abi/quickPerps/vault.json +0 -1953
  172. package/build/dex/test-dex/config.js +0 -15
  173. package/build/dex/test-dex/config.js.map +0 -1
  174. package/build/dex/test-dex/test-dex-pool.d.ts +0 -39
  175. package/build/dex/test-dex/test-dex-pool.js +0 -63
  176. package/build/dex/test-dex/test-dex-pool.js.map +0 -1
  177. package/build/dex/test-dex/test-dex.d.ts +0 -37
  178. package/build/dex/test-dex/test-dex.js +0 -126
  179. package/build/dex/test-dex/test-dex.js.map +0 -1
  180. package/build/dex/test-dex/types.d.ts +0 -6
  181. package/build/dex/woo-fi-v2/woo-fi-math.d.ts +0 -16
  182. package/build/dex/woo-fi-v2/woo-fi-math.js +0 -137
  183. package/build/dex/woo-fi-v2/woo-fi-math.js.map +0 -1
  184. package/build/workers.d.ts +0 -0
  185. package/build/workers.js +0 -2
  186. package/build/workers.js.map +0 -1
  187. /package/build/dex/{test-dex → pancakeswap-v3}/types.js +0 -0
@@ -1,477 +0,0 @@
1
- [
2
- { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
- {
4
- "inputs": [],
5
- "name": "BASIS_POINTS_DIVISOR",
6
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
7
- "stateMutability": "view",
8
- "type": "function"
9
- },
10
- {
11
- "inputs": [],
12
- "name": "MAX_ADJUSTMENT_BASIS_POINTS",
13
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
14
- "stateMutability": "view",
15
- "type": "function"
16
- },
17
- {
18
- "inputs": [],
19
- "name": "MAX_ADJUSTMENT_INTERVAL",
20
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
21
- "stateMutability": "view",
22
- "type": "function"
23
- },
24
- {
25
- "inputs": [],
26
- "name": "MAX_SPREAD_BASIS_POINTS",
27
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
28
- "stateMutability": "view",
29
- "type": "function"
30
- },
31
- {
32
- "inputs": [],
33
- "name": "ONE_USD",
34
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
35
- "stateMutability": "view",
36
- "type": "function"
37
- },
38
- {
39
- "inputs": [],
40
- "name": "PRICE_PRECISION",
41
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
- {
46
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
47
- "name": "adjustmentBasisPoints",
48
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
49
- "stateMutability": "view",
50
- "type": "function"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "bnb",
55
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
56
- "stateMutability": "view",
57
- "type": "function"
58
- },
59
- {
60
- "inputs": [],
61
- "name": "bnbBusd",
62
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
63
- "stateMutability": "view",
64
- "type": "function"
65
- },
66
- {
67
- "inputs": [],
68
- "name": "btc",
69
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
70
- "stateMutability": "view",
71
- "type": "function"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "btcBnb",
76
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
77
- "stateMutability": "view",
78
- "type": "function"
79
- },
80
- {
81
- "inputs": [],
82
- "name": "chainlinkFlags",
83
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
84
- "stateMutability": "view",
85
- "type": "function"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "eth",
90
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
91
- "stateMutability": "view",
92
- "type": "function"
93
- },
94
- {
95
- "inputs": [],
96
- "name": "ethBnb",
97
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
98
- "stateMutability": "view",
99
- "type": "function"
100
- },
101
- {
102
- "inputs": [],
103
- "name": "favorPrimaryPrice",
104
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
105
- "stateMutability": "view",
106
- "type": "function"
107
- },
108
- {
109
- "inputs": [
110
- { "internalType": "address", "name": "_token", "type": "address" }
111
- ],
112
- "name": "getAmmPrice",
113
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
- {
118
- "inputs": [
119
- { "internalType": "address", "name": "_token", "type": "address" },
120
- { "internalType": "bool", "name": "_maximise", "type": "bool" },
121
- { "internalType": "uint256", "name": "_primaryPrice", "type": "uint256" }
122
- ],
123
- "name": "getAmmPriceV2",
124
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
125
- "stateMutability": "view",
126
- "type": "function"
127
- },
128
- {
129
- "inputs": [
130
- { "internalType": "address", "name": "_token", "type": "address" }
131
- ],
132
- "name": "getLatestPrimaryPrice",
133
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
134
- "stateMutability": "view",
135
- "type": "function"
136
- },
137
- {
138
- "inputs": [
139
- { "internalType": "address", "name": "_pair", "type": "address" },
140
- { "internalType": "bool", "name": "_divByReserve0", "type": "bool" }
141
- ],
142
- "name": "getPairPrice",
143
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
144
- "stateMutability": "view",
145
- "type": "function"
146
- },
147
- {
148
- "inputs": [
149
- { "internalType": "address", "name": "_token", "type": "address" },
150
- { "internalType": "bool", "name": "_maximise", "type": "bool" },
151
- { "internalType": "bool", "name": "_includeAmmPrice", "type": "bool" },
152
- { "internalType": "bool", "name": "", "type": "bool" }
153
- ],
154
- "name": "getPrice",
155
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
156
- "stateMutability": "view",
157
- "type": "function"
158
- },
159
- {
160
- "inputs": [
161
- { "internalType": "address", "name": "_token", "type": "address" },
162
- { "internalType": "bool", "name": "_maximise", "type": "bool" },
163
- { "internalType": "bool", "name": "_includeAmmPrice", "type": "bool" }
164
- ],
165
- "name": "getPriceV1",
166
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
167
- "stateMutability": "view",
168
- "type": "function"
169
- },
170
- {
171
- "inputs": [
172
- { "internalType": "address", "name": "_token", "type": "address" },
173
- { "internalType": "bool", "name": "_maximise", "type": "bool" },
174
- { "internalType": "bool", "name": "_includeAmmPrice", "type": "bool" }
175
- ],
176
- "name": "getPriceV2",
177
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
178
- "stateMutability": "view",
179
- "type": "function"
180
- },
181
- {
182
- "inputs": [
183
- { "internalType": "address", "name": "_token", "type": "address" },
184
- { "internalType": "bool", "name": "_maximise", "type": "bool" }
185
- ],
186
- "name": "getPrimaryPrice",
187
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
188
- "stateMutability": "view",
189
- "type": "function"
190
- },
191
- {
192
- "inputs": [
193
- { "internalType": "address", "name": "_token", "type": "address" },
194
- {
195
- "internalType": "uint256",
196
- "name": "_referencePrice",
197
- "type": "uint256"
198
- },
199
- { "internalType": "bool", "name": "_maximise", "type": "bool" }
200
- ],
201
- "name": "getSecondaryPrice",
202
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
203
- "stateMutability": "view",
204
- "type": "function"
205
- },
206
- {
207
- "inputs": [],
208
- "name": "gov",
209
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
210
- "stateMutability": "view",
211
- "type": "function"
212
- },
213
- {
214
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
215
- "name": "isAdjustmentAdditive",
216
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
217
- "stateMutability": "view",
218
- "type": "function"
219
- },
220
- {
221
- "inputs": [],
222
- "name": "isAmmEnabled",
223
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
224
- "stateMutability": "view",
225
- "type": "function"
226
- },
227
- {
228
- "inputs": [],
229
- "name": "isSecondaryPriceEnabled",
230
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
231
- "stateMutability": "view",
232
- "type": "function"
233
- },
234
- {
235
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
236
- "name": "lastAdjustmentTimings",
237
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
238
- "stateMutability": "view",
239
- "type": "function"
240
- },
241
- {
242
- "inputs": [],
243
- "name": "maxStrictPriceDeviation",
244
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
245
- "stateMutability": "view",
246
- "type": "function"
247
- },
248
- {
249
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
250
- "name": "priceDecimals",
251
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
252
- "stateMutability": "view",
253
- "type": "function"
254
- },
255
- {
256
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
257
- "name": "priceFeeds",
258
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
259
- "stateMutability": "view",
260
- "type": "function"
261
- },
262
- {
263
- "inputs": [],
264
- "name": "priceSampleSpace",
265
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
266
- "stateMutability": "view",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [],
271
- "name": "secondaryPriceFeed",
272
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
273
- "stateMutability": "view",
274
- "type": "function"
275
- },
276
- {
277
- "inputs": [
278
- { "internalType": "address", "name": "_token", "type": "address" },
279
- { "internalType": "bool", "name": "_isAdditive", "type": "bool" },
280
- { "internalType": "uint256", "name": "_adjustmentBps", "type": "uint256" }
281
- ],
282
- "name": "setAdjustment",
283
- "outputs": [],
284
- "stateMutability": "nonpayable",
285
- "type": "function"
286
- },
287
- {
288
- "inputs": [
289
- {
290
- "internalType": "address",
291
- "name": "_chainlinkFlags",
292
- "type": "address"
293
- }
294
- ],
295
- "name": "setChainlinkFlags",
296
- "outputs": [],
297
- "stateMutability": "nonpayable",
298
- "type": "function"
299
- },
300
- {
301
- "inputs": [
302
- { "internalType": "bool", "name": "_favorPrimaryPrice", "type": "bool" }
303
- ],
304
- "name": "setFavorPrimaryPrice",
305
- "outputs": [],
306
- "stateMutability": "nonpayable",
307
- "type": "function"
308
- },
309
- {
310
- "inputs": [
311
- { "internalType": "address", "name": "_gov", "type": "address" }
312
- ],
313
- "name": "setGov",
314
- "outputs": [],
315
- "stateMutability": "nonpayable",
316
- "type": "function"
317
- },
318
- {
319
- "inputs": [
320
- { "internalType": "bool", "name": "_isEnabled", "type": "bool" }
321
- ],
322
- "name": "setIsAmmEnabled",
323
- "outputs": [],
324
- "stateMutability": "nonpayable",
325
- "type": "function"
326
- },
327
- {
328
- "inputs": [
329
- { "internalType": "bool", "name": "_isEnabled", "type": "bool" }
330
- ],
331
- "name": "setIsSecondaryPriceEnabled",
332
- "outputs": [],
333
- "stateMutability": "nonpayable",
334
- "type": "function"
335
- },
336
- {
337
- "inputs": [
338
- {
339
- "internalType": "uint256",
340
- "name": "_maxStrictPriceDeviation",
341
- "type": "uint256"
342
- }
343
- ],
344
- "name": "setMaxStrictPriceDeviation",
345
- "outputs": [],
346
- "stateMutability": "nonpayable",
347
- "type": "function"
348
- },
349
- {
350
- "inputs": [
351
- { "internalType": "address", "name": "_bnbBusd", "type": "address" },
352
- { "internalType": "address", "name": "_ethBnb", "type": "address" },
353
- { "internalType": "address", "name": "_btcBnb", "type": "address" }
354
- ],
355
- "name": "setPairs",
356
- "outputs": [],
357
- "stateMutability": "nonpayable",
358
- "type": "function"
359
- },
360
- {
361
- "inputs": [
362
- {
363
- "internalType": "uint256",
364
- "name": "_priceSampleSpace",
365
- "type": "uint256"
366
- }
367
- ],
368
- "name": "setPriceSampleSpace",
369
- "outputs": [],
370
- "stateMutability": "nonpayable",
371
- "type": "function"
372
- },
373
- {
374
- "inputs": [
375
- {
376
- "internalType": "address",
377
- "name": "_secondaryPriceFeed",
378
- "type": "address"
379
- }
380
- ],
381
- "name": "setSecondaryPriceFeed",
382
- "outputs": [],
383
- "stateMutability": "nonpayable",
384
- "type": "function"
385
- },
386
- {
387
- "inputs": [
388
- { "internalType": "address", "name": "_token", "type": "address" },
389
- {
390
- "internalType": "uint256",
391
- "name": "_spreadBasisPoints",
392
- "type": "uint256"
393
- }
394
- ],
395
- "name": "setSpreadBasisPoints",
396
- "outputs": [],
397
- "stateMutability": "nonpayable",
398
- "type": "function"
399
- },
400
- {
401
- "inputs": [
402
- {
403
- "internalType": "uint256",
404
- "name": "_spreadThresholdBasisPoints",
405
- "type": "uint256"
406
- }
407
- ],
408
- "name": "setSpreadThresholdBasisPoints",
409
- "outputs": [],
410
- "stateMutability": "nonpayable",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [
415
- { "internalType": "address", "name": "_token", "type": "address" },
416
- { "internalType": "address", "name": "_priceFeed", "type": "address" },
417
- {
418
- "internalType": "uint256",
419
- "name": "_priceDecimals",
420
- "type": "uint256"
421
- },
422
- { "internalType": "bool", "name": "_isStrictStable", "type": "bool" }
423
- ],
424
- "name": "setTokenConfig",
425
- "outputs": [],
426
- "stateMutability": "nonpayable",
427
- "type": "function"
428
- },
429
- {
430
- "inputs": [
431
- { "internalType": "address", "name": "_btc", "type": "address" },
432
- { "internalType": "address", "name": "_eth", "type": "address" },
433
- { "internalType": "address", "name": "_bnb", "type": "address" }
434
- ],
435
- "name": "setTokens",
436
- "outputs": [],
437
- "stateMutability": "nonpayable",
438
- "type": "function"
439
- },
440
- {
441
- "inputs": [
442
- { "internalType": "bool", "name": "_useV2Pricing", "type": "bool" }
443
- ],
444
- "name": "setUseV2Pricing",
445
- "outputs": [],
446
- "stateMutability": "nonpayable",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
451
- "name": "spreadBasisPoints",
452
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
453
- "stateMutability": "view",
454
- "type": "function"
455
- },
456
- {
457
- "inputs": [],
458
- "name": "spreadThresholdBasisPoints",
459
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
460
- "stateMutability": "view",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
465
- "name": "strictStableTokens",
466
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
467
- "stateMutability": "view",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [],
472
- "name": "useV2Pricing",
473
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
474
- "stateMutability": "view",
475
- "type": "function"
476
- }
477
- ]