-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathcredit_errors.txt
More file actions
2061 lines (1846 loc) · 76.8 KB
/
Copy pathcredit_errors.txt
File metadata and controls
2061 lines (1846 loc) · 76.8 KB
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
warning: function `min_next_bid` is never used
--> gateway-contract/contracts/auction_contract/src/lib.rs:22:4
|
22 | fn min_next_bid(highest_bid: i128, min_increment_bps: u32) -> i128 {
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: constant `PERSISTENT_LIFETIME_THRESHOLD` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:45:18
|
45 | pub(crate) const PERSISTENT_LIFETIME_THRESHOLD: u32 = 120_960;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `get_status` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:72:8
|
72 | pub fn get_status(env: &Env) -> AuctionStatus {
| ^^^^^^^^^^
warning: function `set_status` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:79:8
|
79 | pub fn set_status(env: &Env, status: AuctionStatus) {
| ^^^^^^^^^^
warning: function `get_highest_bidder` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:83:8
|
83 | pub fn get_highest_bidder(env: &Env) -> Option<Address> {
| ^^^^^^^^^^^^^^^^^^
warning: function `set_highest_bidder` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:87:8
|
87 | pub fn set_highest_bidder(env: &Env, bidder: &Address) {
| ^^^^^^^^^^^^^^^^^^
warning: function `get_end_time` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:165:8
|
165 | pub fn get_end_time(env: &Env) -> u64 {
| ^^^^^^^^^^^^
warning: function `set_end_time` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:169:8
|
169 | pub fn set_end_time(env: &Env, end_time: u64) {
| ^^^^^^^^^^^^
warning: function `get_highest_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:173:8
|
173 | pub fn get_highest_bid(env: &Env) -> u128 {
| ^^^^^^^^^^^^^^^
warning: function `set_highest_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:180:8
|
180 | pub fn set_highest_bid(env: &Env, bid: u128) {
| ^^^^^^^^^^^^^^^
warning: function `auction_exists` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:187:8
|
187 | pub fn auction_exists(env: &Env, id: u32) -> bool {
| ^^^^^^^^^^^^^^
warning: function `auction_get_status` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:191:8
|
191 | pub fn auction_get_status(env: &Env, id: u32) -> crate::types::AuctionStatus {
| ^^^^^^^^^^^^^^^^^^
warning: function `auction_set_status` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:198:8
|
198 | pub fn auction_set_status(env: &Env, id: u32, status: crate::types::AuctionStatus) {
| ^^^^^^^^^^^^^^^^^^
warning: function `auction_get_seller` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:208:8
|
208 | pub fn auction_get_seller(env: &Env, id: u32) -> Option<Address> {
| ^^^^^^^^^^^^^^^^^^
warning: function `auction_set_seller` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:212:8
|
212 | pub fn auction_set_seller(env: &Env, id: u32, seller: &Address) {
| ^^^^^^^^^^^^^^^^^^
warning: function `auction_get_asset` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:222:8
|
222 | pub fn auction_get_asset(env: &Env, id: u32) -> Option<Address> {
| ^^^^^^^^^^^^^^^^^
warning: function `auction_set_asset` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:226:8
|
226 | pub fn auction_set_asset(env: &Env, id: u32, asset: &Address) {
| ^^^^^^^^^^^^^^^^^
warning: function `auction_get_min_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:236:8
|
236 | pub fn auction_get_min_bid(env: &Env, id: u32) -> i128 {
| ^^^^^^^^^^^^^^^^^^^
warning: function `auction_set_min_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:243:8
|
243 | pub fn auction_set_min_bid(env: &Env, id: u32, min_bid: i128) {
| ^^^^^^^^^^^^^^^^^^^
warning: function `auction_get_end_time` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:253:8
|
253 | pub fn auction_get_end_time(env: &Env, id: u32) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^
warning: function `auction_set_end_time` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:260:8
|
260 | pub fn auction_set_end_time(env: &Env, id: u32, end_time: u64) {
| ^^^^^^^^^^^^^^^^^^^^
warning: function `auction_get_highest_bidder` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:270:8
|
270 | pub fn auction_get_highest_bidder(env: &Env, id: u32) -> Option<Address> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `auction_set_highest_bidder` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:276:8
|
276 | pub fn auction_set_highest_bidder(env: &Env, id: u32, bidder: &Address) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `auction_get_highest_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:286:8
|
286 | pub fn auction_get_highest_bid(env: &Env, id: u32) -> i128 {
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: function `auction_set_highest_bid` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:293:8
|
293 | pub fn auction_set_highest_bid(env: &Env, id: u32, bid: i128) {
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: function `auction_is_claimed` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:303:8
|
303 | pub fn auction_is_claimed(env: &Env, id: u32) -> bool {
| ^^^^^^^^^^^^^^^^^^
warning: function `auction_set_claimed` is never used
--> gateway-contract/contracts/auction_contract/src/storage.rs:310:8
|
310 | pub fn auction_set_claimed(env: &Env, id: u32) {
| ^^^^^^^^^^^^^^^^^^^
warning: `gateway-auction` (lib) generated 27 warnings
Compiling creditra-credit v0.1.0 (/Users/amankoli/Creditra-Contracts/contracts/credit)
error: an inner attribute is not permitted in this context
--> contracts/credit/src/lib.rs:3:1
|
3 | #![cfg_attr(not(test), no_std)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
= note: outer attributes, like `#[test]`, annotate the item following them
error: an inner attribute is not permitted in this context
--> contracts/credit/src/lib.rs:4:1
|
4 | #![allow(clippy::unused_unit)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
= note: outer attributes, like `#[test]`, annotate the item following them
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:6:1
|
6 | //! # Creditra credit contract
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
6 - //! # Creditra credit contract
6 + // # Creditra credit contract
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:7:1
|
7 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
7 - //!
7 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:8:1
|
8 | //! Per-borrower credit lines on Stellar/Soroban with **algorithmic
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
8 - //! Per-borrower credit lines on Stellar/Soroban with **algorithmic
8 + // Per-borrower credit lines on Stellar/Soroban with **algorithmic
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:9:1
|
9 | //! risk-priced underwriting** rather than overcollateralization. This is the
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
9 - //! risk-priced underwriting** rather than overcollateralization. This is the
9 + // risk-priced underwriting** rather than overcollateralization. This is the
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:10:1
|
10 | //! single `#[contract] Credit` with all entrypoints in the `#[contractimpl]`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
10 - //! single `#[contract] Credit` with all entrypoints in the `#[contractimpl]`
10 + // single `#[contract] Credit` with all entrypoints in the `#[contractimpl]`
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:11:1
|
11 | //! block below.
| ^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
11 - //! block below.
11 + // block below.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:12:1
|
12 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
12 - //!
12 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:13:1
|
13 | //! ## What
| ^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
13 - //! ## What
13 + // ## What
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:14:1
|
14 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
14 - //!
14 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:15:1
|
15 | //! Maintains a `CreditLineData` per borrower (see [`crate::types`]) with
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
15 - //! Maintains a `CreditLineData` per borrower (see [`crate::types`]) with
15 + // Maintains a `CreditLineData` per borrower (see [`crate::types`]) with
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:16:1
|
16 | //! `credit_limit`, `utilized_amount`, `interest_rate_bps`, `risk_score`,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
16 - //! `credit_limit`, `utilized_amount`, `interest_rate_bps`, `risk_score`,
16 + // `credit_limit`, `utilized_amount`, `interest_rate_bps`, `risk_score`,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:17:1
|
17 | //! `status`, and accrual timestamps. The contract orchestrates:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
17 - //! `status`, and accrual timestamps. The contract orchestrates:
17 + // `status`, and accrual timestamps. The contract orchestrates:
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:18:1
|
18 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
18 - //!
18 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:19:1
|
19 | //! - **Origination** — `open_credit_line` (admin) validates against
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
19 - //! - **Origination** — `open_credit_line` (admin) validates against
19 + // - **Origination** — `open_credit_line` (admin) validates against
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:20:1
|
20 | //! `MinCreditLimit`/`MaxCreditLimit` bounds and the rate cap
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
20 - //! `MinCreditLimit`/`MaxCreditLimit` bounds and the rate cap
20 + // `MinCreditLimit`/`MaxCreditLimit` bounds and the rate cap
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:21:1
|
21 | //! `MAX_INTEREST_RATE_BPS = 10_000` (see [`crate::risk`]).
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
21 - //! `MAX_INTEREST_RATE_BPS = 10_000` (see [`crate::risk`]).
21 + // `MAX_INTEREST_RATE_BPS = 10_000` (see [`crate::risk`]).
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:22:1
|
22 | //! - **Draw** — `draw_credit` performs a 25-step validation chain
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
22 - //! - **Draw** — `draw_credit` performs a 25-step validation chain
22 + // - **Draw** — `draw_credit` performs a 25-step validation chain
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:23:1
|
23 | //! (pause, freeze, blocklist, status, cooldown, limit, collateral ratio,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
23 - //! (pause, freeze, blocklist, status, cooldown, limit, collateral ratio,
23 + // (pause, freeze, blocklist, status, cooldown, limit, collateral ratio,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:24:1
|
24 | //! utilization cap, exposure cap, liquidity reserve) before a token CPI
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
24 - //! utilization cap, exposure cap, liquidity reserve) before a token CPI
24 + // utilization cap, exposure cap, liquidity reserve) before a token CPI
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:25:1
|
25 | //! into the configured `LiquidityToken`.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
25 - //! into the configured `LiquidityToken`.
25 + // into the configured `LiquidityToken`.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:26:1
|
26 | //! - **Repay** — `repay_credit` is **not pause-gated**: borrowers must always
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
26 - //! - **Repay** — `repay_credit` is **not pause-gated**: borrowers must always
26 + // - **Repay** — `repay_credit` is **not pause-gated**: borrowers must always
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:27:1
|
27 | //! be able to deleverage. Interest-first allocation with optional
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
27 - //! be able to deleverage. Interest-first allocation with optional
27 + // be able to deleverage. Interest-first allocation with optional
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:28:1
|
28 | //! protocol-fee-on-interest split between treasury and bounty accumulators.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
28 - //! protocol-fee-on-interest split between treasury and bounty accumulators.
28 + // protocol-fee-on-interest split between treasury and bounty accumulators.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:29:1
|
29 | //! - **Risk update** — `update_risk_parameters` either computes the new rate
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
29 - //! - **Risk update** — `update_risk_parameters` either computes the new rate
29 + // - **Risk update** — `update_risk_parameters` either computes the new rate
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:30:1
|
30 | //! from `risk_score` via the piecewise-linear formula (if configured) or
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
30 - //! from `risk_score` via the piecewise-linear formula (if configured) or
30 + // from `risk_score` via the piecewise-linear formula (if configured) or
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:31:1
|
31 | //! accepts an admin-supplied rate; both paths are clamped and gated by the
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
31 - //! accepts an admin-supplied rate; both paths are clamped and gated by the
31 + // accepts an admin-supplied rate; both paths are clamped and gated by the
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:32:1
|
32 | //! per-borrower floor and the `RateChangeConfig` magnitude+cadence cap.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
32 - //! per-borrower floor and the `RateChangeConfig` magnitude+cadence cap.
32 + // per-borrower floor and the `RateChangeConfig` magnitude+cadence cap.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:33:1
|
33 | //! - **Lifecycle** — `suspend`, `self_suspend`, `close`, `default`,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
33 - //! - **Lifecycle** — `suspend`, `self_suspend`, `close`, `default`,
33 + // - **Lifecycle** — `suspend`, `self_suspend`, `close`, `default`,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:34:1
|
34 | //! `reinstate`, `forgive_debt`, with `apply_accrual` invoked before every
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
34 - //! `reinstate`, `forgive_debt`, with `apply_accrual` invoked before every
34 + // `reinstate`, `forgive_debt`, with `apply_accrual` invoked before every
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:35:1
|
35 | //! mutation. See [`crate::lifecycle`].
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
35 - //! mutation. See [`crate::lifecycle`].
35 + // mutation. See [`crate::lifecycle`].
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:36:1
|
36 | //! - **Settlement** — `settle_default_liquidation` is admin-only,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
36 - //! - **Settlement** — `settle_default_liquidation` is admin-only,
36 + // - **Settlement** — `settle_default_liquidation` is admin-only,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:37:1
|
37 | //! reentrancy-guarded, oracle-circuit-breaker-protected, and dispatches a
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
37 - //! reentrancy-guarded, oracle-circuit-breaker-protected, and dispatches a
37 + // reentrancy-guarded, oracle-circuit-breaker-protected, and dispatches a
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:38:1
|
38 | //! cross-contract call to the configured `AuctionContract`. The return
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
38 - //! cross-contract call to the configured `AuctionContract`. The return
38 + // cross-contract call to the configured `AuctionContract`. The return
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:39:1
|
39 | //! value is asserted against the admin-supplied `recovered_amount` and the
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
39 - //! value is asserted against the admin-supplied `recovered_amount` and the
39 + // value is asserted against the admin-supplied `recovered_amount` and the
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:40:1
|
40 | //! `(borrower, settlement_id)` pair is replay-protected via a persistent
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
40 - //! `(borrower, settlement_id)` pair is replay-protected via a persistent
40 + // `(borrower, settlement_id)` pair is replay-protected via a persistent
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:41:1
|
41 | //! marker.
| ^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
41 - //! marker.
41 + // marker.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:42:1
|
42 | //! - **Operational controls** — pause/unpause, freeze/unfreeze, block/unblock
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
42 - //! - **Operational controls** — pause/unpause, freeze/unfreeze, block/unblock
42 + // - **Operational controls** — pause/unpause, freeze/unfreeze, block/unblock
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:43:1
|
43 | //! borrowers, `accrue_batch` keeper hook, `reverse_draw` time-windowed
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
43 - //! borrowers, `accrue_batch` keeper hook, `reverse_draw` time-windowed
43 + // borrowers, `accrue_batch` keeper hook, `reverse_draw` time-windowed
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:44:1
|
44 | //! reversal.
| ^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
44 - //! reversal.
44 + // reversal.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:45:1
|
45 | //! - **Upgrade** — admin-gated atomic WASM swap with schema-version bump.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
45 - //! - **Upgrade** — admin-gated atomic WASM swap with schema-version bump.
45 + // - **Upgrade** — admin-gated atomic WASM swap with schema-version bump.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:46:1
|
46 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
46 - //!
46 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:47:1
|
47 | //! ## How
| ^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
47 - //! ## How
47 + // ## How
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:48:1
|
48 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
48 - //!
48 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:49:1
|
49 | //! - **Storage tiers.** Hot configuration in Instance storage (admin,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
49 - //! - **Storage tiers.** Hot configuration in Instance storage (admin,
49 + // - **Storage tiers.** Hot configuration in Instance storage (admin,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:50:1
|
50 | //! pause flag, reentrancy guard, oracle config, rate formula, treasury,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
50 - //! pause flag, reentrancy guard, oracle config, rate formula, treasury,
50 + // pause flag, reentrancy guard, oracle config, rate formula, treasury,
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:51:1
|
51 | //! global caps); per-borrower state in Persistent storage with TTL
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
51 - //! global caps); per-borrower state in Persistent storage with TTL
51 + // global caps); per-borrower state in Persistent storage with TTL
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:52:1
|
52 | //! auto-bumped on every access. See [`crate::storage`].
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
52 - //! auto-bumped on every access. See [`crate::storage`].
52 + // auto-bumped on every access. See [`crate::storage`].
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:53:1
|
53 | //! - **Reentrancy.** The single `Symbol("reentrancy")` instance flag guards
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
53 - //! - **Reentrancy.** The single `Symbol("reentrancy")` instance flag guards
53 + // - **Reentrancy.** The single `Symbol("reentrancy")` instance flag guards
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:54:1
|
54 | //! `draw_credit`, `repay_credit`, and `settle_default_liquidation` —
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
54 - //! `draw_credit`, `repay_credit`, and `settle_default_liquidation` —
54 + // `draw_credit`, `repay_credit`, and `settle_default_liquidation` —
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:55:1
|
55 | //! external token CPIs cannot re-enter.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
55 - //! external token CPIs cannot re-enter.
55 + // external token CPIs cannot re-enter.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:56:1
|
56 | //! - **Arithmetic.** Every `i128` accounting operation uses `checked_*`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
56 - //! - **Arithmetic.** Every `i128` accounting operation uses `checked_*`
56 + // - **Arithmetic.** Every `i128` accounting operation uses `checked_*`
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:57:1
|
57 | //! primitives; the release profile sets `overflow-checks = true` so a
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
57 - //! primitives; the release profile sets `overflow-checks = true` so a
57 + // primitives; the release profile sets `overflow-checks = true` so a
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:58:1
|
58 | //! numeric edge case reverts with `ContractError::Overflow = 12` rather
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
58 - //! numeric edge case reverts with `ContractError::Overflow = 12` rather
58 + // numeric edge case reverts with `ContractError::Overflow = 12` rather
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:59:1
|
59 | //! than wrapping.
| ^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
59 - //! than wrapping.
59 + // than wrapping.
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:60:1
|
60 | //! - **Lazy accrual.** Interest is realized only on mutation; the math is
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
60 - //! - **Lazy accrual.** Interest is realized only on mutation; the math is
60 + // - **Lazy accrual.** Interest is realized only on mutation; the math is
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:61:1
|
61 | //! `floor((u * r * Δt) / (10_000 * 31_557_600))` via
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
61 - //! `floor((u * r * Δt) / (10_000 * 31_557_600))` via
61 + // `floor((u * r * Δt) / (10_000 * 31_557_600))` via
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:62:1
|
62 | //! [`crate::math_utils::prorate_interest`], with grace and penalty
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
62 - //! [`crate::math_utils::prorate_interest`], with grace and penalty
62 + // [`crate::math_utils::prorate_interest`], with grace and penalty
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:63:1
|
63 | //! branches in [`crate::accrual::apply_accrual`].
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
63 - //! branches in [`crate::accrual::apply_accrual`].
63 + // branches in [`crate::accrual::apply_accrual`].
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:64:1
|
64 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
64 - //!
64 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:65:1
|
65 | //! ## Why
| ^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
65 - //! ## Why
65 + // ## Why
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:66:1
|
66 | //!
| ^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
66 - //!
66 + //
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:67:1
|
67 | //! Overcollateralized lending (Aave / Compound / Maker) gates the median
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
67 - //! Overcollateralized lending (Aave / Compound / Maker) gates the median
67 + // Overcollateralized lending (Aave / Compound / Maker) gates the median
|
error[E0753]: expected outer doc comment
--> contracts/credit/src/lib.rs:68:1
|
68 | //! wallet out of on-chain credit. Creditra prices and sizes the credit line
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
help: you might have meant to write a regular comment
|
68 - //! wallet out of on-chain credit. Creditra prices and sizes the credit line