Skip to content

Commit

Permalink
feat: set initial launch date for RWA token
Browse files Browse the repository at this point in the history
  • Loading branch information
jycssu-com committed Nov 9, 2024
1 parent 911c5c9 commit b0f6d63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/hooks/useRWA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ const getRWA = async (
value,
totalInvestment,
unitPriceCost: tokenPrice,
initialLaunchDate: {
date: '2024-03-21 00:00:00.000000',
timezone_type: 3,
timezone: 'UTC',
},
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/store/features/wallets/walletsSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import moment from 'moment'
import { WalletBalances, WalletType } from 'src/repositories'
import { UserRealTokenTransfer } from 'src/repositories/transfers/transfers.type'
import { RootState } from 'src/store/store'
import { APIRealTokenDate } from 'src/types/APIRealToken'
import { RealToken, RealTokenCanal } from 'src/types/RealToken'
import {
RentCalculation,
Expand Down Expand Up @@ -52,7 +53,9 @@ export interface OtherRealtoken {
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface RWARealtoken extends OtherRealtoken {}
export interface RWARealtoken extends OtherRealtoken {
initialLaunchDate: APIRealTokenDate
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface REGRealtoken extends OtherRealtoken {}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down
2 changes: 1 addition & 1 deletion src/types/APIRealToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum APIRealTokenProductType {
LoanIncome = 'loan_income',
}

interface APIRealTokenDate {
export interface APIRealTokenDate {
date: string
timezone_type: number
timezone: string
Expand Down

0 comments on commit b0f6d63

Please sign in to comment.