CompliFi
Search…
ABIs

Pool Factory

1
[
2
{
3
"inputs": [
4
{
5
"internalType": "uint256",
6
"name": "_index",
7
"type": "uint256"
8
}
9
],
10
"name": "getPool",
11
"outputs": [
12
{
13
"internalType": "address",
14
"name": "",
15
"type": "address"
16
}
17
],
18
"stateMutability": "view",
19
"type": "function",
20
"constant": true
21
},
22
{
23
"inputs": [],
24
"name": "getLastPoolIndex",
25
"outputs": [
26
{
27
"internalType": "uint256",
28
"name": "",
29
"type": "uint256"
30
}
31
],
32
"stateMutability": "view",
33
"type": "function",
34
"constant": true
35
},
36
{
37
"inputs": [],
38
"name": "getAllPools",
39
"outputs": [
40
{
41
"internalType": "address[]",
42
"name": "",
43
"type": "address[]"
44
}
45
],
46
"stateMutability": "view",
47
"type": "function",
48
"constant": true
49
}
50
]
Copied!

Pool

1
[
2
{
3
"inputs": [],
4
"name": "version",
5
"outputs": [
6
{
7
"internalType": "uint256",
8
"name": "",
9
"type": "uint256"
10
}
11
],
12
"stateMutability": "pure",
13
"type": "function"
14
},
15
{
16
"inputs": [],
17
"name": "getPoolSharePrice",
18
"outputs": [
19
{
20
"internalType": "uint256",
21
"name": "",
22
"type": "uint256"
23
}
24
],
25
"stateMutability": "nonpayable",
26
"type": "function"
27
},
28
{
29
"inputs": [
30
{
31
"internalType": "uint256",
32
"name": "_derivativeIndex",
33
"type": "uint256"
34
}
35
],
36
"name": "getDerivativePrice",
37
"outputs": [
38
{
39
"components": [
40
{
41
"internalType": "int256",
42
"name": "primary",
43
"type": "int256"
44
},
45
{
46
"internalType": "int256",
47
"name": "complement",
48
"type": "int256"
49
}
50
],
51
"internalType": "struct IPoolTypes.PricePair",
52
"name": "",
53
"type": "tuple"
54
}
55
],
56
"stateMutability": "nonpayable",
57
"type": "function"
58
},
59
{
60
"inputs": [
61
{
62
"internalType": "address",
63
"name": "user",
64
"type": "address"
65
}
66
],
67
"name": "getPortfolioBy",
68
"outputs": [
69
{
70
"internalType": "uint256",
71
"name": "",
72
"type": "uint256"
73
}
74
],
75
"stateMutability": "view",
76
"type": "function"
77
},
78
{
79
"inputs": [
80
{
81
"internalType": "address",
82
"name": "user",
83
"type": "address"
84
}
85
],
86
"name": "checkPortfolioOf",
87
"outputs": [
88
{
89
"internalType": "bool",
90
"name": "",
91
"type": "bool"
92
}
93
],
94
"stateMutability": "view",
95
"type": "function"
96
},
97
{
98
"inputs": [
99
{
100
"internalType": "uint256",
101
"name": "_portfolioId",
102
"type": "uint256"
103
},
104
{
105
"internalType": "uint256",
106
"name": "_derivativeIndex",
107
"type": "uint256"
108
}
109
],
110
"name": "derivativeBalanceOf",
111
"outputs": [
112
{
113
"components": [
114
{
115
"internalType": "uint256",
116
"name": "primary",
117
"type": "uint256"
118
},
119
{
120
"internalType": "uint256",
121
"name": "complement",
122
"type": "uint256"
123
}
124
],
125
"internalType": "struct IPoolTypes.Pair",
126
"name": "",
127
"type": "tuple"
128
}
129
],
130
"stateMutability": "view",
131
"type": "function"
132
},
133
{
134
"inputs": [
135
{
136
"internalType": "uint256",
137
"name": "_portfolioId",
138
"type": "uint256"
139
},
140
{
141
"internalType": "uint256",
142
"name": "_derivativeIndex",
143
"type": "uint256"
144
}
145
],
146
"name": "derivativeVintageIndexOf",
147
"outputs": [
148
{
149
"internalType": "uint256",
150
"name": "",
151
"type": "uint256"
152
}
153
],
154
"stateMutability": "view",
155
"type": "function"
156
},
157
{
158
"inputs": [
159
{
160
"internalType": "address",
161
"name": "_owner",
162
"type": "address"
163
}
164
],
165
"name": "releasedLiquidityOf",
166
"outputs": [
167
{
168
"internalType": "uint256",
169
"name": "",
170
"type": "uint256"
171
}
172
],
173
"stateMutability": "view",
174
"type": "function"
175
},
176
{
177
"inputs": [],
178
"name": "getDerivatives",
179
"outputs": [
180
{
181
"components": [
182
{
183
"components": [
184
{
185
"internalType": "contract IDerivativeSpecification",
186
"name": "specification",
187
"type": "address"
188
},
189
{
190
"internalType": "address[]",
191
"name": "underlyingOracles",
192
"type": "address[]"
193
},
194
{
195
"internalType": "address[]",
196
"name": "underlyingOracleIterators",
197
"type": "address[]"
198
},
199
{
200
"internalType": "address",
201
"name": "collateralToken",
202
"type": "address"
203
},
204
{
205
"internalType": "contract ICollateralSplit",
206
"name": "collateralSplit",
207
"type": "address"
208
}
209
],
210
"internalType": "struct IPoolTypes.DerivativeConfig",
211
"name": "config",
212
"type": "tuple"
213
},
214
{
215
"internalType": "address",
216
"name": "terms",
217
"type": "address"
218
},
219
{
220
"components": [
221
{
222
"internalType": "enum IPoolTypes.Mode",
223
"name": "mode",
224
"type": "uint8"
225
},
226
{
227
"internalType": "enum IPoolTypes.Side",
228
"name": "side",
229
"type": "uint8"
230
},
231
{
232
"internalType": "uint256",
233
"name": "settlementDelta",
234
"type": "uint256"
235
},
236
{
237
"internalType": "uint256",
238
"name": "strikePosition",
239
"type": "uint256"
240
}
241
],
242
"internalType": "struct IPoolTypes.Sequence",
243
"name": "sequence",
244
"type": "tuple"
245
},
246
{
247
"components": [
248
{
249
"internalType": "uint256",
250
"name": "priceReference",
251
"type": "uint256"
252
},
253
{
254
"internalType": "uint256",
255
"name": "settlement",
256
"type": "uint256"
257
},
258
{
259
"internalType": "uint256",
260
"name": "denomination",
261
"type": "uint256"
262
}
263
],
264
"internalType": "struct IPoolTypes.DerivativeParams",
265
"name": "params",
266
"type": "tuple"
267
}
268
],
269
"internalType": "struct IPoolTypes.Derivative[]",
270
"name": "",
271
"type": "tuple[]"
272
}
273
],
274
"stateMutability": "view",
275
"type": "function"
276
},
277
{
278
"inputs": [
279
{
280
"internalType": "uint256",
281
"name": "_derivativeIndex",
282
"type": "uint256"
283
}
284
],
285
"name": "getDerivativeVintages",
286
"outputs": [
287
{
288
"components": [
289
{
290
"components": [
291
{
292
"internalType": "uint256",
293
"name": "primary",
294
"type": "uint256"
295
},
296
{
297
"internalType": "uint256",
298
"name": "complement",
299
"type": "uint256"
300
}
301
],
302
"internalType": "struct IPoolTypes.Pair",
303
"name": "rollRate",
304
"type": "tuple"
305
},
306
{
307
"components": [
308
{
309
"internalType": "uint256",
310
"name": "primary",
311
"type": "uint256"
312
},
313
{
314
"internalType": "uint256",
315
"name": "complement",
316
"type": "uint256"
317
}
318
],
319
"internalType": "struct IPoolTypes.Pair",
320
"name": "releaseRate",
321
"type": "tuple"
322
},
323
{
324
"internalType": "uint256",
325
"name": "priceReference",
326
"type": "uint256"
327
}
328
],
329
"internalType": "struct IPoolTypes.Vintage[]",
330
"name": "",
331
"type": "tuple[]"
332
}
333
],
334
"stateMutability": "view",
335
"type": "function"
336
},
337
{
338
"inputs": [],
339
"name": "getConfig",
340
"outputs": [
341
{
342
"components": [
343
{
344
"internalType": "uint256",
345
"name": "minExitAmount",
346
"type": "uint256"
347
},
348
{
349
"internalType": "uint256",
350
"name": "protocolFee",
351
"type": "uint256"
352
},
353
{
354
"internalType": "address",
355
"name": "feeWallet",
356
"type": "address"
357
},
358
{
359
"internalType": "contract IERC20",
360
"name": "collateralToken",
361
"type": "address"
362
},
363
{
364
"internalType": "address",
365
"name": "collateralOracle",
366
"type": "address"
367
},
368
{
369
"internalType": "contract IOracleIterator",
370
"name": "collateralOracleIterator",
371
"type": "address"
372
},
373
{
374
"internalType": "contract IVolatilityEvolution",
375
"name": "volatilityEvolution",
376
"type": "address"
377
},
378
{
379
"internalType": "contract IUnderlyingLiquidityValuer",
380
"name": "underlyingLiquidityValuer",
381
"type": "address"
382
},
383
{
384
"internalType": "contract IExposure",
385
"name": "exposure",
386
"type": "address"
387
},
388
{
389
"internalType": "contract IERC20MintedBurnable",
390
"name": "poolShare",
391
"type": "address"
392
},
393
{
394
"internalType": "contract ITraderPortfolio",
395
"name": "traderPortfolio",
396
"type": "address"
397
},
398
{
399
"internalType": "uint8",
400
"name": "collateralDecimals",
401
"type": "uint8"
402
}
403
],
404
"internalType": "struct IPoolConfigTypes.PoolConfig",
405
"name": "",
406
"type": "tuple"
407
}
408
],
409
"stateMutability": "view",
410
"type": "function"
411
},
412
{
413
"inputs": [
414
{
415
"internalType": "uint256",
416
"name": "_collateralAmount",
417
"type": "uint256"
418
},
419
{
420
"internalType": "uint256",
421
"name": "_minPoolShareAmountOut",
422
"type": "uint256"
423
},
424
{
425
"components": [
426
{
427
"internalType": "uint256",
428
"name": "derivativeIndex",
429
"type": "uint256"
430
},
431
{
432
"internalType": "uint256",
433
"name": "collateralRoundHint",
434
"type": "uint256"
435
},
436
{
437
"internalType": "uint256[]",
438
"name": "underlyingRoundHintsIndexed",
439
"type": "uint256[]"
440
},
441
{
442
"internalType": "uint256",
443
"name": "volatilityRoundHint",
444
"type": "uint256"
445
}
446
],
447
"internalType": "struct IPoolTypes.RolloverHints[]",
448
"name": "_rolloverHintsList",
449
"type": "tuple[]"
450
}
451
],
452
"name": "join",
453
"outputs": [],
454
"stateMutability": "nonpayable",
455
"type": "function"
456
},
457
{
458
"inputs": [
459
{
460
"internalType": "uint256",
461
"name": "_collateralAmount",
462
"type": "uint256"
463
},
464
{
465
"internalType": "uint256",
466
"name": "_minPoolShareAmountOut",
467
"type": "uint256"
468
}
469
],
470
"name": "joinSimple",
471
"outputs": [],
472
"stateMutability": "nonpayable",
473
"type": "function"
474
},
475
{
476
"inputs": [
477
{
478
"internalType": "uint256",
479
"name": "_poolShareAmountIn",
480
"type": "uint256"
481
},
482
{
483
"components": [
484
{
485
"internalType": "uint256",
486
"name": "derivativeIndex",
487
"type": "uint256"
488
},
489
{
490
"internalType": "uint256",
491
"name": "collateralRoundHint",
492
"type": "uint256"
493
},
494
{
495
"internalType": "uint256[]",
496
"name": "underlyingRoundHintsIndexed",
497
"type": "uint256[]"
498
},
499
{
500
"internalType": "uint256",
501
"name": "volatilityRoundHint",
502
"type": "uint256"
503
}
504
],
505
"internalType": "struct IPoolTypes.RolloverHints[]",
506
"name": "_rolloverHintsList",
507
"type": "tuple[]"
508
}
509
],
510
"name": "exit",
511
"outputs": [],
512
"stateMutability": "nonpayable",
513
"type": "function"
514
},
515
{
516
"inputs": [
517
{
518
"internalType": "uint256",
519
"name": "_poolShareAmountIn",
520
"type": "uint256"
521
}
522
],
523
"name": "exitSimple",
524
"outputs": [],
525
"stateMutability": "nonpayable",
526
"type": "function"
527
},
528
{
529
"inputs": [
530
{
531
"internalType": "uint256",
532
"name": "_collateralAmount",
533
"type": "uint256"
534
},
535
{
536
"internalType": "uint256",
537
"name": "_derivativeIndex",
538
"type": "uint256"
539
},
540
{
541
"internalType": "enum IPoolTypes.Side",
542
"name": "_side",
543
"type": "uint8"
544
},
545
{
546
"internalType": "uint256",
547
"name": "_minDerivativeAmount",
548
"type": "uint256"
549
},
550
{
551
"internalType": "bool",
552
"name": "redeemable",
553
"type": "bool"
554
},
555
{
556
"components": [
557
{
558
"internalType": "uint256",
559
"name": "derivativeIndex",
560
"type": "uint256"
561
},
562
{
563
"internalType": "uint256",
564
"name": "collateralRoundHint",
565
"type": "uint256"
566
},
567
{
568
"internalType": "uint256[]",
569
"name": "underlyingRoundHintsIndexed",
570
"type": "uint256[]"
571
},
572
{
573
"internalType": "uint256",
574
"name": "volatilityRoundHint",
575
"type": "uint256"
576
}
577
],
578
"internalType": "struct IPoolTypes.RolloverHints[]",
579
"name": "_rolloverHintsList",
580
"type": "tuple[]"
581
}
582
],
583
"name": "buy",
584
"outputs": [],
585
"stateMutability": "nonpayable",
586
"type": "function"
587
},
588
{
589
"inputs": [
590
{
591
"internalType": "uint256",
592
"name": "_derivativeAmount",
593
"type": "uint256"
594
},
595
{
596
"internalType": "uint256",
597
"name": "_derivativeIndex",
598
"type": "uint256"
599
},
600
{
601
"internalType": "enum IPoolTypes.Side",
602
"name": "_side",
603
"type": "uint8"
604
},
605
{
606
"internalType": "uint256",
607
"name": "_minCollateralAmount",
608
"type": "uint256"
609
},
610
{
611
"internalType": "bool",
612
"name": "redeemable",
613
"type": "bool"
614
},
615
{
616
"components": [
617
{
618
"internalType": "uint256",
619
"name": "derivativeIndex",
620
"type": "uint256"
621
},
622
{
623
"internalType": "uint256",
624
"name": "collateralRoundHint",
625
"type": "uint256"
626
},
627
{
628
"internalType": "uint256[]",
629
"name": "underlyingRoundHintsIndexed",
630
"type": "uint256[]"
631
},
632
{
633
"internalType": "uint256",
634
"name": "volatilityRoundHint",
635
"type": "uint256"
636
}
637
],
638
"internalType": "struct IPoolTypes.RolloverHints[]",
639
"name": "_rolloverHintsList",
640
"type": "tuple[]"
641
}
642
],
643
"name": "sell",
644
"outputs": [],
645
"stateMutability": "nonpayable",
646
"type": "function"
647
},
648
{
649
"inputs": [
650
{
651
"internalType": "uint256",
652
"name": "_pointInTime",
653
"type": "uint256"
654
}
655
],
656
"name": "getOldestDerivativeForRollover",
657
"outputs": [
658
{
659
"internalType": "uint256",
660
"name": "",
661
"type": "uint256"
662
}
663
],
664
"stateMutability": "view",
665
"type": "function"
666
},
667
{
668
"inputs": [
669
{
670
"internalType": "uint256",
671
"name": "_pointInTime",
672
"type": "uint256"
673
},
674
{
675
"components": [
676
{
677
"internalType": "uint256",
678
"name": "derivativeIndex",
679
"type": "uint256"
680
},
681
{
682
"internalType": "uint256",
683
"name": "collateralRoundHint",
684
"type": "uint256"
685
},
686
{
687
"internalType": "uint256[]",
688
"name": "underlyingRoundHintsIndexed",
689
"type": "uint256[]"
690
},
691
{
692
"internalType": "uint256",
693
"name": "volatilityRoundHint",
694
"type": "uint256"
695
}
696
],
697
"internalType": "struct IPoolTypes.RolloverHints[]",
698
"name": "_rolloverHintsList",
699
"type": "tuple[]"
700
}
701
],
702
"name": "rolloverOldestDerivativeBatch",
703
"outputs": [],
704
"stateMutability": "nonpayable",
705
"type": "function"
706
},
707
{
708
"inputs": [
709
{
710
"internalType": "uint256",
711
"name": "_collateralAmount",
712
"type": "uint256"
713
}
714
],
715
"name": "withdrawReleasedLiquidity",
716
"outputs": [],
717
"stateMutability": "nonpayable",
718
"type": "function"
719
},
720
{
721
"inputs": [
722
{
723
"internalType": "address",
724
"name": "_recipient",
725
"type": "address"
726
},
727
{
728
"internalType": "uint256",
729
"name": "_amount",
730
"type": "uint256"
731
},
732
{
733
"internalType": "uint256",
734
"name": "_derivativeIndex",
735
"type": "uint256"
736
},
737
{
738
"internalType": "enum IPoolTypes.Side",
739
"name": "_side",
740
"type": "uint8"
741
},
742
{
743
"components": [
744
{
745
"internalType": "uint256",
746
"name": "derivativeIndex",
747
"type": "uint256"
748
},
749
{
750
"internalType": "uint256",
751
"name": "collateralRoundHint",
752
"type": "uint256"
753
},
754
{
755
"internalType": "uint256[]",
756
"name": "underlyingRoundHintsIndexed",
757
"type": "uint256[]"
758
},
759
{
760
"internalType": "uint256",
761
"name": "volatilityRoundHint",
762
"type": "uint256"
763
}
764
],
765
"internalType": "struct IPoolTypes.RolloverHints[]",
766
"name": "_rolloverHintsList",
767
"type": "tuple[]"
768
}
769
],
770
"name": "moveDerivative",
771
"outputs": [],
772
"stateMutability": "nonpayable",
773
"type": "function"
774
},
775
]
776
Copied!
Copy link