forked from tuomasoksa/tokenterminal-subgraph-exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
59 lines (42 loc) · 1006 Bytes
/
schema.graphql
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
type Comptroller @entity {
"Comptroller address"
id: ID!
"Active price oracle"
priceOracle: Bytes!
}
type Market @entity {
"CToken address"
id: ID!
"CToken symbol"
symbol: String!
"Total interest accrued"
totalFeesGenerated: BigDecimal!
"The part of total fees that goes to the protocol"
totalProtocolFeesGenerated: BigDecimal!
"Borrows in the market"
totalBorrows: BigDecimal!
"Supply in the market"
totalSupply: BigDecimal!
"Yearly supply rate. With 2104400 blocks per year"
supplyRate: BigDecimal!
"Exchange rate between CToken and underlying token"
exchangeRate: BigDecimal!
"The factor determining interest that goes to reserves"
reserveFactor: BigDecimal!
"Underlying token"
denomination: Token!
}
type Token @entity {
"Token address"
id: ID!
"Token address"
address: Bytes!
"Token name"
name: String!
"Token symbol"
symbol: String!
"Token decimals"
decimals: Int!
"Token's total supply"
totalSupply: BigInt!
}