Commit e0c3548
committed
feat: treat default allocation as unallocated in getTotalAllocation reporting
Modified getTotalAllocation() to exclude default allocation from reported
totals when the default target is address(0), since address(0) cannot
receive minting. This provides clearer reporting of actual allocated
issuance while maintaining the internal 100% allocation invariant.
- Updated getTotalAllocation() to check if default is address(0)
- When default is address(0), subtract default allocation from reported totalAllocationPPM and allocatorMintingPPM
- Internal 100% allocation invariant remains unchanged
- Updated 12 tests across 3 test files to expect new reporting behavior
- All 165 tests passing1 parent dbf5d2b commit e0c3548
File tree
7 files changed
+808
-153
lines changed- packages
- interfaces/contracts/issuance/allocate
- issuance
- contracts/allocate
- test/tests/allocate
7 files changed
+808
-153
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
Lines changed: 125 additions & 21 deletions
Large diffs are not rendered by default.
0 commit comments