-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
50 lines (47 loc) · 1.12 KB
/
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
"""
The Pool Registry entity manages pools and markets
"""
type PoolRegistry @entity {
"ID is set to 1"
id: ID!
}
enum RiskRating {
VERY_HIGH_RISK
HIGH_RISK
MEDIUM_RISK
LOW_RISK
MINIMAL_RISK
}
"""
The Pool entity
"""
type Pool @entity {
"Comptroller of the pool"
id: ID!
"Name of the pool"
name: String!
"Creator of the pool"
creator: Bytes!
"Block where the market was created"
blockPosted: BigInt!
"Timestamp of market creation"
timestampPosted: BigInt!
"Rating of the pools risk level"
riskRating: RiskRating!
"Category that the pool belongs too"
category: String!
"Url for pool logo"
logoUrl: String!
"Description of the pool"
description: String!
"Address of price oracle the comptroller uses"
priceOracle: Bytes!
"Factor used to determine repayAmount for liquidating"
closeFactor: BigInt!
"The percent bonus liquidators get for liquidating"
liquidationIncentive: BigInt!
"Min Liquidable Amount allowed"
minLiquidatableCollateral: BigInt!
"Max assets a single user can enter"
maxAssets: BigInt!
}