forked from cinnabarhorse/yieldhero
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.tsx
More file actions
63 lines (53 loc) · 1.08 KB
/
types.tsx
File metadata and controls
63 lines (53 loc) · 1.08 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
export interface Price {
priceInEth: string
}
export interface aToken {
id: string
}
export interface ReserveType {
id: string
symbol: string
price: Price
name: string
decimals: number
isActive: boolean
aToken: aToken
liquidityRate: string
}
export interface UserReserveType {
id: string
principalBorrows: string
principalATokenBalance: string
reserve: ReserveType
borrowRate: string
interestRedirectionAddress?: string
redirectedBalance?: string
user?: UserType
}
export interface UserType {
id: string
}
export interface User {
reserves: UserReserveType[]
}
export type TradeState = "waitingConfirm" | "trading" | "approving"
export interface CreatorType {
name: string
bio: string
wallet: string
ens: string
img: string
twitter?: string
pinned?: boolean
}
export interface LeaderboardUser {
address: string
amount: number
user: UserReserveType[]
}
export interface SupporterType {
creator: CreatorType
address: string
supporters: any
totalRedirect: number
}