-
Notifications
You must be signed in to change notification settings - Fork 0
/
ArbitrageHelper.json
782 lines (782 loc) · 119 KB
/
ArbitrageHelper.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
{
"address": "0x4274163619a3E4EA3C310a93C4B2f827F07FC5a4",
"abi": [
{
"inputs": [],
"name": "BadAccessControlSingleton",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "BadSender",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "lpToken",
"type": "address"
}
],
"name": "LPTokenNotRegistered",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "lpToken",
"type": "address"
}
],
"name": "LPTokenNotSupported",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "NotAPool",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAdminError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAlerterError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyDAOError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyLiquidationAccessError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyMintAccessError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyRewardAccessError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyRoleError",
"type": "error"
},
{
"inputs": [],
"name": "OnlyVaultAccessError",
"type": "error"
},
{
"inputs": [],
"name": "SwapBy1InchError",
"type": "error"
},
{
"inputs": [],
"name": "SwapByParaSwapError",
"type": "error"
},
{
"inputs": [],
"name": "SwapNotProfitable",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"inputs": [],
"name": "ACCESS_CONTROL_SINGLETON",
"outputs": [
{
"internalType": "contract ISuAccessControl",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ALERTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DAO_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "LIQUIDATION_ACCESS_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MINT_ACCESS_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "REWARD_ACCESS_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "VAULT_ACCESS_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "newAmount",
"type": "uint256"
}
],
"name": "changeCalldataAmount",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "clipperExchange",
"type": "address"
},
{
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"internalType": "address",
"name": "dstToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "inputAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "outputAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "goodUntil",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "vs",
"type": "bytes32"
}
],
"name": "clipperSwap",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_authControl",
"type": "address"
},
{
"internalType": "address",
"name": "_exchange",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "lpToAdapter",
"outputs": [
{
"internalType": "contract ILPAdapter",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_lp",
"type": "address"
},
{
"internalType": "address",
"name": "_lpAdapter",
"type": "address"
}
],
"name": "registerLP",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "stableunitFillOrderCallback",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "srcToken",
"type": "address"
},
{
"internalType": "address",
"name": "dstToken",
"type": "address"
},
{
"internalType": "address",
"name": "srcReceiver",
"type": "address"
},
{
"internalType": "address",
"name": "dstReceiver",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minReturnAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "flags",
"type": "uint256"
}
],
"internalType": "struct SwapDescription",
"name": "",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "swap",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
},
{
"internalType": "address",
"name": "token2sell",
"type": "address"
},
{
"internalType": "uint256",
"name": "token2sellAmount",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"internalType": "struct InchData[]",
"name": "inchData",
"type": "tuple[]"
}
],
"name": "swapLPWithFlashLoan",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "orderId",
"type": "uint256"
},
{
"internalType": "address",
"name": "token2sell",
"type": "address"
},
{
"internalType": "uint256",
"name": "token2sellAmount",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"internalType": "struct InchData",
"name": "inchData",
"type": "tuple"
}
],
"name": "swapWithFlashLoan",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "uniswapV3Swap",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "unoswap",
"outputs": [],
"stateMutability": "pure",
"type": "function"
}
],
"numDeployments": 1,
"solcInputHash": "6bdb767f00e3f0fe0de7c63e7a48801d",
"metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"BadAccessControlSingleton\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"BadSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"LPTokenNotRegistered\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"LPTokenNotSupported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"NotAPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAdminError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAlerterError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyDAOError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyLiquidationAccessError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyMintAccessError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRewardAccessError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRoleError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyVaultAccessError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SwapBy1InchError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SwapByParaSwapError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SwapNotProfitable\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ACCESS_CONTROL_SINGLETON\",\"outputs\":[{\"internalType\":\"contract ISuAccessControl\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ALERTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAO_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LIQUIDATION_ACCESS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINT_ACCESS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REWARD_ACCESS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"VAULT_ACCESS_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"newAmount\",\"type\":\"uint256\"}],\"name\":\"changeCalldataAmount\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clipperExchange\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"goodUntil\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"vs\",\"type\":\"bytes32\"}],\"name\":\"clipperSwap\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_authControl\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_exchange\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lpToAdapter\",\"outputs\":[{\"internalType\":\"contract ILPAdapter\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_lp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_lpAdapter\",\"type\":\"address\"}],\"name\":\"registerLP\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"stableunitFillOrderCallback\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dstReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flags\",\"type\":\"uint256\"}],\"internalType\":\"struct SwapDescription\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token2sell\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"token2sellAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"internalType\":\"struct InchData[]\",\"name\":\"inchData\",\"type\":\"tuple[]\"}],\"name\":\"swapLPWithFlashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token2sell\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"token2sellAmount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"internalType\":\"struct InchData\",\"name\":\"inchData\",\"type\":\"tuple\"}],\"name\":\"swapWithFlashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"name\":\"uniswapV3Swap\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"name\":\"unoswap\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"See IArbitrageHelper interface for full details.\",\"kind\":\"dev\",\"methods\":{\"changeCalldataAmount(bytes,uint256)\":{\"params\":{\"data\":\"- calldata to edit\",\"newAmount\":\"- new amount that should replace amount in {data}\"},\"returns\":{\"_0\":\"edited calldata with new amount inside*\"}},\"stableunitFillOrderCallback(address,uint256,address,bytes)\":{\"details\":\"behaviour like in uniswapV3FlashCallback: https://docs.uniswap.org/contracts/v3/guides/flash-integrations/flash-callback and AAVE flash-loan callback: https://github.com/aave/aave-v3-core/blob/master/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol*\"},\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.\"},\"swapLPWithFlashLoan(uint256,address,uint256,(address,bytes,address)[])\":{\"details\":\"Contract receive LP-token from exchange module, unwrap it and swap with 1inch all underline tokens to token that exchange module need.\",\"params\":{\"inchData\":\"- 1inch callData and contract array to swap every underline token of LP*\",\"orderId\":\"- Id of order in Exchange module to fill\",\"token2sell\":\"- Token in order to get as flash-loan\",\"token2sellAmount\":\"- Amount of token in order to get as flash-loan\"}},\"swapWithFlashLoan(uint256,address,uint256,(address,bytes,address))\":{\"details\":\"Contract receive loan from exchange module, sell it on 1inch and get profit = received amount - fee\",\"params\":{\"inchData\":\"- 1inch callData and contract to swap loan*\",\"orderId\":\"- Id of order in Exchange module to fill\",\"token2sell\":\"- Token in order to get as flash-loan\",\"token2sellAmount\":\"- Amount of token in order to get as flash-loan\"}}},\"title\":\"ArbitrageHelper\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"changeCalldataAmount(bytes,uint256)\":{\"notice\":\"Helper function to change amount parameter on callback that depends on return by 1inch API calldata for swap We set minAmount to 1 to be sure, that swap will be created. Route path don't depend on that - this path was calculated previously in backend part and is stored in {data}.\"},\"stableunitFillOrderCallback(address,uint256,address,bytes)\":{\"notice\":\"This is callback function from Exchange contract. fillOrderAsFlashLoan call (msg.sender).executeOperation(...) after transferring loan to sender\"},\"swapLPWithFlashLoan(uint256,address,uint256,(address,bytes,address)[])\":{\"notice\":\"The same as swapWithFlashLoan, but loan is LP-token that we need to unwrap\"},\"swapWithFlashLoan(uint256,address,uint256,(address,bytes,address))\":{\"notice\":\"Reference implementation of Arbitrage bot contract, that use Exchange module to get profit\"},\"uniswapV3Swap(uint256,uint256,uint256[])\":{\"notice\":\"We need this functions to check their selector and functionSelector in calldata for changeCalldataAmount() function*\"}},\"notice\":\"Helper contract to arbitrage using Exchange module\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/exchange/contracts/ArbitrageHelper.sol\":\"ArbitrageHelper\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControlUpgradeable {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0xb8f5302f12138c5561362e88a78d061573e6298b7a1a5afe84a1e2c8d4d5aeaa\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165Upgradeable {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.6.0;\\n\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\n\\nlibrary TransferHelper {\\n /// @notice Transfers tokens from the targeted address to the given destination\\n /// @notice Errors with 'STF' if transfer fails\\n /// @param token The contract address of the token to be transferred\\n /// @param from The originating address from which the tokens will be transferred\\n /// @param to The destination address of the transfer\\n /// @param value The amount to be transferred\\n function safeTransferFrom(\\n address token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n (bool success, bytes memory data) =\\n token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));\\n require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');\\n }\\n\\n /// @notice Transfers tokens from msg.sender to a recipient\\n /// @dev Errors with ST if transfer fails\\n /// @param token The contract address of the token which will be transferred\\n /// @param to The recipient of the transfer\\n /// @param value The value of the transfer\\n function safeTransfer(\\n address token,\\n address to,\\n uint256 value\\n ) internal {\\n (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));\\n require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');\\n }\\n\\n /// @notice Approves the stipulated contract to spend the given allowance in the given token\\n /// @dev Errors with 'SA' if transfer fails\\n /// @param token The contract address of the token to be approved\\n /// @param to The target of the approval\\n /// @param value The amount of the given token the target will be allowed to spend\\n function safeApprove(\\n address token,\\n address to,\\n uint256 value\\n ) internal {\\n (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));\\n require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');\\n }\\n\\n /// @notice Transfers ETH to the recipient address\\n /// @dev Fails with `STE`\\n /// @param to The destination of the transfer\\n /// @param value The value to be transferred\\n function safeTransferETH(address to, uint256 value) internal {\\n (bool success, ) = to.call{value: value}(new bytes(0));\\n require(success, 'STE');\\n }\\n}\\n\",\"keccak256\":\"0x9af98b0908c96320ca6d08b22f0efca864742f6adbe5794cafe2d1d2e808b0cd\",\"license\":\"GPL-2.0-or-later\"},\"contracts/exchange/contracts/ArbitrageHelper.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\nimport \\\"@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\nimport \\\"../interfaces/IArbitrageHelper.sol\\\";\\nimport \\\"../interfaces/IExchange.sol\\\";\\nimport \\\"./CalldataDecoder.sol\\\";\\nimport \\\"../../periphery/contracts/access-control/SuAuthenticated.sol\\\";\\nimport \\\"../../periphery/contracts/interfaces/adapters/ILPAdapter.sol\\\";\\n\\n/**\\n * @title ArbitrageHelper\\n * @notice Helper contract to arbitrage using Exchange module\\n * @dev See IArbitrageHelper interface for full details.\\n */\\ncontract ArbitrageHelper is SuAuthenticated, IArbitrageHelper, CalldataDecoder {\\n IExchange internal EXCHANGE;\\n mapping(address => ILPAdapter) public lpToAdapter;\\n\\n function initialize(address _authControl, address _exchange) public initializer {\\n __suAuthenticatedInit(_authControl);\\n\\n EXCHANGE = IExchange(_exchange);\\n }\\n\\n function registerLP(address _lp, address _lpAdapter) public onlyAdmin {\\n lpToAdapter[_lp] = ILPAdapter(_lpAdapter);\\n\\n TransferHelper.safeApprove(_lp, _lpAdapter, 2**256 - 1);\\n }\\n\\n /**\\n * @notice Swap using Paraswap. Sell {amount2sell} token2sell to token using route encoded in paraswapData.data\\n * @dev We get that data in bot using ParaSwap API (apiv5.paraswap.io)\\n * Docs: https://developers.paraswap.network/api/build-parameters-for-transaction\\n */\\n function swapByParaswap(address token2sell, uint256 amount2sell, ParaswapData memory paraswapData) internal {\\n // All token transfers are through tokenTransferProxy, so we need to make approve to this contract\\n TransferHelper.safeApprove(token2sell, paraswapData.tokenTransferProxy, amount2sell);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success,) = paraswapData.contractAddress.call(paraswapData.data);\\n if (!success) {\\n revert SwapByParaSwapError();\\n }\\n }\\n /**\\n * @notice as in swapByParaswap, look into utils/1inch.ts\\n * @dev Docs: https://docs.1inch.io/docs/aggregation-protocol/api/swap-params/\\n */\\n function swapBy1Inch(address token2sell, uint256 amount2sell, address contractAddress, bytes memory data) internal {\\n TransferHelper.safeApprove(token2sell, contractAddress, amount2sell);\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success,) = contractAddress.call(data);\\n if (!success) {\\n revert SwapBy1InchError();\\n }\\n }\\n\\n function swapWithFlashLoan(\\n uint256 orderId,\\n address token2sell,\\n uint256 token2sellAmount,\\n InchData memory inchData\\n ) public {\\n InchData[] memory inchDataArr = new InchData[](1);\\n inchDataArr[0] = inchData;\\n // We do a flash-loan of {token2sell} in amount of {token2sellAmount} to our contract.\\n // {data} will be decoded in stableunitFillOrderCallback() - the callback after we get flash-loan\\n EXCHANGE.fillOrderAsFlashLoan(\\n orderId,\\n token2sellAmount,\\n abi.encode(FlashCallbackData({\\n isLP: false,\\n orderId: orderId,\\n token2sell: token2sell,\\n token2sellAmount: token2sellAmount,\\n recipient: msg.sender,\\n inchData: inchDataArr\\n }))\\n );\\n }\\n\\n function swapLPWithFlashLoan(\\n uint256 orderId,\\n address token2sell,\\n uint256 token2sellAmount,\\n InchData[] memory inchData\\n ) public {\\n EXCHANGE.fillOrderAsFlashLoan(\\n orderId,\\n token2sellAmount,\\n abi.encode(FlashCallbackData({\\n isLP: true,\\n orderId: orderId,\\n token2sell: token2sell,\\n token2sellAmount: token2sellAmount,\\n recipient: msg.sender,\\n inchData: inchData\\n }))\\n );\\n }\\n\\n /**\\n * @notice This is callback function from Exchange contract.\\n * fillOrderAsFlashLoan call (msg.sender).executeOperation(...) after transferring loan to sender\\n * @dev behaviour like in uniswapV3FlashCallback:\\n * https://docs.uniswap.org/contracts/v3/guides/flash-integrations/flash-callback\\n * and AAVE flash-loan callback:\\n * https://github.com/aave/aave-v3-core/blob/master/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol\\n **/\\n function stableunitFillOrderCallback(\\n address asset,\\n uint256 amount,\\n address sender,\\n bytes calldata data\\n ) external returns (bool) {\\n FlashCallbackData memory decoded = abi.decode(data, (FlashCallbackData));\\n\\n if (msg.sender != address(EXCHANGE)) revert NotAPool(msg.sender);\\n if (sender != address(this)) revert BadSender(sender);\\n\\n uint256 balanceBefore = IERC20(asset).balanceOf(address(this));\\n\\n if (decoded.isLP) {\\n if (address(lpToAdapter[decoded.token2sell]) == address(0)) revert LPTokenNotRegistered(decoded.token2sell);\\n if (\\n !lpToAdapter[decoded.token2sell].isAdapterLP(decoded.token2sell)\\n ) revert LPTokenNotSupported(decoded.token2sell);\\n\\n WithdrawResult[] memory unwrapResult = lpToAdapter[decoded.token2sell].withdraw(\\n decoded.token2sell,\\n decoded.token2sellAmount\\n );\\n uint256 inchDataNTokens = decoded.inchData.length;\\n uint256 unwrapNTokens = unwrapResult.length;\\n\\n // if withdraw don't unwrap to all underlying tokens, then we need to find 1inch data to use in swap\\n // else we need to use all 1inch data for each unwrapped tokens\\n bool isCorrectUnwrap = inchDataNTokens == unwrapNTokens;\\n for (uint16 i = 0; i < unwrapNTokens; ++i) {\\n address underlineToken = unwrapResult[i].token;\\n uint256 underlineTokenAmount = unwrapResult[i].amount;\\n\\n // If token2buy is underline token of LP-token token2sell => this part of order is done\\n if (underlineToken != asset) {\\n if (isCorrectUnwrap) {\\n swapBy1Inch(\\n underlineToken,\\n underlineTokenAmount,\\n decoded.inchData[i].contractAddress,\\n this.changeCalldataAmount(decoded.inchData[i].data, underlineTokenAmount)\\n );\\n } else { // we need to find correct 1inch data for that unwrapped token\\n for (uint16 j = 0; j < inchDataNTokens; ++j) {\\n if (unwrapResult[i].token == decoded.inchData[j].token) {\\n swapBy1Inch(\\n underlineToken,\\n underlineTokenAmount,\\n decoded.inchData[j].contractAddress,\\n this.changeCalldataAmount(decoded.inchData[j].data, underlineTokenAmount)\\n );\\n break;\\n }\\n }\\n }\\n }\\n }\\n } else {\\n swapBy1Inch(\\n decoded.token2sell,\\n decoded.token2sellAmount,\\n decoded.inchData[0].contractAddress,\\n decoded.inchData[0].data\\n );\\n }\\n\\n uint256 balanceAfter = IERC20(asset).balanceOf(address(this));\\n uint256 tokenBReceived = balanceAfter - balanceBefore;\\n\\n if (tokenBReceived < amount) revert SwapNotProfitable();\\n uint256 swapProfit = tokenBReceived - amount;\\n\\n // Return flash-loan debt to Exchange contract\\n TransferHelper.safeTransfer(asset, address(EXCHANGE), amount);\\n\\n // Send swapped {asset} minus debt from flash-loan to liquidator (it's user profit)\\n TransferHelper.safeTransfer(asset, decoded.recipient, swapProfit);\\n\\n return true;\\n }\\n\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x488d03e0ad5659f25c89c982172988af0fa52e6ed25ddf8fa5a1623fb545358b\",\"license\":\"BSL 1.1\"},\"contracts/exchange/contracts/CalldataDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\nstruct SwapDescription {\\n address srcToken;\\n address dstToken;\\n address srcReceiver;\\n address dstReceiver;\\n uint256 amount;\\n uint256 minReturnAmount;\\n uint256 flags;\\n}\\n\\n/**\\n * @notice Helper abstract contract to work with calldata\\n**/\\nabstract contract CalldataDecoder {\\n /**\\n * @notice We need this functions to check their selector and functionSelector in calldata\\n * for changeCalldataAmount() function\\n **/\\n /* solhint-disable no-empty-blocks */\\n function uniswapV3Swap(uint256, uint256, uint256[] calldata) public pure {}\\n function unoswap(address, uint256, uint256, uint256[] calldata) public pure {}\\n function swap(address, SwapDescription calldata, bytes calldata, bytes calldata) public pure {}\\n function clipperSwap(\\n address clipperExchange,\\n address srcToken,\\n address dstToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 goodUntil,\\n bytes32 r,\\n bytes32 vs\\n ) public pure {}\\n /* solhint-enable no-empty-blocks */\\n\\n // TODO: add comment about minAmount\\n // TODO: use byteToChange position in TS + check how much gas spent\\n /**\\n * @notice\\n * Helper function to change amount parameter on callback that depends on return by 1inch API calldata for swap\\n * We set minAmount to 1 to be sure, that swap will be created. Route path don't depend on that -\\n * this path was calculated previously in backend part and is stored in {data}.\\n * @param data - calldata to edit\\n * @param newAmount - new amount that should replace amount in {data}\\n * @return edited calldata with new amount inside\\n **/\\n function changeCalldataAmount(bytes calldata data, uint256 newAmount) public pure returns (bytes memory) {\\n bytes4 functionSelector = bytes4(data[:4]);\\n if (functionSelector == this.uniswapV3Swap.selector) {\\n (\\n /*uint256 _amount */, /*uint256 minReturn*/, uint256[] memory pools\\n ) = abi.decode(data[4:], (uint256, uint256, uint256[]));\\n return abi.encodeWithSignature(\\\"uniswapV3Swap(uint256,uint256,uint256[])\\\", newAmount, 1, pools);\\n }\\n if (functionSelector == this.unoswap.selector) {\\n (\\n address token, /* uint256 _amount */, /*uint256 minReturn*/, uint256[] memory pools\\n ) = abi.decode(data[4:], (address,uint256,uint256,uint256[]));\\n return abi.encodeWithSignature(\\\"unoswap(address,uint256,uint256,uint256[])\\\", token, newAmount, 1, pools);\\n }\\n if (functionSelector == this.swap.selector) {\\n (\\n address caller, SwapDescription memory description, bytes memory permit, bytes memory swapData\\n ) = abi.decode(data[4:], (address, SwapDescription, bytes, bytes));\\n return abi.encodeWithSignature(\\n \\\"swap(address,(address,address,address,address,uint256,uint256,uint256),bytes,bytes)\\\",\\n caller,\\n SwapDescription({\\n srcToken: description.srcToken,\\n dstToken: description.dstToken,\\n srcReceiver: description.srcReceiver,\\n dstReceiver: description.dstReceiver,\\n amount: newAmount,\\n minReturnAmount: 1,\\n flags: description.flags\\n }),\\n permit,\\n swapData\\n );\\n }\\n if (functionSelector == this.clipperSwap.selector) {\\n (\\n address clipperExchange,\\n address srcToken,\\n address dstToken,\\n /*uint256 _inputAmount*/,\\n /*uint256 outputAmount*/,\\n uint256 goodUntil,\\n bytes32 r,\\n bytes32 vs\\n ) = abi.decode(data[4:], (address, address, address, uint256, uint256, uint256, bytes32, bytes32));\\n return abi.encodeWithSignature(\\n \\\"clipperSwap(address,address,address,uint256,uint256,uint256,bytes32,bytes32)\\\",\\n clipperExchange,\\n srcToken,\\n dstToken,\\n newAmount,\\n 1,\\n goodUntil,\\n r,\\n vs\\n );\\n }\\n\\n return data;\\n }\\n}\\n\",\"keccak256\":\"0xfa2bc27d4ef08083b91ed485503eccd94f0340205ffdb6db53c374f858a1bd2b\",\"license\":\"BSL 1.1\"},\"contracts/exchange/interfaces/IArbitrageHelper.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IExchangeCallback.sol\\\";\\n\\nstruct FlashCallbackData {\\n bool isLP;\\n uint256 orderId;\\n address token2sell;\\n uint256 token2sellAmount;\\n address recipient;\\n InchData[] inchData;\\n}\\n\\nstruct ParaswapData {\\n address contractAddress;\\n address tokenTransferProxy;\\n bytes data;\\n}\\n\\nstruct InchData {\\n address contractAddress;\\n bytes data;\\n address token; // needed only if adapter unwrap not to all underlying tokens\\n}\\n\\ninterface IArbitrageHelper is IExchangeCallback {\\n /* ===================== ERRORS ===================== */\\n error NotAPool(address sender);\\n error SwapNotProfitable();\\n error SwapByParaSwapError();\\n error SwapBy1InchError();\\n error BadSender(address sender);\\n error LPTokenNotSupported(address lpToken);\\n error LPTokenNotRegistered(address lpToken);\\n\\n /* ===================== EVENTS ===================== */\\n // event SwapByUniswap(address tokenA, address tokenB);\\n\\n /* ==================== MUTABLE METHODS ==================== */\\n\\n\\n /**\\n * @notice Register LP to use it adapter to withdraw or get price of LP later in swapLPWithFlashLoan();\\n * @param lp - address of LP token\\n * @param lpAdapter - address of LPAdapter for this LP token\\n **/\\n function registerLP(address lp, address lpAdapter) external;\\n\\n /**\\n * @notice Reference implementation of Arbitrage bot contract, that use Exchange module to get profit\\n * @dev Contract receive loan from exchange module, sell it on 1inch and get profit = received amount - fee\\n * @param orderId - Id of order in Exchange module to fill\\n * @param token2sell - Token in order to get as flash-loan\\n * @param token2sellAmount - Amount of token in order to get as flash-loan\\n * @param inchData - 1inch callData and contract to swap loan\\n **/\\n function swapWithFlashLoan(\\n uint256 orderId,\\n address token2sell,\\n uint256 token2sellAmount,\\n InchData memory inchData\\n ) external;\\n\\n /**\\n * @notice The same as swapWithFlashLoan, but loan is LP-token that we need to unwrap\\n * @dev Contract receive LP-token from exchange module, unwrap it and swap with 1inch all underline tokens\\n * to token that exchange module need.\\n * @param orderId - Id of order in Exchange module to fill\\n * @param token2sell - Token in order to get as flash-loan\\n * @param token2sellAmount - Amount of token in order to get as flash-loan\\n * @param inchData - 1inch callData and contract array to swap every underline token of LP\\n **/\\n function swapLPWithFlashLoan(\\n uint256 orderId,\\n address token2sell,\\n uint256 token2sellAmount,\\n InchData[] memory inchData\\n ) external;\\n}\",\"keccak256\":\"0x013640eb50f02a5ba876524f4a9b5fcf82bd2071e2121a217a6399e9867f1d96\",\"license\":\"BSL 1.1\"},\"contracts/exchange/interfaces/IExchange.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\nenum DiscountType {\\n aggressive,\\n middle,\\n conservative\\n}\\n\\nstruct Order {\\n address token2sell;\\n uint256 amountLeft;\\n address token2buy;\\n uint256 token2buyAmount;\\n address beneficiary;\\n uint256 creationTimestamp;\\n DiscountType discountType;\\n address caller;\\n}\\n\\nstruct OrderWithId {\\n Order order;\\n uint256 orderId;\\n}\\n\\ninterface IExchange {\\n /* ===================== ERRORS ===================== */\\n error OrderExist(uint256 orderId);\\n error OrderNotExist(uint256 orderId);\\n error IncorrectToken(address orderToken2buy, address inToken);\\n error SmallAmountLeft();\\n error UserIsNotBeneficiary();\\n error IsNotTopStaker(address staker);\\n error OrderNotForThisStaker(uint256 orderId, address staker);\\n error NotEnoughReturnValue();\\n error CallbackError();\\n\\n /* ======================== EVENTS ========================= */\\n event OrderAdded(uint256 orderId);\\n event OrderCanceled(uint256 orderId);\\n event OrderFilled(uint256 orderId);\\n event OrderFilledPartially(uint256 orderId);\\n event LpOrdersAdded(address LPToken, uint256[] orderIds);\\n\\n /* ==================== MUTABLE METHODS ==================== */\\n\\n /**\\n * @notice Add order to swap {token2sell} to {token2buy}.\\n * @dev This swap is async, because depends on how arbitrage bots will fill this order. Emits OrderAdded() event.\\n * Before addOrder user needs to approve token2sell for exchange contract\\n * @param token2sell - Address of token to sell\\n * @param amount2sell - Amount of {token2sell} to sell\\n * @param token2buy - Address of token to buy\\n * @param beneficiary - Address that will receive {token2buy} after filling order.\\n * @param discountType - Speed of decreasing swap price. { 0 - aggressive, 1 - middle, 2 - conservative }\\n **/\\n function addOrder (\\n address token2sell,\\n uint256 amount2sell,\\n address token2buy,\\n address beneficiary,\\n DiscountType discountType\\n ) external returns (uint256);\\n\\n /**\\n * @notice Only user who place order or who is beneficiary can cancelOrder();\\n * @param orderId - Id of order to cancel.\\n **/\\n function cancelOrder (uint256 orderId) external;\\n\\n /**\\n * @notice Fill order with flash-loan like logic\\n * @dev Caller contract receive orders {token2sell} and after that his stableunitFillOrderCallback() is called.\\n * At the end of thi callback contract should send some amount of another token back to Exchange contract.\\n * @param orderId - Id of order to fill.\\n * @param inAmount - Amount of {token2sell} to receive\\n * @param data - encoded data to pass to callback function\\n **/\\n function fillOrderAsFlashLoan (\\n uint256 orderId,\\n uint256 inAmount,\\n bytes memory data\\n ) external returns (uint256 outAmount);\\n\\n /**\\n * @notice Function to update price curve - how fast {token2sell} price will decrease/increase\\n * @param discountType - discount type to change\\n * @param newPriceCurve - parameters of formula\\n **/\\n function setPriceCurve(DiscountType discountType, uint256[2] calldata newPriceCurve) external;\\n\\n /* ==================== VIEW METHODS ==================== */\\n /**\\n * @return The amount of outcome that caller will receive if he will fill {orderId} with {inAmount} of {token2sell}\\n **/\\n function getExpectedOrderOutcome (uint256 orderId, uint256 inAmount) external view returns (uint256);\\n\\n /**\\n * @return Order with id = {orderId}\\n **/\\n function getOrder (uint256 orderId) external view returns (Order memory);\\n\\n /**\\n * @return The amount of not full-filled orders\\n **/\\n function getOrdersCount () external view returns (uint256);\\n\\n /**\\n * @return The array of all not-filled orders. May be deleted after adding GraphQL for orderIds\\n **/\\n function getAllOrders () external view returns (OrderWithId[] memory);\\n}\\n\",\"keccak256\":\"0x82e1cafa53606d6b49f02ca18891db728c3dfd3c678387e8d4a6e2ccbbda8a1b\",\"license\":\"BSL 1.1\"},\"contracts/exchange/interfaces/IExchangeCallback.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\ninterface IExchangeCallback {\\n /**\\n * @notice Callback that will be called by Exchange module in fillOrderAsFlashLoan()\\n * after sending collateral to msg.sender.\\n * In the implementation you must pay stablecoin for Exchange contract.\\n * @dev Any contract that calls Exchange#fillOrderAsFlashLoan must implement this interface\\n * @param asset - The address of the token that should be returned\\n * @param amount - The amount of the {token} to return\\n * @param initiator The address of the flashloan initiator\\n * @return True if the execution of the operation succeeds, false otherwise\\n */\\n function stableunitFillOrderCallback (\\n address asset,\\n uint256 amount,\\n address initiator,\\n bytes calldata params\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x83d01cfa5b53319a2111163fd3d2f51dbe426069eb552818edbbbc4ef097582e\",\"license\":\"BSL 1.1\"},\"contracts/periphery/contracts/access-control/SuAccessRoles.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title SuAccessRoles Library\\n * @dev SuAuthenticated and SuAccessControlSingleton need to have this constants\\n * Hierarchy:\\n * 1. DAO - can give admins and system roles\\n * 2.1. Admin - can set Alerters\\n * 2.2. System - includes Minter, Vault, Liquidation and Reward roles, don't have access to give some roles.\\n * 3. Alerter - can send alerts and trigger rate limits, don't have access to give some roles.\\n */\\nabstract contract SuAccessRoles {\\n bytes32 public constant ADMIN_ROLE = 0x00;\\n\\n bytes32 public constant DAO_ROLE = keccak256(\\\"DAO_ROLE\\\");\\n\\n bytes32 public constant ALERTER_ROLE = keccak256(\\\"ALERTER_ROLE\\\");\\n\\n // system roles\\n bytes32 public constant MINT_ACCESS_ROLE = keccak256(\\\"MINT_ACCESS_ROLE\\\");\\n bytes32 public constant VAULT_ACCESS_ROLE = keccak256(\\\"VAULT_ACCESS_ROLE\\\");\\n bytes32 public constant LIQUIDATION_ACCESS_ROLE = keccak256(\\\"LIQUIDATION_ACCESS_ROLE\\\");\\n bytes32 public constant REWARD_ACCESS_ROLE = keccak256(\\\"REWARD_ACCESS_ROLE\\\");\\n}\\n\",\"keccak256\":\"0x024209469b6b337eef6cf520501d1e6c2ba66a79f014c25220a35e407d69b02e\",\"license\":\"BSL 1.1\"},\"contracts/periphery/contracts/access-control/SuAuthenticated.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../interfaces/access-control/ISuAccessControl.sol\\\";\\nimport \\\"./SuAccessRoles.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\\\";\\n\\n/**\\n * @title SuAuthenticated\\n * @dev other contracts should inherit to be authenticated.\\n * The address of SuAccessControlSingleton should be one for all contract that inherits SuAuthenticated\\n */\\nabstract contract SuAuthenticated is Initializable, SuAccessRoles, IERC165Upgradeable {\\n ISuAccessControl public ACCESS_CONTROL_SINGLETON;\\n\\n error OnlyDAOError();\\n error OnlyAdminError();\\n error OnlyAlerterError();\\n error OnlyVaultAccessError();\\n error OnlyLiquidationAccessError();\\n error OnlyMintAccessError();\\n error OnlyRewardAccessError();\\n error OnlyRoleError();\\n error BadAccessControlSingleton();\\n\\n /**\\n * @dev should be passed in constructor\\n */\\n function __suAuthenticatedInit(address _accessControlSingleton) internal onlyInitializing {\\n ACCESS_CONTROL_SINGLETON = ISuAccessControl(_accessControlSingleton);\\n if (\\n !ISuAccessControl(_accessControlSingleton).supportsInterface(type(IAccessControlUpgradeable).interfaceId)\\n ) revert BadAccessControlSingleton();\\n }\\n\\n /** CORE ROLES */\\n\\n modifier onlyDAO() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(DAO_ROLE, msg.sender)) revert OnlyDAOError();\\n _;\\n }\\n\\n modifier onlyAdmin() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(ADMIN_ROLE, msg.sender)) revert OnlyAdminError();\\n _;\\n }\\n\\n modifier onlyAlerter() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(ALERTER_ROLE, msg.sender)) revert OnlyAlerterError();\\n _;\\n }\\n\\n /** SYSTEM ROLES */\\n\\n modifier onlyVaultAccess() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(VAULT_ACCESS_ROLE, msg.sender)) revert OnlyVaultAccessError();\\n _;\\n }\\n\\n modifier onlyLiquidationAccess() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(LIQUIDATION_ACCESS_ROLE, msg.sender)) revert OnlyLiquidationAccessError();\\n _;\\n }\\n\\n modifier onlyMintAccess() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(MINT_ACCESS_ROLE, msg.sender)) revert OnlyMintAccessError();\\n _;\\n }\\n\\n modifier onlyRewardAccess() {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(REWARD_ACCESS_ROLE, msg.sender)) revert OnlyRewardAccessError();\\n _;\\n }\\n\\n // syntax sugar under ACCESS_CONTROL_SINGLETON\\n modifier onlyRole(bytes32 role) {\\n if (!ACCESS_CONTROL_SINGLETON.hasRole(role, msg.sender)) revert OnlyRoleError();\\n _;\\n }\\n\\n function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\\n return ACCESS_CONTROL_SINGLETON.supportsInterface(interfaceId);\\n }\\n}\\n\",\"keccak256\":\"0x3553007ac782c0c5f2ecf3ca47b8b72d74b2cae35c34ffe2d030b968938b2b0d\",\"license\":\"BSL 1.1\"},\"contracts/periphery/contracts/interfaces/access-control/ISuAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\\\";\\nimport \\\"../../access-control/SuAccessRoles.sol\\\";\\n\\n/**\\n * @notice Access control for contracts\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n **/\\ninterface ISuAccessControl is IAccessControlUpgradeable, IERC165Upgradeable {\\n function setRoleAdmin(bytes32 role, bytes32 adminRole) external;\\n}\\n\",\"keccak256\":\"0x25724ac502fd6418ccd38273b276de4b2fdecd023d723c5d80c9f0a27c407bcd\",\"license\":\"MIT\"},\"contracts/periphery/contracts/interfaces/adapters/ILPAdapter.sol\":{\"content\":\"// SPDX-License-Identifier: BSL 1.1\\npragma solidity ^0.8.0;\\n\\nimport \\\"../oracle/ISuOracle.sol\\\";\\n\\nstruct WithdrawResult {\\n address token;\\n uint256 amount;\\n}\\n\\ninterface ILPAdapter is ISuOracle {\\n /* ======================== ERRORS ======================== */\\n error IsNotLP(address asset);\\n error AlreadyRegistered(address asset);\\n error LPOracleNotReady();\\n\\n /* ==================== MUTABLE METHODS ==================== */\\n /**\\n * @notice Unwrap LP token with depth = 2 (if underlying token is LP => it's also unwrapping)\\n * @param asset - address of LP token to withdraw/unwrap\\n * @param amount - amount of asset to withdraw/unwrap\\n **/\\n function withdraw(address asset, uint256 amount) external returns (WithdrawResult[] memory);\\n\\n /* ====================== VIEW METHODS ==================== */\\n /**\\n * @notice Returns if asset ig Balancer LP token, registered in our adapter\\n * @param asset - address of LP token to check\\n **/\\n function isAdapterLP(address asset) external returns (bool);\\n}\",\"keccak256\":\"0x4a1b94f8bdc9063002386f854608c9b600ad2a7d45703ad05deb7536c006a855\",\"license\":\"BSL 1.1\"},\"contracts/periphery/contracts/interfaces/oracle/ISuOracle.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\n// solhint-disable compiler-version\\npragma solidity >=0.7.6;\\n\\ninterface ISuOracle {\\n /**\\n * @notice WARNING! Read this description very carefully!\\n * function getFiatPrice1e18(address asset) returns (uint256) that:\\n * basicAmountOfAsset * getFiatPrice1e18(asset) / 1e18 === $$ * 1e18\\n * in other words, it doesn't matter what's the erc20.decimals is,\\n * you just multiply token balance in basic units on value from oracle and get dollar amount multiplied on 1e18.\\n *\\n * different assets have different deviation threshold (errors)\\n * for wBTC it's <= 0.5%, read more https://data.chain.link/ethereum/mainnet/crypto-usd/btc-usd\\n * for other asset is can be larger based on particular oracle implementation.\\n *\\n * examples:\\n * market price of btc = $30k,\\n * for 0.1 wBTC the unit256 amount is 0.1 * 1e18\\n * 0.1 * 1e18 * (price1e18 / 1e18) == $3000 == uint256(3000*1e18)\\n * => price1e18 = 30000 * 1e18;\\n *\\n * market price of usdt = $0.97,\\n * for 1 usdt uint256 = 1 * 1e6\\n * so 1*1e6 * price1e18 / 1e18 == $0.97 == uint256(0.97*1e18)\\n * => 1*1e6 * (price1e18 / 1e18) / (0.97*1e18) = 1\\n * => price1e18 = 0.97 * (1e18/1e6) * 1e18\\n *\\n * assume market price of wBTC = $31,503.77, oracle error = $158\\n *\\n * case #1: small amount of wBTC\\n * we have 0.0,000,001 wBTC that is worth v = $0.00315 \\u00b1 $0.00001 = 0.00315*1e18 = 315*1e13 \\u00b1 1*1e13\\n * actual balance on the asset b = wBTC.balanceOf() = 0.0000001*1e18 = 1e11\\n * oracle should return or = oracle.getFiatPrice1e18(wBTC) <=>\\n * <=> b*or = v => v/b = 315*1e13 / 1e11 = 315*1e2 \\u00b1 1e2\\n * error = or.error * b = 1e2 * 1e11 = 1e13 => 1e13/1e18 usd = 1e-5 = 0.00001 usd\\n *\\n * case #2: large amount of wBTC\\n * v = 2,000,000 wBTC = $31,503.77 * 2m \\u00b1 158*2m = $63,007,540,000 \\u00b1 $316,000,000 = 63,007*1e24 \\u00b1 316*1e24\\n * for calc convenience we increase error on 0.05 and have v = 63,000*24 \\u00b1 300*1e24 = (630 \\u00b1 3)*1e26\\n * b = 2*1e6 * 1e18 = 2*1e24\\n * or = v/b = (630 \\u00b1 3)*1e26 / 2*1e24 = 315*1e2 \\u00b1 1.5*1e2\\n * error = or.error * b = 1.5*100 * 2*1e24 = 3*1e26 = 3*1e8*1e18 = $300,000,000 ~ $316,000,000\\n *\\n * assume the market price of USDT = $0.97 \\u00b1 $0.00485,\\n *\\n * case #3: little amount of USDT\\n * v = USDT amount 0.005 = 0.005*(0.97 \\u00b1 0.00485) = 0.00485*1e18 \\u00b1 0.00002425*1e18 = 485*1e13 \\u00b1 3*1e13\\n * we rounded error up on (3000-2425)/2425 ~= +24% for calculation convenience.\\n * b = USDT.balanceOf() = 0.005*1e6 = 5*1e3\\n * b*or = v => or = v/b = (485*1e13 \\u00b1 3*1e13) / 5*1e3 = 970*1e9 \\u00b1 6*1e9\\n * error = 6*1e9 * 5*1e3 / 1e18 = 30*1e12/1e18 = 3*1e-5 = $0,00005\\n *\\n * case #4: lot of USDT\\n * v = we have 100,000,000,000 USDT = $97B = 97*1e9*1e18 \\u00b1 0.5*1e9*1e18\\n * b = USDT.balanceOf() = 1e11*1e6 = 1e17\\n * or = v/b = (97*1e9*1e18 \\u00b1 0.5*1e9*1e18) / 1e17 = 970*1e9 \\u00b1 5*1e9\\n * error = 5*1e9 * 1e17 = 5*1e26 = 0.5 * 1e8*1e18\\n *\\n * @param asset - address of erc20 token contract\\n * @return usdPrice1e18 such that asset.balanceOf() * getFiatPrice1e18(asset) / 1e18 == $$ * 1e18\\n **/\\n function getFiatPrice1e18(address asset) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xa56b9cc86ef5935efecc276e6a3188d518f1a99cad960083a8de35849c997687\",\"license\":\"UNLICENSED\"}},\"version\":1}",
"bytecode": "0x6080806040523461001657611cf6908161001c8239f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a71461114e5750806303ee9f22146111215780630502b1c5146110e857806312aa3caf1461108557806314c376dc1461104a5780631e61130614610ff3578063438280dd14610fb8578063485cc95514610d775780634dec53e014610d3c5780636a2f53c21461061d57806371d0fb41146105e257806374cc2bdd1461054457806375b238fc1461052857806384bd6d29146104fc5780638e5313e0146104c1578063943a0f131461033e578063dc97e84e14610303578063e37c74a11461016d578063e449022e1461013b5763e9c26518146100fb57600080fd5b346101365760003660031901126101365760206040517f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b26038152f35b600080fd5b34610136576060366003190112610136576044356001600160401b0381116101365761016b90369060040161122f565b005b34610136576080366003190112610136576004356101896111ef565b90604435906001600160401b0390606435828111610136576101af9036906004016113b4565b9060405194604086018681108582111761020d576040526001865260005b6020908181101561022357604051606092838201938285108986111761020d57602094604052600083528183015260006040830152828a010152016101cd565b634e487b7160e01b600052604160045260246000fd5b836102c3846102988b8b8a610237836114ff565b52610241826114ff565b506001546040516001600160a01b039791881693600092916102a691610266826112d4565b84825260209a8b99858b85015216604083015285606083015233608083015260a0820152604051968791898301611536565b03601f19810187528661130a565b604051637176836f60e11b8152968795869485936004850161160a565b03925af180156102f7576102d357005b813d83116102f0575b6102e6818361130a565b8101031261013657005b503d6102dc565b6040513d6000823e3d90fd5b346101365760003660031901126101365760206040517f9a9aef7c1247d5fc769b0185c052913e39673da29a880317dfd20ebf86f26a498152f35b34610136576040366003190112610136576103576111d9565b61035f6111ef565b9060018060a01b03908160005460101c16926040518094632474521560e21b82526000600483015233602483015281604460209788935afa9081156102f757600091610494575b50156104825782169181166000526002835260406000208260018060a01b0319825416179055604051908382019263095ea7b360e01b84526024830152600019604483015260448252608082019282841060018060401b0385111761020d576000809493819460405251925af161041b6114cf565b81610452575b501561042957005b6064906040519062461bcd60e51b825260048201526002602482015261534160f01b6044820152fd5b8051801592508390831561046a575b50505082610421565b61047a935082018101910161149c565b828281610461565b604051631886ea7d60e11b8152600490fd5b6104b49150853d87116104ba575b6104ac818361130a565b81019061149c565b856103a6565b503d6104a2565b346101365760003660031901126101365760206040517fe453bacb314e78dcd5192e6b1a2b1f0e7c76e92f6b7e429a6a90f04e39db3b768152f35b3461013657610100366003190112610136576105166111d9565b5061051f6111ef565b5061016b611205565b3461013657600036600319011261013657602060405160008152f35b34610136576080366003190112610136576004356105606111ef565b604435906064356001600160401b038111610136576102c39261058a61029892369060040161141c565b6001546040516001600160a01b03979188169392600092916102a6916105af826112d4565b6001825260209a8b99858b85015216604083015285606083015233608083015260a0820152604051968791898301611536565b346101365760003660031901126101365760206040517f880a91047114272656e533301261260c75e4d11543ac7303d6fe4204579ec7278152f35b34610136576080366003190112610136576106366111d9565b61063e611205565b906064356001600160401b0381116101365761065e90369060040161125f565b81019290602081850312610136578035906001600160401b038211610136570160c081850312610136576040519360c085016001600160401b0381118682101761020d5760405281358015158103610136578552602082013560208601526106c86040830161121b565b6040860152606082013560608601526106e36080830161121b565b608086015260a08201356001600160401b03811161013657610705920161141c565b60a08401526001546001600160a01b03163303610d24576001600160a01b0316308103610d0c57506040516370a0823160e01b8152306004820152906020826024816001600160a01b0385165afa9182156102f757600092610cd8575b50825115610c8a576040838101516001600160a01b039081166000908152600260205291909120541615610c6357604083810180516001600160a01b039081166000908152600260209081528482205493519451635136211760e01b8152948316600486015292849260249284929091165af19081156102f757600091610c44575b5015610c1d57604080840180516001600160a01b03908116600090815260026020528381205492516060880151945163f3fef3a360e01b8152979594919388939081169284928692849261083e92909116600484016114b4565b03925af19384156102f757600094610b22575b5060a0820151519184519460005b8661ffff82161015610a47576001600160a01b0361088161ffff831684611522565b51511690602061089561ffff831685611522565b5101516001600160a01b03861683036108b9575b506108b49150611626565b61085f565b86890361096e5761091b9060018060a01b036108dd61ffff851660a0890151611522565b515116600060206108f661ffff871660a08b0151611522565b51015160405180958192630f30898360e11b83526040600484015260448301906112af565b8560248301520381305afa9182156102f7576108b49561094394600094610949575b50611766565b886108a9565b6109679194503d806000833e61095f818361130a565b81019061164f565b928d61093d565b94919790959660005b8861ffff82161015610a36576001600160a01b0361099961ffff8a1687611522565b51511660018060a01b0360406109b761ffff851660a08b0151611522565b51015116146109ce576109c990611626565b610977565b95610a0a91989792999396600060206108f661ffff60018060a01b036109fb8c60a0848916910151611522565b515116941660a08b0151611522565b8560248301520381305afa9182156102f7576108b495610a31946000946109495750611766565b610943565b5096959097506108b4919450610943565b505092915092505b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0388165afa80156102f757600090610aee575b610a8d92506116ad565b9160243591828410610adc57610abe610aa984610ad1966116ad565b6001549094906001600160a01b0316846116ba565b608001516001600160a01b0316906116ba565b602060405160018152f35b60405163510a529560e01b8152600490fd5b506020823d602011610b1a575b81610b086020938361130a565b8101031261013657610a8d9151610a83565b3d9150610afb565b9093503d806000833e610b35818361130a565b6020828281010312610136578151906001600160401b03821161013657808301601f838501011215610136578183015190610b6f8261132d565b93610b7d604051958661130a565b828552602085019382820160208560061b8385010101116101365793602085830101945b60208560061b82850101018610610bbf575050505050509284610851565b604086858501031261013657604080519081018082116001600160401b039091111761020d576040818101905286516001600160a01b03811681036101365760209382859260409452828a0151838201528152019601959150610ba1565b60408381015190516325eadd2560e01b81526001600160a01b039091166004820152602490fd5b610c5d915060203d6020116104ba576104ac818361130a565b846107e4565b6040838101519051637d250b0b60e11b81526001600160a01b039091166004820152602490fd5b6040830151606084015160a085015192949392610cd3926001600160a01b039081169291610cb7906114ff565b515116906020610cca60a08801516114ff565b51015192611766565b610a4f565b9091506020813d602011610d04575b81610cf46020938361130a565b8101031261013657519083610762565b3d9150610ce7565b60249060405190637d85130d60e11b82526004820152fd5b60405163e372835960e01b8152336004820152602490fd5b346101365760203660031901126101365760206001600160a01b0380610d606111d9565b166000526002825260406000205416604051908152f35b3461013657604036600319011261013657610d906111d9565b610d986111ef565b9060005460ff8160081c161590818092610fab575b8015610f94575b15610f385760ff19811660011760005581610f26575b506000549160ff8360081c1615610ecd5762010000600160b01b03601082901b1662010000600160b01b0319841681176000556040516301ffc9a760e01b8152637965db0b60e01b600482015290946001600160a01b03929091906020908290602490829087165afa9081156102f757600091610eaf575b5015610e9d571660018060a01b03196001541617600155610e5f57005b610100600160b01b03191617600055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b6040516384d942fd60e01b8152600490fd5b610ec7915060203d81116104ba576104ac818361130a565b86610e42565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b61ffff19166101011760005583610dca565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015610db45750600160ff821614610db4565b50600160ff821610610dad565b346101365760003660031901126101365760206040517f39f61ca2a1a28fee144218173ec637b649a353e4026b2738c673800e5bf1437b8152f35b34610136576040366003190112610136576004356001600160401b0381116101365761103261102961104692369060040161125f565b602435916118c4565b6040519182916020835260208301906112af565b0390f35b346101365760003660031901126101365760206040517fe965846df3dd5b1dfa65f58e31477079e90140e0908b6dd31b5aead5a57cf3658152f35b34610136576101403660031901126101365761109f6111d9565b5060e0366023190112610136576001600160401b0361010435818111610136576110cd90369060040161125f565b5050610124359081116101365761016b90369060040161125f565b34610136576080366003190112610136576111016111d9565b506064356001600160401b0381116101365761016b90369060040161122f565b346101365760003660031901126101365760005460405160109190911c6001600160a01b03168152602090f35b346101365760203660031901126101365760043563ffffffff60e01b8116809103610136576000546301ffc9a760e01b835260048301919091526020908290602490829060101c6001600160a01b03165afa80156102f7576020916000916111bc575b506040519015158152f35b6111d39150823d81116104ba576104ac818361130a565b826111b1565b600435906001600160a01b038216820361013657565b602435906001600160a01b038216820361013657565b604435906001600160a01b038216820361013657565b35906001600160a01b038216820361013657565b9181601f84011215610136578235916001600160401b038311610136576020808501948460051b01011161013657565b9181601f84011215610136578235916001600160401b038311610136576020838186019501011161013657565b60005b83811061129f5750506000910152565b818101518382015260200161128f565b906020916112c88151809281855285808601910161128c565b601f01601f1916010190565b60c081019081106001600160401b0382111761020d57604052565b60e081019081106001600160401b0382111761020d57604052565b601f909101601f19168101906001600160401b0382119082101761020d57604052565b6001600160401b03811161020d5760051b60200190565b6001600160401b03811161020d57601f01601f191660200190565b92919261136b82611344565b91611379604051938461130a565b829481845281830111610136578281602093846000960137010152565b9080601f83011215610136578160206113b19335910161135f565b90565b91909160608184031261013657604051906001600160401b03606083018181118482101761020d5760405282946113ea8361121b565b84526020830135918211610136578261140c6040949261141794869401611396565b60208601520161121b565b910152565b9080601f83011215610136578135906114348261132d565b92611442604051948561130a565b828452602092838086019160051b8301019280841161013657848301915b8483106114705750505050505090565b82356001600160401b038111610136578691611491848480948901016113b4565b815201920191611460565b90816020910312610136575180151581036101365790565b6001600160a01b039091168152602081019190915260400190565b3d156114fa573d906114e082611344565b916114ee604051938461130a565b82523d6000602084013e565b606090565b80511561150c5760200190565b634e487b7160e01b600052603260045260246000fd5b805182101561150c5760209160051b010190565b602080825260e0820190835115158184015280840151926040938482015260018060a01b039360a08582880151169660609788850152878101516080850152866080820151168285015201519560c08084015286518095526101009184838501938760051b8601019801966000945b8786106115b85750505050505050505090565b909192939495969798878060019260ff198582030189528c51908682511681528787816115f0868601518d888701528d8601906112af565b940151169101529b019601960194979695939291906115a5565b6113b193926060928252602082015281604082015201906112af565b61ffff8091169081146116395760010190565b634e487b7160e01b600052601160045260246000fd5b602081830312610136578051906001600160401b038211610136570181601f8201121561013657805161168181611344565b9261168f604051948561130a565b81845260208284010111610136576113b1916020808501910161128c565b9190820391821161163957565b60009291836116e56116f38295604051928391602083019663a9059cbb60e01b8852602484016114b4565b03601f19810183528261130a565b51925af16116ff6114cf565b81611737575b501561170d57565b60405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606490fd5b805180159250821561174c575b505038611705565b61175f925060208091830101910161149c565b3880611744565b929060405161178b816116e5602082019463095ea7b360e01b865287602484016114b4565b600094859283809351925af161179f6114cf565b81611803575b50156117d957829182602083519301915af16117bf6114cf565b50156117c757565b604051635aa0560760e11b8152600490fd5b60405162461bcd60e51b8152602060048201526002602482015261534160f01b6044820152606490fd5b8051801592508215611818575b5050386117a5565b61182b925060208091830101910161149c565b3880611810565b81601f82011215610136578035916118498361132d565b92611857604051948561130a565b808452602092838086019260051b820101928311610136578301905b828210611881575050505090565b81358152908301908301611873565b90815180825260208080930193019160005b8281106118b0575050505090565b8351855293810193928101926001016118a2565b90600481811193846101365783356001600160e01b03191694637224811760e11b808714611c4d5750630502b1c560e01b868114611bc957506312aa3caf60e01b86146119f0576384bd6d2960e01b958614611929575050506113b19250369161135f565b93929091936101365761010090830183900360031901126101365761194f83830161121b565b61195b6024840161121b565b906119686044850161121b565b9060405196602088015260018060a01b03928380921660248901521660448701521660648501526084840152600160a484015260a481013560c484015260c481013560e484015260e461010491013581840152825261014082019082821060018060401b038311176119db575060405290565b604190634e487b7160e01b6000525260246000fd5b90929193945061013657830191838303916101406003198401126101365760e0611a1b83870161121b565b9360231901126101365760405190611a32826112ef565b611a3e6024870161121b565b8252611a4c6044870161121b565b9560208301968752611a606064820161121b565b60408401908152611a736084830161121b565b6060850190815260a4830135608086015260c483013560a086015260e483013560c086019081526001600160401b039491610104850135868111610136578a89611abf92880101611396565b94610124810135968711610136576113b19a6116e599611bb698611ae4930101611396565b96519a519351905191516040519b90946001600160a01b0393841693928316929081169116611b128d6112ef565b8c526020808d019182526040808e0193845260608e0194855260808e01958652600160a08f0190815260c08f0197885290516312aa3caf60e01b928101929092526001600160a01b039b8c1660248301529c518b16604482015290518a166064820152905189166084820152905190971660a48801525160c4870152965160e4860152955161010485015261014061012485015292948593906101648501906112af565b83810360231901610144850152906112af565b939192949550610136578401906080858303600319011261013657611bef84860161121b565b946064810135926001600160401b038411610136576113b1956116e594611c17930101611832565b90604051958694602086015260018060a01b031660248501526044840152600160648401526080608484015260a4830190611890565b94939195505060009083019260606003198286030112611cbc576044810135916001600160401b038311611cb95750926116e592611c91926113b196950101611832565b6040519485936020850152602484015260016044840152606060648401526084830190611890565b80fd5b5080fdfea2646970667358221220c26ee0eaa7a1c46114982430675f3552f36a0cb845981faa9ae4e0c97953365564736f6c63430008110033",
"deployedBytecode": "0x608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a71461114e5750806303ee9f22146111215780630502b1c5146110e857806312aa3caf1461108557806314c376dc1461104a5780631e61130614610ff3578063438280dd14610fb8578063485cc95514610d775780634dec53e014610d3c5780636a2f53c21461061d57806371d0fb41146105e257806374cc2bdd1461054457806375b238fc1461052857806384bd6d29146104fc5780638e5313e0146104c1578063943a0f131461033e578063dc97e84e14610303578063e37c74a11461016d578063e449022e1461013b5763e9c26518146100fb57600080fd5b346101365760003660031901126101365760206040517f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b26038152f35b600080fd5b34610136576060366003190112610136576044356001600160401b0381116101365761016b90369060040161122f565b005b34610136576080366003190112610136576004356101896111ef565b90604435906001600160401b0390606435828111610136576101af9036906004016113b4565b9060405194604086018681108582111761020d576040526001865260005b6020908181101561022357604051606092838201938285108986111761020d57602094604052600083528183015260006040830152828a010152016101cd565b634e487b7160e01b600052604160045260246000fd5b836102c3846102988b8b8a610237836114ff565b52610241826114ff565b506001546040516001600160a01b039791881693600092916102a691610266826112d4565b84825260209a8b99858b85015216604083015285606083015233608083015260a0820152604051968791898301611536565b03601f19810187528661130a565b604051637176836f60e11b8152968795869485936004850161160a565b03925af180156102f7576102d357005b813d83116102f0575b6102e6818361130a565b8101031261013657005b503d6102dc565b6040513d6000823e3d90fd5b346101365760003660031901126101365760206040517f9a9aef7c1247d5fc769b0185c052913e39673da29a880317dfd20ebf86f26a498152f35b34610136576040366003190112610136576103576111d9565b61035f6111ef565b9060018060a01b03908160005460101c16926040518094632474521560e21b82526000600483015233602483015281604460209788935afa9081156102f757600091610494575b50156104825782169181166000526002835260406000208260018060a01b0319825416179055604051908382019263095ea7b360e01b84526024830152600019604483015260448252608082019282841060018060401b0385111761020d576000809493819460405251925af161041b6114cf565b81610452575b501561042957005b6064906040519062461bcd60e51b825260048201526002602482015261534160f01b6044820152fd5b8051801592508390831561046a575b50505082610421565b61047a935082018101910161149c565b828281610461565b604051631886ea7d60e11b8152600490fd5b6104b49150853d87116104ba575b6104ac818361130a565b81019061149c565b856103a6565b503d6104a2565b346101365760003660031901126101365760206040517fe453bacb314e78dcd5192e6b1a2b1f0e7c76e92f6b7e429a6a90f04e39db3b768152f35b3461013657610100366003190112610136576105166111d9565b5061051f6111ef565b5061016b611205565b3461013657600036600319011261013657602060405160008152f35b34610136576080366003190112610136576004356105606111ef565b604435906064356001600160401b038111610136576102c39261058a61029892369060040161141c565b6001546040516001600160a01b03979188169392600092916102a6916105af826112d4565b6001825260209a8b99858b85015216604083015285606083015233608083015260a0820152604051968791898301611536565b346101365760003660031901126101365760206040517f880a91047114272656e533301261260c75e4d11543ac7303d6fe4204579ec7278152f35b34610136576080366003190112610136576106366111d9565b61063e611205565b906064356001600160401b0381116101365761065e90369060040161125f565b81019290602081850312610136578035906001600160401b038211610136570160c081850312610136576040519360c085016001600160401b0381118682101761020d5760405281358015158103610136578552602082013560208601526106c86040830161121b565b6040860152606082013560608601526106e36080830161121b565b608086015260a08201356001600160401b03811161013657610705920161141c565b60a08401526001546001600160a01b03163303610d24576001600160a01b0316308103610d0c57506040516370a0823160e01b8152306004820152906020826024816001600160a01b0385165afa9182156102f757600092610cd8575b50825115610c8a576040838101516001600160a01b039081166000908152600260205291909120541615610c6357604083810180516001600160a01b039081166000908152600260209081528482205493519451635136211760e01b8152948316600486015292849260249284929091165af19081156102f757600091610c44575b5015610c1d57604080840180516001600160a01b03908116600090815260026020528381205492516060880151945163f3fef3a360e01b8152979594919388939081169284928692849261083e92909116600484016114b4565b03925af19384156102f757600094610b22575b5060a0820151519184519460005b8661ffff82161015610a47576001600160a01b0361088161ffff831684611522565b51511690602061089561ffff831685611522565b5101516001600160a01b03861683036108b9575b506108b49150611626565b61085f565b86890361096e5761091b9060018060a01b036108dd61ffff851660a0890151611522565b515116600060206108f661ffff871660a08b0151611522565b51015160405180958192630f30898360e11b83526040600484015260448301906112af565b8560248301520381305afa9182156102f7576108b49561094394600094610949575b50611766565b886108a9565b6109679194503d806000833e61095f818361130a565b81019061164f565b928d61093d565b94919790959660005b8861ffff82161015610a36576001600160a01b0361099961ffff8a1687611522565b51511660018060a01b0360406109b761ffff851660a08b0151611522565b51015116146109ce576109c990611626565b610977565b95610a0a91989792999396600060206108f661ffff60018060a01b036109fb8c60a0848916910151611522565b515116941660a08b0151611522565b8560248301520381305afa9182156102f7576108b495610a31946000946109495750611766565b610943565b5096959097506108b4919450610943565b505092915092505b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0388165afa80156102f757600090610aee575b610a8d92506116ad565b9160243591828410610adc57610abe610aa984610ad1966116ad565b6001549094906001600160a01b0316846116ba565b608001516001600160a01b0316906116ba565b602060405160018152f35b60405163510a529560e01b8152600490fd5b506020823d602011610b1a575b81610b086020938361130a565b8101031261013657610a8d9151610a83565b3d9150610afb565b9093503d806000833e610b35818361130a565b6020828281010312610136578151906001600160401b03821161013657808301601f838501011215610136578183015190610b6f8261132d565b93610b7d604051958661130a565b828552602085019382820160208560061b8385010101116101365793602085830101945b60208560061b82850101018610610bbf575050505050509284610851565b604086858501031261013657604080519081018082116001600160401b039091111761020d576040818101905286516001600160a01b03811681036101365760209382859260409452828a0151838201528152019601959150610ba1565b60408381015190516325eadd2560e01b81526001600160a01b039091166004820152602490fd5b610c5d915060203d6020116104ba576104ac818361130a565b846107e4565b6040838101519051637d250b0b60e11b81526001600160a01b039091166004820152602490fd5b6040830151606084015160a085015192949392610cd3926001600160a01b039081169291610cb7906114ff565b515116906020610cca60a08801516114ff565b51015192611766565b610a4f565b9091506020813d602011610d04575b81610cf46020938361130a565b8101031261013657519083610762565b3d9150610ce7565b60249060405190637d85130d60e11b82526004820152fd5b60405163e372835960e01b8152336004820152602490fd5b346101365760203660031901126101365760206001600160a01b0380610d606111d9565b166000526002825260406000205416604051908152f35b3461013657604036600319011261013657610d906111d9565b610d986111ef565b9060005460ff8160081c161590818092610fab575b8015610f94575b15610f385760ff19811660011760005581610f26575b506000549160ff8360081c1615610ecd5762010000600160b01b03601082901b1662010000600160b01b0319841681176000556040516301ffc9a760e01b8152637965db0b60e01b600482015290946001600160a01b03929091906020908290602490829087165afa9081156102f757600091610eaf575b5015610e9d571660018060a01b03196001541617600155610e5f57005b610100600160b01b03191617600055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b6040516384d942fd60e01b8152600490fd5b610ec7915060203d81116104ba576104ac818361130a565b86610e42565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fd5b61ffff19166101011760005583610dca565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b158015610db45750600160ff821614610db4565b50600160ff821610610dad565b346101365760003660031901126101365760206040517f39f61ca2a1a28fee144218173ec637b649a353e4026b2738c673800e5bf1437b8152f35b34610136576040366003190112610136576004356001600160401b0381116101365761103261102961104692369060040161125f565b602435916118c4565b6040519182916020835260208301906112af565b0390f35b346101365760003660031901126101365760206040517fe965846df3dd5b1dfa65f58e31477079e90140e0908b6dd31b5aead5a57cf3658152f35b34610136576101403660031901126101365761109f6111d9565b5060e0366023190112610136576001600160401b0361010435818111610136576110cd90369060040161125f565b5050610124359081116101365761016b90369060040161125f565b34610136576080366003190112610136576111016111d9565b506064356001600160401b0381116101365761016b90369060040161122f565b346101365760003660031901126101365760005460405160109190911c6001600160a01b03168152602090f35b346101365760203660031901126101365760043563ffffffff60e01b8116809103610136576000546301ffc9a760e01b835260048301919091526020908290602490829060101c6001600160a01b03165afa80156102f7576020916000916111bc575b506040519015158152f35b6111d39150823d81116104ba576104ac818361130a565b826111b1565b600435906001600160a01b038216820361013657565b602435906001600160a01b038216820361013657565b604435906001600160a01b038216820361013657565b35906001600160a01b038216820361013657565b9181601f84011215610136578235916001600160401b038311610136576020808501948460051b01011161013657565b9181601f84011215610136578235916001600160401b038311610136576020838186019501011161013657565b60005b83811061129f5750506000910152565b818101518382015260200161128f565b906020916112c88151809281855285808601910161128c565b601f01601f1916010190565b60c081019081106001600160401b0382111761020d57604052565b60e081019081106001600160401b0382111761020d57604052565b601f909101601f19168101906001600160401b0382119082101761020d57604052565b6001600160401b03811161020d5760051b60200190565b6001600160401b03811161020d57601f01601f191660200190565b92919261136b82611344565b91611379604051938461130a565b829481845281830111610136578281602093846000960137010152565b9080601f83011215610136578160206113b19335910161135f565b90565b91909160608184031261013657604051906001600160401b03606083018181118482101761020d5760405282946113ea8361121b565b84526020830135918211610136578261140c6040949261141794869401611396565b60208601520161121b565b910152565b9080601f83011215610136578135906114348261132d565b92611442604051948561130a565b828452602092838086019160051b8301019280841161013657848301915b8483106114705750505050505090565b82356001600160401b038111610136578691611491848480948901016113b4565b815201920191611460565b90816020910312610136575180151581036101365790565b6001600160a01b039091168152602081019190915260400190565b3d156114fa573d906114e082611344565b916114ee604051938461130a565b82523d6000602084013e565b606090565b80511561150c5760200190565b634e487b7160e01b600052603260045260246000fd5b805182101561150c5760209160051b010190565b602080825260e0820190835115158184015280840151926040938482015260018060a01b039360a08582880151169660609788850152878101516080850152866080820151168285015201519560c08084015286518095526101009184838501938760051b8601019801966000945b8786106115b85750505050505050505090565b909192939495969798878060019260ff198582030189528c51908682511681528787816115f0868601518d888701528d8601906112af565b940151169101529b019601960194979695939291906115a5565b6113b193926060928252602082015281604082015201906112af565b61ffff8091169081146116395760010190565b634e487b7160e01b600052601160045260246000fd5b602081830312610136578051906001600160401b038211610136570181601f8201121561013657805161168181611344565b9261168f604051948561130a565b81845260208284010111610136576113b1916020808501910161128c565b9190820391821161163957565b60009291836116e56116f38295604051928391602083019663a9059cbb60e01b8852602484016114b4565b03601f19810183528261130a565b51925af16116ff6114cf565b81611737575b501561170d57565b60405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606490fd5b805180159250821561174c575b505038611705565b61175f925060208091830101910161149c565b3880611744565b929060405161178b816116e5602082019463095ea7b360e01b865287602484016114b4565b600094859283809351925af161179f6114cf565b81611803575b50156117d957829182602083519301915af16117bf6114cf565b50156117c757565b604051635aa0560760e11b8152600490fd5b60405162461bcd60e51b8152602060048201526002602482015261534160f01b6044820152606490fd5b8051801592508215611818575b5050386117a5565b61182b925060208091830101910161149c565b3880611810565b81601f82011215610136578035916118498361132d565b92611857604051948561130a565b808452602092838086019260051b820101928311610136578301905b828210611881575050505090565b81358152908301908301611873565b90815180825260208080930193019160005b8281106118b0575050505090565b8351855293810193928101926001016118a2565b90600481811193846101365783356001600160e01b03191694637224811760e11b808714611c4d5750630502b1c560e01b868114611bc957506312aa3caf60e01b86146119f0576384bd6d2960e01b958614611929575050506113b19250369161135f565b93929091936101365761010090830183900360031901126101365761194f83830161121b565b61195b6024840161121b565b906119686044850161121b565b9060405196602088015260018060a01b03928380921660248901521660448701521660648501526084840152600160a484015260a481013560c484015260c481013560e484015260e461010491013581840152825261014082019082821060018060401b038311176119db575060405290565b604190634e487b7160e01b6000525260246000fd5b90929193945061013657830191838303916101406003198401126101365760e0611a1b83870161121b565b9360231901126101365760405190611a32826112ef565b611a3e6024870161121b565b8252611a4c6044870161121b565b9560208301968752611a606064820161121b565b60408401908152611a736084830161121b565b6060850190815260a4830135608086015260c483013560a086015260e483013560c086019081526001600160401b039491610104850135868111610136578a89611abf92880101611396565b94610124810135968711610136576113b19a6116e599611bb698611ae4930101611396565b96519a519351905191516040519b90946001600160a01b0393841693928316929081169116611b128d6112ef565b8c526020808d019182526040808e0193845260608e0194855260808e01958652600160a08f0190815260c08f0197885290516312aa3caf60e01b928101929092526001600160a01b039b8c1660248301529c518b16604482015290518a166064820152905189166084820152905190971660a48801525160c4870152965160e4860152955161010485015261014061012485015292948593906101648501906112af565b83810360231901610144850152906112af565b939192949550610136578401906080858303600319011261013657611bef84860161121b565b946064810135926001600160401b038411610136576113b1956116e594611c17930101611832565b90604051958694602086015260018060a01b031660248501526044840152600160648401526080608484015260a4830190611890565b94939195505060009083019260606003198286030112611cbc576044810135916001600160401b038311611cb95750926116e592611c91926113b196950101611832565b6040519485936020850152602484015260016044840152606060648401526084830190611890565b80fd5b5080fdfea2646970667358221220c26ee0eaa7a1c46114982430675f3552f36a0cb845981faa9ae4e0c97953365564736f6c63430008110033",
"devdoc": {
"details": "See IArbitrageHelper interface for full details.",
"kind": "dev",
"methods": {
"changeCalldataAmount(bytes,uint256)": {
"params": {
"data": "- calldata to edit",
"newAmount": "- new amount that should replace amount in {data}"
},
"returns": {
"_0": "edited calldata with new amount inside*"
}
},
"stableunitFillOrderCallback(address,uint256,address,bytes)": {
"details": "behaviour like in uniswapV3FlashCallback: https://docs.uniswap.org/contracts/v3/guides/flash-integrations/flash-callback and AAVE flash-loan callback: https://github.com/aave/aave-v3-core/blob/master/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol*"
},
"supportsInterface(bytes4)": {
"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
},
"swapLPWithFlashLoan(uint256,address,uint256,(address,bytes,address)[])": {
"details": "Contract receive LP-token from exchange module, unwrap it and swap with 1inch all underline tokens to token that exchange module need.",
"params": {
"inchData": "- 1inch callData and contract array to swap every underline token of LP*",
"orderId": "- Id of order in Exchange module to fill",
"token2sell": "- Token in order to get as flash-loan",
"token2sellAmount": "- Amount of token in order to get as flash-loan"
}
},
"swapWithFlashLoan(uint256,address,uint256,(address,bytes,address))": {
"details": "Contract receive loan from exchange module, sell it on 1inch and get profit = received amount - fee",
"params": {
"inchData": "- 1inch callData and contract to swap loan*",
"orderId": "- Id of order in Exchange module to fill",
"token2sell": "- Token in order to get as flash-loan",
"token2sellAmount": "- Amount of token in order to get as flash-loan"
}
}
},
"title": "ArbitrageHelper",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"changeCalldataAmount(bytes,uint256)": {
"notice": "Helper function to change amount parameter on callback that depends on return by 1inch API calldata for swap We set minAmount to 1 to be sure, that swap will be created. Route path don't depend on that - this path was calculated previously in backend part and is stored in {data}."
},
"stableunitFillOrderCallback(address,uint256,address,bytes)": {
"notice": "This is callback function from Exchange contract. fillOrderAsFlashLoan call (msg.sender).executeOperation(...) after transferring loan to sender"
},
"swapLPWithFlashLoan(uint256,address,uint256,(address,bytes,address)[])": {
"notice": "The same as swapWithFlashLoan, but loan is LP-token that we need to unwrap"
},
"swapWithFlashLoan(uint256,address,uint256,(address,bytes,address))": {
"notice": "Reference implementation of Arbitrage bot contract, that use Exchange module to get profit"
},
"uniswapV3Swap(uint256,uint256,uint256[])": {
"notice": "We need this functions to check their selector and functionSelector in calldata for changeCalldataAmount() function*"
}
},
"notice": "Helper contract to arbitrage using Exchange module",
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 671,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8"
},
{
"astId": 674,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool"
},
{
"astId": 28586,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "ACCESS_CONTROL_SINGLETON",
"offset": 2,
"slot": "0",
"type": "t_contract(ISuAccessControl)32175"
},
{
"astId": 17999,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "EXCHANGE",
"offset": 0,
"slot": "1",
"type": "t_contract(IExchange)19916"
},
{
"astId": 18004,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "lpToAdapter",
"offset": 0,
"slot": "2",
"type": "t_mapping(t_address,t_contract(ILPAdapter)32236)"
},
{
"astId": 18513,
"contract": "contracts/exchange/contracts/ArbitrageHelper.sol:ArbitrageHelper",
"label": "__gap",
"offset": 0,
"slot": "3",
"type": "t_array(t_uint256)45_storage"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)45_storage": {
"base": "t_uint256",
"encoding": "inplace",
"label": "uint256[45]",
"numberOfBytes": "1440"
},
"t_bool": {
"encoding": "inplace",
"label": "bool",
"numberOfBytes": "1"
},
"t_contract(IExchange)19916": {
"encoding": "inplace",
"label": "contract IExchange",
"numberOfBytes": "20"
},
"t_contract(ILPAdapter)32236": {
"encoding": "inplace",
"label": "contract ILPAdapter",
"numberOfBytes": "20"
},
"t_contract(ISuAccessControl)32175": {
"encoding": "inplace",
"label": "contract ISuAccessControl",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_contract(ILPAdapter)32236)": {
"encoding": "mapping",
"key": "t_address",
"label": "mapping(address => contract ILPAdapter)",
"numberOfBytes": "32",
"value": "t_contract(ILPAdapter)32236"
},
"t_uint256": {
"encoding": "inplace",
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"encoding": "inplace",
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}