-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathconfig.sol
1882 lines (1871 loc) · 62.1 KB
/
config.sol
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
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// SPDX-FileCopyrightText: © 2020 Dai Foundation <www.daifoundation.org>
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
pragma solidity 0.8.16;
contract Config {
struct SpellValues {
address deployed_spell;
uint256 deployed_spell_created;
uint256 deployed_spell_block;
address[] previous_spells;
bool office_hours_enabled;
uint256 expiration_threshold;
}
struct SystemValues {
uint256 line_offset;
uint256 pot_dsr;
uint256 susds_ssr;
uint256 pause_delay;
uint256 vow_wait;
uint256 vow_dump;
uint256 vow_sump;
uint256 vow_bump;
uint256 vow_hump_min;
uint256 vow_hump_max;
uint256 split_hop;
uint256 split_burn;
bytes32 split_farm;
uint256 flap_want;
uint256 dog_Hole;
uint256 esm_min;
bytes32 pause_authority;
bytes32 osm_mom_authority;
bytes32 clipper_mom_authority;
bytes32 d3m_mom_authority;
bytes32 line_mom_authority;
bytes32 lite_psm_mom_authority;
bytes32 splitter_mom_authority;
uint256 vest_dai_cap;
uint256 vest_mkr_cap;
uint256 vest_usds_cap;
uint256 vest_sky_cap;
uint256 vest_sky_mint_cap;
uint256 sky_mkr_rate;
uint256 ilk_count;
string chainlog_version;
mapping (bytes32 => CollateralValues) collaterals;
}
struct CollateralValues {
bool aL_enabled;
uint256 aL_line;
uint256 aL_gap;
uint256 aL_ttl;
uint256 line;
uint256 dust;
uint256 pct;
uint256 mat;
bytes32 liqType;
bool liqOn;
uint256 chop;
uint256 dog_hole;
uint256 clip_buf;
uint256 clip_tail;
uint256 clip_cusp;
uint256 clip_chip;
uint256 clip_tip;
uint256 clipper_mom;
uint256 cm_tolerance;
uint256 calc_tau;
uint256 calc_step;
uint256 calc_cut;
bool offboarding;
}
uint256 constant private THOUSAND = 10 ** 3;
uint256 constant private MILLION = 10 ** 6;
uint256 constant private BILLION = 10 ** 9;
uint256 constant private WAD = 10 ** 18;
SpellValues spellValues;
SystemValues afterSpell;
function setValues() public {
// Add spells if there is a need to test prior to their cast() functions
// being called on-chain. They will be executed in order from index 0.
address[] memory prevSpells = new address[](0);
// prevSpells[0] = address(0);
//
// Values for spell-specific parameters
//
spellValues = SpellValues({
deployed_spell: address(0x1F23E5aBCF7358B6Fb044C8c5E1A7bA7c001ffB6), // populate with deployed spell if deployed
deployed_spell_created: 1737635819, // use `make deploy-info tx=<deployment-tx>` to obtain the timestamp
deployed_spell_block: 21687234, // use `make deploy-info tx=<deployment-tx>` to obtain the block number
previous_spells: prevSpells, // older spells to ensure are executed first
office_hours_enabled: true, // true if officehours is expected to be enabled in the spell
expiration_threshold: 30 days // Amount of time before spell expires
});
//
// Values for all system configuration changes
//
afterSpell.line_offset = 680 * MILLION; // Offset between the global line against the sum of local lines
afterSpell.pot_dsr = 11_25; // In basis points
afterSpell.susds_ssr = 12_50; // In basis points
afterSpell.pause_delay = 30 hours; // In seconds
afterSpell.vow_wait = 156 hours; // In seconds
afterSpell.vow_dump = 250; // In whole Dai units
afterSpell.vow_sump = 50 * THOUSAND; // In whole Dai units
afterSpell.vow_bump = 25 * THOUSAND; // In whole Dai units
afterSpell.vow_hump_min = 120 * MILLION; // In whole Dai units
afterSpell.vow_hump_max = 120 * MILLION; // In whole Dai units
afterSpell.split_hop = 15_649 seconds; // In seconds
afterSpell.split_burn = 70_00; // In basis points
afterSpell.split_farm = "REWARDS_LSMKR_USDS"; // Farm chainlog key
afterSpell.flap_want = 9800; // In basis points
afterSpell.dog_Hole = 150 * MILLION; // In whole Dai units
afterSpell.esm_min = 500 * THOUSAND; // In whole MKR units
afterSpell.pause_authority = "MCD_ADM"; // Pause authority
afterSpell.osm_mom_authority = "MCD_ADM"; // OsmMom authority
afterSpell.clipper_mom_authority = "MCD_ADM"; // ClipperMom authority
afterSpell.d3m_mom_authority = "MCD_ADM"; // D3MMom authority
afterSpell.line_mom_authority = "MCD_ADM"; // LineMom authority
afterSpell.lite_psm_mom_authority = "MCD_ADM"; // LitePsmMom authority
afterSpell.splitter_mom_authority = "MCD_ADM"; // SplitterMom authority
afterSpell.vest_dai_cap = 1 * MILLION * WAD / 30 days; // In WAD Dai per second
afterSpell.vest_mkr_cap = 2_220 * WAD / 365 days; // In WAD MKR per second
afterSpell.vest_usds_cap = 46_200 * WAD / 30 days; // In WAD USDS per second
afterSpell.vest_sky_cap = 475_200 * WAD / 30 days; // In WAD SKY per second
afterSpell.vest_sky_mint_cap = 800 * MILLION * WAD / 365 days; // In WAD SKY per second
afterSpell.sky_mkr_rate = 24_000; // In whole SKY/MKR units
afterSpell.ilk_count = 69; // Num expected in system
afterSpell.chainlog_version = "1.19.5"; // String expected in system
//
// Values for all collateral
// Update when adding or modifying Collateral Values
//
afterSpell.collaterals["ETH-A"] = CollateralValues({
aL_enabled: true, // DssAutoLine is enabled?
aL_line: 15 * BILLION, // In whole Dai units
aL_gap: 150 * MILLION, // In whole Dai units
aL_ttl: 6 hours, // In seconds
line: 0, // In whole Dai units // Not checked here as there is auto line
dust: 7_500, // In whole Dai units
pct: 12_75, // In basis points
mat: 14500, // In basis points
liqType: "clip", // "" or "flip" or "clip"
liqOn: true, // If liquidations are enabled
chop: 1300, // In basis points
dog_hole: 40 * MILLION, // In whole Dai units
clip_buf: 110_00, // In basis points
clip_tail: 7_200, // In seconds, do not use the 'seconds' keyword
clip_cusp: 45_00, // In basis points
clip_chip: 10, // In basis points
clip_tip: 250, // In whole Dai units
clipper_mom: 1, // 1 if circuit breaker enabled
cm_tolerance: 5000, // In basis points
calc_tau: 0, // In seconds
calc_step: 90, // In seconds
calc_cut: 9900, // In basis points
offboarding: false // If mat is being offboarded
});
afterSpell.collaterals["ETH-B"] = CollateralValues({
aL_enabled: true,
aL_line: 250 * MILLION,
aL_gap: 20 * MILLION,
aL_ttl: 6 hours,
line: 0,
dust: 25 * THOUSAND,
pct: 13_25,
mat: 13000,
liqType: "clip",
liqOn: true,
chop: 1300,
dog_hole: 15 * MILLION,
clip_buf: 110_00,
clip_tail: 4_800,
clip_cusp: 45_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 60,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["ETH-C"] = CollateralValues({
aL_enabled: true,
aL_line: 2 * BILLION,
aL_gap: 100 * MILLION,
aL_ttl: 8 hours,
line: 0,
dust: 3_500,
pct: 12_50,
mat: 17000,
liqType: "clip",
liqOn: true,
chop: 1300,
dog_hole: 35 * MILLION,
clip_buf: 110_00,
clip_tail: 7_200,
clip_cusp: 45_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["BAT-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 400,
mat: 1120000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 1 * MILLION + 500 * THOUSAND,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["USDC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 0,
mat: 150000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 20_000_000,
clip_buf: 100_00,
clip_tail: 720 minutes,
clip_cusp: 99_00,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 9500,
calc_tau: 4_320_000,
calc_step: 0,
calc_cut: 0,
offboarding: true
});
afterSpell.collaterals["USDC-B"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 5000,
mat: 12000,
liqType: "clip",
liqOn: false,
chop: 1300,
dog_hole: 0,
clip_buf: 10500,
clip_tail: 220 minutes,
clip_cusp: 9000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 0,
cm_tolerance: 9500,
calc_tau: 0,
calc_step: 120,
calc_cut: 9990,
offboarding: false
});
afterSpell.collaterals["WBTC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 7_500,
pct: 16_25,
mat: 15000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 10 * MILLION,
clip_buf: 110_00,
clip_tail: 7_200,
clip_cusp: 45_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["WBTC-B"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 25 * THOUSAND,
pct: 16_75,
mat: 15000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 110_00,
clip_tail: 4_800,
clip_cusp: 45_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 60,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["WBTC-C"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 3_500,
pct: 16_00,
mat: 17500,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 10 * MILLION,
clip_buf: 110_00,
clip_tail: 7_200,
clip_cusp: 45_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["TUSD-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 0,
mat: 15000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 10000,
clip_tail: 120 hours,
clip_cusp: 9800,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 9500,
calc_tau: 250 days,
calc_step: 0,
calc_cut: 0,
offboarding: false
});
afterSpell.collaterals["KNC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 500,
mat: 500000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 500 * THOUSAND,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["ZRX-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 400,
mat: 550000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 1 * MILLION,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["MANA-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 5000,
mat: 17500,
liqType: "clip",
liqOn: true,
chop: 3000,
dog_hole: 1 * MILLION,
clip_buf: 120_00,
clip_tail: 140 minutes,
clip_cusp: 40_00,
clip_chip: 10,
clip_tip: 250,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["USDT-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 800,
mat: 30000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 15_000,
clip_buf: 10500,
clip_tail: 220 minutes,
clip_cusp: 9000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 9500,
calc_tau: 0,
calc_step: 120,
calc_cut: 9990,
offboarding: false
});
afterSpell.collaterals["PAXUSD-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 0,
mat: 150000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 3_000_000,
clip_buf: 100_00,
clip_tail: 720 minutes,
clip_cusp: 99_00,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 9500,
calc_tau: 4_320_000,
calc_step: 0,
calc_cut: 0,
offboarding: true
});
afterSpell.collaterals["COMP-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 100,
mat: 200000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 2 * MILLION,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["LRC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 400,
mat: 2430000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 500 * THOUSAND,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["LINK-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 250,
mat: 10000_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 3 * MILLION,
clip_buf: 120_00,
clip_tail: 140 minutes,
clip_cusp: 40_00,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["BAL-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 100,
mat: 230000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 3 * MILLION,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["YFI-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 150,
mat: 10000_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 1 * MILLION,
clip_buf: 130_00,
clip_tail: 140 minutes,
clip_cusp: 40_00,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["GUSD-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 100,
mat: 150000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 300_000,
clip_buf: 100_00,
clip_tail: 720 minutes,
clip_cusp: 99_00,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 9500,
calc_tau: 4_320_000,
calc_step: 0,
calc_cut: 0,
offboarding: true
});
afterSpell.collaterals["UNI-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 300,
mat: 1300_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["RENBTC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 225,
mat: 5000_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 350 * THOUSAND,
clip_buf: 120_00,
clip_tail: 140 minutes,
clip_cusp: 40_00,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["AAVE-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 100,
mat: 210000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 13000,
clip_tail: 140 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 90,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["UNIV2DAIETH-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 60 * THOUSAND,
pct: 100,
mat: 2000_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 11500,
clip_tail: 215 minutes,
clip_cusp: 6000,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 7000,
calc_tau: 0,
calc_step: 125,
calc_cut: 9950,
offboarding: true
});
afterSpell.collaterals["PSM-USDC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 0,
pct: 0,
mat: 10000,
liqType: "clip",
liqOn: false,
chop: 1300,
dog_hole: 0,
clip_buf: 10500,
clip_tail: 220 minutes,
clip_cusp: 9000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 0,
cm_tolerance: 9500,
calc_tau: 0,
calc_step: 120,
calc_cut: 9990,
offboarding: false
});
afterSpell.collaterals["LITE-PSM-USDC-A"] = CollateralValues({
aL_enabled: true,
aL_line: 10 * BILLION,
aL_gap: 400 * MILLION,
aL_ttl: 12 hours,
line: 0,
dust: 0,
pct: 0,
mat: 100_00,
liqType: "",
liqOn: false,
chop: 0,
dog_hole: 0,
clip_buf: 0,
clip_tail: 0,
clip_cusp: 0,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 0,
cm_tolerance: 0,
calc_tau: 0,
calc_step: 0,
calc_cut: 0,
offboarding: false
});
afterSpell.collaterals["UNIV2WBTCETH-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 25 * THOUSAND,
pct: 200,
mat: 2400_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 13000,
clip_tail: 200 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 130,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["UNIV2USDCETH-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 60 * THOUSAND,
pct: 150,
mat: 10000_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 11500,
clip_tail: 215 minutes,
clip_cusp: 6000,
clip_chip: 0,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 7000,
calc_tau: 0,
calc_step: 125,
calc_cut: 9950,
offboarding: true
});
afterSpell.collaterals["UNIV2DAIUSDC-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 15 * THOUSAND,
pct: 2,
mat: 10200,
liqType: "clip",
liqOn: false,
chop: 1300,
dog_hole: 0,
clip_buf: 10500,
clip_tail: 220 minutes,
clip_cusp: 9000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 0,
cm_tolerance: 9500,
calc_tau: 0,
calc_step: 120,
calc_cut: 9990,
offboarding: false
});
afterSpell.collaterals["UNIV2ETHUSDT-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 200,
mat: 14000,
liqType: "clip",
liqOn: true,
chop: 1300,
dog_hole: 5 * MILLION,
clip_buf: 11500,
clip_tail: 215 minutes,
clip_cusp: 6000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 7000,
calc_tau: 0,
calc_step: 125,
calc_cut: 9950,
offboarding: false
});
afterSpell.collaterals["UNIV2LINKETH-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 10 * THOUSAND,
pct: 300,
mat: 160000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 3 * MILLION,
clip_buf: 13000,
clip_tail: 200 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 300,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 130,
calc_cut: 9900,
offboarding: true
});
afterSpell.collaterals["UNIV2UNIETH-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 25 * THOUSAND,
pct: 400,
mat: 16000,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 3 * MILLION,
clip_buf: 13000,
clip_tail: 200 minutes,
clip_cusp: 4000,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 5000,
calc_tau: 0,
calc_step: 130,
calc_cut: 9900,
offboarding: false
});
afterSpell.collaterals["UNIV2WBTCDAI-A"] = CollateralValues({
aL_enabled: false,
aL_line: 0,
aL_gap: 0,
aL_ttl: 0,
line: 0,
dust: 60 * THOUSAND,
pct: 0,
mat: 800_00,
liqType: "clip",
liqOn: true,
chop: 0,
dog_hole: 5 * MILLION,
clip_buf: 11500,
clip_tail: 215 minutes,
clip_cusp: 6000,
clip_chip: 10,
clip_tip: 0,
clipper_mom: 1,
cm_tolerance: 7000,