@paraswap/dex-lib 2.37.5 → 2.37.6
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/build/abi/quickPerps/fast-price-events.json +70 -0
- package/build/abi/quickPerps/fast-price-feed.json +748 -0
- package/build/abi/quickPerps/reader.json +313 -0
- package/build/abi/quickPerps/vault-price-feed.json +477 -0
- package/build/abi/quickPerps/vault.json +1953 -0
- package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
- package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
- package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
- package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
- package/build/abi/woo-fi/WooPP.abi.json +548 -0
- package/build/abi/woo-fi/Wooracle.abi.json +260 -0
- package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
- package/build/dex/aave-v3/tokens/avalanche.json +74 -0
- package/build/dex/aave-v3/tokens/fantom.json +62 -0
- package/build/dex/aave-v3/tokens/optimism.json +50 -0
- package/build/dex/aave-v3/tokens/polygon.json +116 -0
- package/build/dex/balancer-v2/LinearMath.d.ts +19 -0
- package/build/dex/balancer-v2/LinearMath.js +179 -0
- package/build/dex/balancer-v2/LinearMath.js.map +1 -0
- package/build/dex/balancer-v2/LinearPool.d.ts +47 -0
- package/build/dex/balancer-v2/LinearPool.js +324 -0
- package/build/dex/balancer-v2/LinearPool.js.map +1 -0
- package/build/dex/balancer-v2/PhantomStablePool.d.ts +47 -0
- package/build/dex/balancer-v2/PhantomStablePool.js +294 -0
- package/build/dex/balancer-v2/PhantomStablePool.js.map +1 -0
- package/build/dex/balancer-v2/StableMath.d.ts +9 -0
- package/build/dex/balancer-v2/StableMath.js +272 -0
- package/build/dex/balancer-v2/StableMath.js.map +1 -0
- package/build/dex/balancer-v2/balancer-v2-pool.d.ts +75 -0
- package/build/dex/balancer-v2/balancer-v2-pool.js +417 -0
- package/build/dex/balancer-v2/balancer-v2-pool.js.map +1 -0
- package/build/dex/maverick-v1/scripts/event-sequence.d.ts +1 -0
- package/build/dex/maverick-v1/scripts/event-sequence.js +110 -0
- package/build/dex/maverick-v1/scripts/event-sequence.js.map +1 -0
- package/build/dex/quickswap/camelot-v3.d.ts +6 -0
- package/build/dex/quickswap/camelot-v3.js +19 -0
- package/build/dex/quickswap/camelot-v3.js.map +1 -0
- package/build/dex/quickswap/zyberswap-v3.d.ts +6 -0
- package/build/dex/quickswap/zyberswap-v3.js +19 -0
- package/build/dex/quickswap/zyberswap-v3.js.map +1 -0
- package/build/dex/quickswap-v3.d.ts +21 -0
- package/build/dex/quickswap-v3.js +40 -0
- package/build/dex/quickswap-v3.js.map +1 -0
- package/build/dex/{my-test-dex → test-dex}/config.d.ts +1 -1
- package/build/dex/{hello → test-dex}/config.js +3 -3
- package/build/dex/test-dex/config.js.map +1 -0
- package/build/dex/{hello/hello-pool.d.ts → test-dex/test-dex-pool.d.ts} +4 -4
- package/build/dex/{hello/hello-pool.js → test-dex/test-dex-pool.js} +8 -9
- package/build/dex/test-dex/test-dex-pool.js.map +1 -0
- package/build/dex/{hello/hello.d.ts → test-dex/test-dex.d.ts} +8 -8
- package/build/dex/{hello/hello.js → test-dex/test-dex.js} +7 -7
- package/build/dex/test-dex/test-dex.js.map +1 -0
- package/build/dex/{hello → test-dex}/types.d.ts +1 -1
- package/build/dex/{my-test-dex → test-dex}/types.js.map +1 -1
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +12 -0
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +23 -0
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
- package/build/dex/{hello → woo-fi}/config.d.ts +1 -1
- package/build/dex/woo-fi/config.js +141 -0
- package/build/dex/woo-fi/config.js.map +1 -0
- package/build/dex/woo-fi/constants.d.ts +5 -0
- package/build/dex/woo-fi/constants.js +20 -0
- package/build/dex/woo-fi/constants.js.map +1 -0
- package/build/dex/woo-fi/types.d.ts +48 -0
- package/build/dex/{hello → woo-fi}/types.js.map +1 -1
- package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
- package/build/dex/woo-fi/woo-fi-math.js +300 -0
- package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi.d.ts +65 -0
- package/build/dex/woo-fi/woo-fi.js +480 -0
- package/build/dex/woo-fi/woo-fi.js.map +1 -0
- package/build/dex/woo-fi-v2/woo-fi-math.d.ts +16 -0
- package/build/dex/woo-fi-v2/woo-fi-math.js +137 -0
- package/build/dex/woo-fi-v2/woo-fi-math.js.map +1 -0
- package/build/router/buy.d.ts +1 -1
- package/build/router/buy.js +3 -3
- package/build/router/buy.js.map +1 -1
- package/build/router/directswap.d.ts +1 -1
- package/build/router/directswap.js +3 -3
- package/build/router/directswap.js.map +1 -1
- package/build/router/irouter.d.ts +1 -1
- package/build/router/megaswap.d.ts +1 -1
- package/build/router/megaswap.js +3 -3
- package/build/router/megaswap.js.map +1 -1
- package/build/router/multiswap.d.ts +1 -1
- package/build/router/multiswap.js +3 -3
- package/build/router/multiswap.js.map +1 -1
- package/build/router/payload-encoder.d.ts +3 -3
- package/build/router/payload-encoder.js +6 -6
- package/build/router/payload-encoder.js.map +1 -1
- package/build/router/simpleswap.d.ts +2 -2
- package/build/router/simpleswap.js +3 -3
- package/build/router/simpleswap.js.map +1 -1
- package/build/router/simpleswapnft.d.ts +1 -1
- package/build/router/simpleswapnft.js +3 -3
- package/build/router/simpleswapnft.js.map +1 -1
- package/build/transaction-builder.d.ts +2 -2
- package/build/transaction-builder.js +2 -2
- package/build/transaction-builder.js.map +1 -1
- package/build/workers.d.ts +0 -0
- package/build/workers.js +2 -0
- package/build/workers.js.map +1 -0
- package/package.json +1 -1
- package/src/router/buy.ts +3 -7
- package/src/router/directswap.ts +3 -7
- package/src/router/irouter.ts +1 -1
- package/src/router/megaswap.ts +3 -7
- package/src/router/multiswap.ts +3 -7
- package/src/router/payload-encoder.ts +7 -7
- package/src/router/simpleswap.ts +4 -8
- package/src/router/simpleswapnft.ts +3 -7
- package/src/transaction-builder.ts +3 -3
- package/build/dex/hello/config.js.map +0 -1
- package/build/dex/hello/hello-pool.js.map +0 -1
- package/build/dex/hello/hello.js.map +0 -1
- package/build/dex/my-test-dex/config.js +0 -15
- package/build/dex/my-test-dex/config.js.map +0 -1
- package/build/dex/my-test-dex/my-test-dex-pool.d.ts +0 -39
- package/build/dex/my-test-dex/my-test-dex-pool.js +0 -64
- package/build/dex/my-test-dex/my-test-dex-pool.js.map +0 -1
- package/build/dex/my-test-dex/my-test-dex.d.ts +0 -37
- package/build/dex/my-test-dex/my-test-dex.js +0 -126
- package/build/dex/my-test-dex/my-test-dex.js.map +0 -1
- package/build/dex/my-test-dex/types.d.ts +0 -6
- /package/build/dex/{hello → test-dex}/types.js +0 -0
- /package/build/dex/{my-test-dex → woo-fi}/types.js +0 -0
|
@@ -0,0 +1,477 @@
|
|
|
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
|
+
]
|