@orbs-network/spot 2.6.0 → 2.6.2
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/README.md +2 -2
- package/config.json +124 -9
- package/out/06_DeployDynamicP2Adapter.s.sol/DeployDynamicP2Adapter.abi.json +28 -0
- package/out/DynamicP2DexAdapter.sol/DynamicP2DexAdapter.abi.json +453 -0
- package/out/DynamicP2DexAdapter.t.sol/DynamicP2DexAdapterTest.abi.json +942 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Spot provides non-custodial market, limit, TWAP, stop-loss, take-profit, and delayed-start orders on EVM chains, backed by immutable onchain contracts.
|
|
6
6
|
|
|
7
|
-
**🔒
|
|
7
|
+
**🔒 Security Audit Reports:** [Initial AstraSec audit](./Audit-AstraSec.pdf) and [updated AstraSec audit](./Audit2-AstraSec.pdf)
|
|
8
8
|
|
|
9
9
|
## Why Spot
|
|
10
10
|
|
|
@@ -51,7 +51,7 @@ A typical order lifecycle is:
|
|
|
51
51
|
|
|
52
52
|
## Security
|
|
53
53
|
|
|
54
|
-
Spot's contracts were professionally audited. See the **[
|
|
54
|
+
Spot's contracts were professionally audited by AstraSec. See the **[initial security audit report](./Audit-AstraSec.pdf)** and **[updated security audit report](./Audit2-AstraSec.pdf)**.
|
|
55
55
|
Spot is also oracle-protected: execution depends on cosigned trigger and market price data, freshness windows, and slippage checks.
|
|
56
56
|
|
|
57
57
|
### Access Controls
|
package/config.json
CHANGED
|
@@ -14,20 +14,28 @@
|
|
|
14
14
|
"executor": "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7",
|
|
15
15
|
"refinery": "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec",
|
|
16
16
|
"agentAdapter": "0xf6d54cf6a0619f1fb8e1ded91d4c23e7bb9f498c56735fb0c7669423c766219f",
|
|
17
|
-
"agentFee": "0x151234279af18acc113f70463977058efa2e598b5bfc0c106c75fd638d344c0a"
|
|
17
|
+
"agentFee": "0x151234279af18acc113f70463977058efa2e598b5bfc0c106c75fd638d344c0a",
|
|
18
|
+
"utilaAdapter": "0x7671291910b559d7a05ab73ee31dd714d9c6e7b065c9496338bf427182ae5145",
|
|
19
|
+
"utilaFee": "0x46f797cddb221ecf6279b56f52e2f6360cd721ef95bd5a17dd0ffceffaaf7fd6"
|
|
18
20
|
},
|
|
19
21
|
"dex": {
|
|
20
22
|
"agent": {
|
|
21
23
|
"type": "universal",
|
|
22
24
|
"adapter": "0x0002BeFB46587d460AcEA9B2792c4A4c67B9cADa",
|
|
23
25
|
"fee": "0x0006d9557Ac9Af4f31962896299ba4FaBDaB9fEE"
|
|
26
|
+
},
|
|
27
|
+
"utila": {
|
|
28
|
+
"type": "universal",
|
|
29
|
+
"adapter": "0x000ADa14B2ECF45Da6Cf1B33dE34e05231E9C76f",
|
|
30
|
+
"fee": "0x000FEee351263c82501a4dF5f699a8b630ac7f36"
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
"1": {
|
|
28
35
|
"adapter": {
|
|
29
36
|
"Odos": "0x1ae80D14C52F82c09a54C423e6f9D5Fb737089C8",
|
|
30
|
-
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
37
|
+
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c",
|
|
38
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
31
39
|
},
|
|
32
40
|
"dex": {
|
|
33
41
|
"sushiswap": {
|
|
@@ -36,19 +44,36 @@
|
|
|
36
44
|
"router": "0xAC4c6e212A361c968F1725b4d055b47E63F80b75",
|
|
37
45
|
"adapter": "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df",
|
|
38
46
|
"fee": "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc"
|
|
47
|
+
},
|
|
48
|
+
"ring": {
|
|
49
|
+
"type": "dynamicp2",
|
|
50
|
+
"solver": "Ring",
|
|
51
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
52
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
53
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
},
|
|
42
57
|
"10": {
|
|
43
58
|
"adapter": {
|
|
44
|
-
"Odos": "0xc7Ec90152fd5A6210570cb04C4Ab099Bdac352af"
|
|
59
|
+
"Odos": "0xc7Ec90152fd5A6210570cb04C4Ab099Bdac352af",
|
|
60
|
+
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
45
61
|
},
|
|
46
|
-
"dex": {
|
|
62
|
+
"dex": {
|
|
63
|
+
"sushiswap": {
|
|
64
|
+
"type": "default",
|
|
65
|
+
"solver": "Sushi",
|
|
66
|
+
"router": "0xAC4c6e212A361c968F1725b4d055b47E63F80b75",
|
|
67
|
+
"adapter": "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df",
|
|
68
|
+
"fee": "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
47
71
|
},
|
|
48
72
|
"56": {
|
|
49
73
|
"adapter": {
|
|
50
74
|
"Odos": "0x6c17cc2984A87BD8b002c6E3C08dBB8c8Eb89E48",
|
|
51
|
-
"Orbs": "0xaf3532dca7b4a75cD06671614C093e9e8fb5b1F2"
|
|
75
|
+
"Orbs": "0xaf3532dca7b4a75cD06671614C093e9e8fb5b1F2",
|
|
76
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
52
77
|
},
|
|
53
78
|
"dex": {
|
|
54
79
|
"thena": {
|
|
@@ -72,6 +97,13 @@
|
|
|
72
97
|
"router": "0x89b8AA89FDd0507a99d334CBe3C808fAFC7d850E",
|
|
73
98
|
"adapter": "0x6236a466CE5c368DC6686d69cAcf5561196B76ef",
|
|
74
99
|
"fee": "0x4E7454909eB6D539111D56b50d68897E933D2d11"
|
|
100
|
+
},
|
|
101
|
+
"ring": {
|
|
102
|
+
"type": "dynamicp2",
|
|
103
|
+
"solver": "Ring",
|
|
104
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
105
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
106
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
75
107
|
}
|
|
76
108
|
}
|
|
77
109
|
},
|
|
@@ -127,13 +159,28 @@
|
|
|
127
159
|
}
|
|
128
160
|
}
|
|
129
161
|
},
|
|
162
|
+
"130": {
|
|
163
|
+
"adapter": {
|
|
164
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
165
|
+
},
|
|
166
|
+
"dex": {
|
|
167
|
+
"ring": {
|
|
168
|
+
"type": "dynamicp2",
|
|
169
|
+
"solver": "Ring",
|
|
170
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
171
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
172
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
130
176
|
"8453": {
|
|
131
177
|
"adapter": {
|
|
132
178
|
"Odos": "0x1c947387AFC3435135e3da51ccEAB20eD5377DeA",
|
|
133
179
|
"Orbs": "0x917b492557957f5dD3e69c04c8E1Ac3d6948c022",
|
|
134
180
|
"Kyber": "0x6f4e5b8d7F6b037c62277992c39E7834D7C04596",
|
|
135
181
|
"TrebleSwap": "0x6f4938535879c668A797F2a6e9B912c54f9D43Cf",
|
|
136
|
-
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
182
|
+
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c",
|
|
183
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
137
184
|
},
|
|
138
185
|
"dex": {
|
|
139
186
|
"pancake": {
|
|
@@ -164,6 +211,13 @@
|
|
|
164
211
|
"router": "0xAC4c6e212A361c968F1725b4d055b47E63F80b75",
|
|
165
212
|
"adapter": "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df",
|
|
166
213
|
"fee": "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc"
|
|
214
|
+
},
|
|
215
|
+
"ring": {
|
|
216
|
+
"type": "dynamicp2",
|
|
217
|
+
"solver": "Ring",
|
|
218
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
219
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
220
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
167
221
|
}
|
|
168
222
|
}
|
|
169
223
|
},
|
|
@@ -196,7 +250,8 @@
|
|
|
196
250
|
"Odos": "0x419faf03F5661e0F0471eF9D7935f09534ffc50F",
|
|
197
251
|
"Paraswap": "0x179C4b8e982b5F1365d36CC8d0c1CEB621B7198D",
|
|
198
252
|
"Orbs": "0x917b492557957f5dD3e69c04c8E1Ac3d6948c022",
|
|
199
|
-
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
253
|
+
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c",
|
|
254
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
200
255
|
},
|
|
201
256
|
"dex": {
|
|
202
257
|
"arbidex": {
|
|
@@ -241,6 +296,13 @@
|
|
|
241
296
|
"router": "0xAC4c6e212A361c968F1725b4d055b47E63F80b75",
|
|
242
297
|
"adapter": "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df",
|
|
243
298
|
"fee": "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc"
|
|
299
|
+
},
|
|
300
|
+
"ring": {
|
|
301
|
+
"type": "dynamicp2",
|
|
302
|
+
"solver": "Ring",
|
|
303
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
304
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
305
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
244
306
|
}
|
|
245
307
|
}
|
|
246
308
|
},
|
|
@@ -268,9 +330,48 @@
|
|
|
268
330
|
},
|
|
269
331
|
"5000": {
|
|
270
332
|
"adapter": {
|
|
271
|
-
"Odos": "0x3a0fA0f95ea07026c5f84D8d3444Dd6E15AE1874"
|
|
333
|
+
"Odos": "0x3a0fA0f95ea07026c5f84D8d3444Dd6E15AE1874",
|
|
334
|
+
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
272
335
|
},
|
|
273
|
-
"dex": {
|
|
336
|
+
"dex": {
|
|
337
|
+
"sushiswap": {
|
|
338
|
+
"type": "default",
|
|
339
|
+
"solver": "Sushi",
|
|
340
|
+
"router": "0xAC4c6e212A361c968F1725b4d055b47E63F80b75",
|
|
341
|
+
"adapter": "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df",
|
|
342
|
+
"fee": "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"999": {
|
|
347
|
+
"reactor": "0x826dD029Becf04868aae378aE4C0cf1b9DEa354B",
|
|
348
|
+
"executor": "0x71dd93213714132868123798Cbe103d2f65c81A1",
|
|
349
|
+
"adapter": {
|
|
350
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
351
|
+
},
|
|
352
|
+
"dex": {
|
|
353
|
+
"ring": {
|
|
354
|
+
"type": "dynamicp2",
|
|
355
|
+
"solver": "Ring",
|
|
356
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
357
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
358
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"4326": {
|
|
363
|
+
"adapter": {
|
|
364
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
365
|
+
},
|
|
366
|
+
"dex": {
|
|
367
|
+
"ring": {
|
|
368
|
+
"type": "dynamicp2",
|
|
369
|
+
"solver": "Ring",
|
|
370
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
371
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
372
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
274
375
|
},
|
|
275
376
|
"80094": {
|
|
276
377
|
"adapter": {
|
|
@@ -344,6 +445,20 @@
|
|
|
344
445
|
}
|
|
345
446
|
}
|
|
346
447
|
},
|
|
448
|
+
"196": {
|
|
449
|
+
"adapter": {
|
|
450
|
+
"Ring": "0x47e27973dA3e16dB13F8b713877b3A31623E0E5B"
|
|
451
|
+
},
|
|
452
|
+
"dex": {
|
|
453
|
+
"ring": {
|
|
454
|
+
"type": "dynamicp2",
|
|
455
|
+
"solver": "Ring",
|
|
456
|
+
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
457
|
+
"adapter": "0x028fa69049aB68EC42064Eb18896D587dD41Af2a",
|
|
458
|
+
"fee": "0xA04329696aAd1417c75Cf6d91342815001999B21"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
347
462
|
"747474": {
|
|
348
463
|
"adapter": {
|
|
349
464
|
"Sushi": "0x11985E88847aEC23D1C3BCD77Ca0F4A704aB751c"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "IS_SCRIPT",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "bool",
|
|
10
|
+
"internalType": "bool"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "run",
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "adapter",
|
|
22
|
+
"type": "address",
|
|
23
|
+
"internalType": "address"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "nonpayable"
|
|
27
|
+
}
|
|
28
|
+
]
|