Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pool redesign - feature branch #2537

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d2f23ff
Fabric changes
kattylucy Nov 21, 2024
d9aae6c
Type updates
kattylucy Nov 21, 2024
560a6aa
Add new create pool index
kattylucy Nov 21, 2024
21142b1
Add pool structure section
kattylucy Nov 21, 2024
b53f4bc
Fix sidebar
kattylucy Nov 21, 2024
88c3425
Add pool details section
kattylucy Nov 21, 2024
f04a656
Add pool setup section
kattylucy Nov 21, 2024
c4de95b
Minor UI fix
kattylucy Nov 21, 2024
1564445
Pool structure - create pool (#2543)
kattylucy Nov 27, 2024
aeebecd
Create pool - functionality (#2545)
kattylucy Dec 4, 2024
fab7442
Create pool bugs and fixes (#2550)
kattylucy Dec 4, 2024
35f034e
Update fabric/src/theme/tokens/colors.ts
kattylucy Dec 5, 2024
a658715
Update centrifuge-app/src/pages/IssuerCreatePool/IssuerCategories.tsx
kattylucy Dec 5, 2024
a2c5b41
Update centrifuge-app/src/pages/IssuerCreatePool/PoolSetupSection.tsx
kattylucy Dec 5, 2024
c95e187
Add feedback
kattylucy Dec 5, 2024
8d23169
feedback
kattylucy Dec 5, 2024
414cb8c
Feedback changes
kattylucy Dec 9, 2024
1465802
Add feeback
kattylucy Dec 10, 2024
4c58801
Fix tranches apy
kattylucy Dec 11, 2024
b000a41
Add feeback
kattylucy Dec 12, 2024
7c64118
Fix placeholder color
kattylucy Dec 12, 2024
7e81904
Replace file upload with image upload
kattylucy Dec 12, 2024
77cda8b
Bug fixes
kattylucy Dec 12, 2024
d11affd
Code review feedback
kattylucy Dec 13, 2024
18794ba
Add jay's feedback and cleanup
kattylucy Dec 13, 2024
9788fdd
Update centrifuge-app/src/components/Menu/IssuerMenu.tsx
kattylucy Dec 16, 2024
f997967
Update centrifuge-app/src/pages/IssuerCreatePool/validate.ts
kattylucy Dec 16, 2024
e54157b
Update centrifuge-app/src/pages/IssuerCreatePool/validate.ts
kattylucy Dec 16, 2024
12542b9
Rebase issue
kattylucy Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Type updates
  • Loading branch information
kattylucy committed Dec 17, 2024
commit d9aae6cc7e8f868ceb515c35313743e25b7df943
60 changes: 30 additions & 30 deletions centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
@@ -639,14 +639,6 @@ export type DailyPoolState = {
sumRedeemedAmountByPeriod: string
blockNumber: number
}
interface TrancheFormValues {
tokenName: string
symbolName: string
interestRate: number | ''
minRiskBuffer: number | ''
minInvestment: number | ''
targetAPY?: string | ''
}

export type IssuerDetail = {
title: string
@@ -663,28 +655,45 @@ export type PoolReport = {
}
uri: string
}
interface TrancheFormValues {
tokenName: string
symbolName: string
interestRate: number | ''
minRiskBuffer: number | ''
minInvestment: number | ''
apy: string | ''
}

export interface PoolMetadataInput {
// details
poolIcon: FileType | null
poolName: string
// pool structure
poolStructure: string
assetClass: 'Public credit' | 'Private credit'
subAssetClass: string
currency: string
maxReserve: number | ''
epochHours: number | ''
epochMinutes: number | ''
listed?: boolean
investorType: string
poolStructure: string

// issuer
// pool structure -> tranches
tranches: TrancheFormValues[]

// details
assetDenomination: string
investorType: string
poolIcon: FileType | null
maxReserve: number | ''
issuerName: string
issuerRepName: string
issuerLogo?: FileType | null
issuerDescription: string
issuerRepName: string
issuerShortDescription: string
issuerDescription: string
issuerCategories: { type: string; value: string; customType?: string }[]
website: string
forum: string
email: string
executiveSummary: FileType | null
details?: IssuerDetail[]

currency: string
epochHours: number | ''
epochMinutes: number | ''
listed?: boolean

poolReport?: {
authorName: string
@@ -699,15 +708,6 @@ export interface PoolMetadataInput {
reportFile?: FileType | null
}[]

executiveSummary: FileType | null
website: string
forum: string
email: string
details?: IssuerDetail[]

// tranche
tranches: TrancheFormValues[]

adminMultisig?: {
signers: string[]
threshold: number