-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeeStructure.ts
More file actions
629 lines (613 loc) · 17.7 KB
/
Copy pathfeeStructure.ts
File metadata and controls
629 lines (613 loc) · 17.7 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
/**
* Category-Specific Fee Structure Configuration
*
* This configuration defines the complete fee structure for each of the 8 high-IRR
* tokenizable real estate asset categories, including base property values,
* percentage-based fees, and category-specific requirements.
*/
export interface FeeItem {
id: string;
name: string;
description: string;
percentage: number;
fixedAmount?: number; // Fixed USD amount for this base property value
required: boolean;
category?: 'registration' | 'legal' | 'platform' | 'brokerage' | 'technical' | 'miscellaneous';
}
export interface CategoryFeeStructure {
categoryId: string;
categoryName: string;
basePropertyValue: number;
currency: string;
feeItems: FeeItem[];
totalPercentage: number;
grossTotal: number;
notes?: string[];
}
export const CATEGORY_FEE_STRUCTURES: CategoryFeeStructure[] = [
{
categoryId: 'data-centers-edge',
categoryName: 'Data-Centers & Edge Locations',
basePropertyValue: 25000000,
currency: 'USD',
totalPercentage: 5.8,
grossTotal: 26450000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Assumes 1.5% stamp duty (SG) or deed tax (US)',
percentage: 1.50,
fixedAmount: 375000,
required: true,
category: 'registration'
},
{
id: 'legal-regulatory',
name: 'Legal & Regulatory (Title, Zoning, Compliance)',
description: 'Includes data-hosting licence filing',
percentage: 0.60,
fixedAmount: 150000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation & Smart-Contract Audit',
description: 'ERC-3643 issuance + custody setup',
percentage: 1.00,
fixedAmount: 250000,
required: true,
category: 'platform'
},
{
id: 'brokerage-advisory',
name: 'Brokerage / M&A Advisory',
description: 'Off-market sourcing fee',
percentage: 2.00,
fixedAmount: 500000,
required: true,
category: 'brokerage'
},
{
id: 'technical-due-diligence',
name: 'Technical Due-Diligence (Power, Cooling, Fiber)',
description: 'Third-party engineering review',
percentage: 0.40,
fixedAmount: 100000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous-fees',
name: 'Miscellaneous (Survey, Escrow, Insurance Binder)',
description: 'Environmental & fiber-route survey',
percentage: 0.30,
fixedAmount: 75000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Token supply will be issued against this figure',
'Data-hosting licence may require additional regulatory approval time',
'Fiber connectivity assessment is critical for valuation'
]
},
{
categoryId: 'cold-storage-hubs',
categoryName: 'Cold-Storage Hubs',
basePropertyValue: 18000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 19098000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Standard transfer tax',
percentage: 1.50,
fixedAmount: 270000,
required: true,
category: 'registration'
},
{
id: 'legal-fda-haccp',
name: 'Legal (FDA / HACCP licensing)',
description: 'Food safety and pharmaceutical compliance',
percentage: 0.80,
fixedAmount: 144000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Smart contract deployment and audit',
percentage: 1.00,
fixedAmount: 180000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Transaction advisory fee',
percentage: 2.00,
fixedAmount: 360000,
required: true,
category: 'brokerage'
},
{
id: 'cold-chain-audit',
name: 'Cold-Chain Compliance Audit',
description: 'Temperature control system verification',
percentage: 0.50,
fixedAmount: 90000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc. (Phase-I ESA, Title Insurance)',
description: 'Environmental assessment and insurance',
percentage: 0.30,
fixedAmount: 54000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'FDA/HACCP certification required for food-grade facilities',
'Temperature monitoring system audit essential',
'Environmental assessment critical for cold storage operations'
]
},
{
categoryId: 'last-mile-logistics',
categoryName: 'Last-Mile Logistics Warehouses',
basePropertyValue: 12000000,
currency: 'USD',
totalPercentage: 5.9,
grossTotal: 12708000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Property transfer tax',
percentage: 1.50,
fixedAmount: 180000,
required: true,
category: 'registration'
},
{
id: 'legal-zoning',
name: 'Legal & Zoning',
description: 'Zoning compliance and permits',
percentage: 0.70,
fixedAmount: 84000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Token issuance and smart contracts',
percentage: 1.00,
fixedAmount: 120000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Real estate brokerage fee',
percentage: 2.00,
fixedAmount: 240000,
required: true,
category: 'brokerage'
},
{
id: 'building-survey',
name: 'Building Survey & Appraisal',
description: 'Professional property assessment',
percentage: 0.40,
fixedAmount: 48000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Additional closing costs',
percentage: 0.30,
fixedAmount: 36000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Proximity to major transport hubs affects valuation',
'Loading dock capacity assessment required',
'Traffic flow and accessibility studies recommended'
]
},
{
categoryId: 'coworking-flexible-office',
categoryName: 'Co-Working & Flexible Office Chains',
basePropertyValue: 10000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 10610000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Property transfer tax',
percentage: 1.50,
fixedAmount: 150000,
required: true,
category: 'registration'
},
{
id: 'legal-multi-lease',
name: 'Legal (multi-lease abstraction)',
description: 'Complex lease structure review',
percentage: 0.80,
fixedAmount: 80000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Token structure for portfolio assets',
percentage: 1.00,
fixedAmount: 100000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Portfolio acquisition fee',
percentage: 2.00,
fixedAmount: 200000,
required: true,
category: 'brokerage'
},
{
id: 'ffe-valuation',
name: 'FF&E Valuation & Inventory',
description: 'Furniture, fixtures & equipment assessment',
percentage: 0.50,
fixedAmount: 50000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Additional transaction costs',
percentage: 0.30,
fixedAmount: 30000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Portfolio roll-up structure may require additional complexity',
'FF&E valuation critical for co-working spaces',
'Multi-lease abstraction for various tenant agreements'
]
},
{
categoryId: 'renewable-industrial-parks',
categoryName: 'Renewable-Industrial Parks',
basePropertyValue: 30000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 31830000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Land and improvements transfer tax',
percentage: 1.50,
fixedAmount: 450000,
required: true,
category: 'registration'
},
{
id: 'legal-ppa-interconnection',
name: 'Legal (PPA & interconnection)',
description: 'Power purchase agreements and grid connection',
percentage: 0.80,
fixedAmount: 240000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Green asset tokenisation structure',
percentage: 1.00,
fixedAmount: 300000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Specialized renewable energy brokerage',
percentage: 2.00,
fixedAmount: 600000,
required: true,
category: 'brokerage'
},
{
id: 'technical-yield-studies',
name: 'Technical & Yield Studies',
description: 'Energy production and efficiency analysis',
percentage: 0.50,
fixedAmount: 150000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Environmental and grid studies',
percentage: 0.30,
fixedAmount: 90000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'PPA agreements critical for revenue projections',
'Grid interconnection studies may take additional time',
'Environmental impact assessments required'
]
},
{
categoryId: 'high-street-flagship-retail',
categoryName: 'High-Street Flagship Retail',
basePropertyValue: 15000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 15915000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Commercial property transfer tax',
percentage: 1.50,
fixedAmount: 225000,
required: true,
category: 'registration'
},
{
id: 'legal-zoning-overlays',
name: 'Legal (zoning overlays)',
description: 'Commercial zoning and overlay districts',
percentage: 0.80,
fixedAmount: 120000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Retail asset tokenisation',
percentage: 1.00,
fixedAmount: 150000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Premium retail location brokerage',
percentage: 2.00,
fixedAmount: 300000,
required: true,
category: 'brokerage'
},
{
id: 'retail-trade-area-study',
name: 'Retail Trade-Area Study',
description: 'Market analysis and foot traffic study',
percentage: 0.50,
fixedAmount: 75000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Additional retail-specific costs',
percentage: 0.30,
fixedAmount: 45000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Trade area analysis critical for flagship locations',
'Foot traffic and visibility studies essential',
'Zoning overlays may restrict certain uses'
]
},
{
categoryId: 'hotels-resorts',
categoryName: 'Hotels & Resorts',
basePropertyValue: 40000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 42440000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Hospitality property transfer tax',
percentage: 1.50,
fixedAmount: 600000,
required: true,
category: 'registration'
},
{
id: 'legal-branding-management',
name: 'Legal (branding & management agreements)',
description: 'Hotel brand and management contract review',
percentage: 0.80,
fixedAmount: 320000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Hospitality asset tokenisation',
percentage: 1.00,
fixedAmount: 400000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Hospitality specialized brokerage',
percentage: 2.00,
fixedAmount: 800000,
required: true,
category: 'brokerage'
},
{
id: 'pip-review',
name: 'Property Improvement Plan (PIP) Review',
description: 'Required improvements and capital planning',
percentage: 0.50,
fixedAmount: 200000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Hospitality-specific transaction costs',
percentage: 0.30,
fixedAmount: 120000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Brand affiliation agreements may affect valuation',
'PIP requirements can impact capital planning',
'Management agreements critical for operations'
]
},
{
categoryId: 'mixed-use-complexes',
categoryName: 'Mixed-Use Complexes',
basePropertyValue: 20000000,
currency: 'USD',
totalPercentage: 6.1,
grossTotal: 21220000,
feeItems: [
{
id: 'registration-transfer-duty',
name: 'Registration / Transfer Duty',
description: 'Multi-use property transfer tax',
percentage: 1.50,
fixedAmount: 300000,
required: true,
category: 'registration'
},
{
id: 'legal-multi-use-strata',
name: 'Legal (multi-use zoning & strata)',
description: 'Complex zoning and strata title issues',
percentage: 0.80,
fixedAmount: 160000,
required: true,
category: 'legal'
},
{
id: 'platform-tokenisation',
name: 'Platform Tokenisation',
description: 'Mixed-use asset tokenisation structure',
percentage: 1.00,
fixedAmount: 200000,
required: true,
category: 'platform'
},
{
id: 'brokerage',
name: 'Brokerage',
description: 'Mixed-use development brokerage',
percentage: 2.00,
fixedAmount: 400000,
required: true,
category: 'brokerage'
},
{
id: 'multi-use-appraisal',
name: 'Multi-use Appraisal & Segregation',
description: 'Complex valuation for different use types',
percentage: 0.50,
fixedAmount: 100000,
required: true,
category: 'technical'
},
{
id: 'miscellaneous',
name: 'Misc.',
description: 'Additional mixed-use complexity costs',
percentage: 0.30,
fixedAmount: 60000,
required: true,
category: 'miscellaneous'
}
],
notes: [
'Strata title structures add legal complexity',
'Multi-use appraisal requires specialized expertise',
'Zoning compliance across different use types'
]
}
];
/**
* Helper functions for fee calculations
*/
export const calculateFeeAmount = (baseValue: number, percentage: number): number => {
return Math.round(baseValue * (percentage / 100));
};
export const calculateGrossTotal = (baseValue: number, feeItems: FeeItem[]): number => {
const totalFees = feeItems.reduce((sum, fee) => {
return sum + calculateFeeAmount(baseValue, fee.percentage);
}, 0);
return baseValue + totalFees;
};
export const getFeeStructureByCategory = (categoryId: string): CategoryFeeStructure | undefined => {
return CATEGORY_FEE_STRUCTURES.find(structure => structure.categoryId === categoryId);
};
export const calculateTotalFeePercentage = (feeItems: FeeItem[]): number => {
return feeItems.reduce((sum, fee) => sum + fee.percentage, 0);
};
export const formatCurrency = (amount: number, currency: string = 'USD'): string => {
return new Intl.NumberFormat('en-US', {
style: 'currency',
currency: currency,
minimumFractionDigits: 0,
maximumFractionDigits: 0,
}).format(amount);
};
export const getCategorizedFees = (feeItems: FeeItem[]) => {
const categories = ['registration', 'legal', 'platform', 'brokerage', 'technical', 'miscellaneous'] as const;
return categories.map(category => ({
category,
fees: feeItems.filter(fee => fee.category === category)
})).filter(group => group.fees.length > 0);
};