Skip to content

Commit 82fd689

Browse files
committed
minor changes
Signed-off-by: mihaisc <[email protected]>
1 parent 4ac408d commit 82fd689

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

schema.graphql

+7-6
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type Pool @entity {
8989
spotPrice: BigDecimal!
9090
consumePrice: BigDecimal! # TODO: still need?
9191

92-
// what is the point of the counts, we never used them => remove
92+
# what is the point of the counts, we never used them => remove
9393
joinCount: BigInt! # liquidity has been added
9494
exitCount: BigInt! # liquidity has been removed
9595
swapCount: BigInt!
@@ -192,6 +192,7 @@ type FixedRateExchange @entity {
192192
baseToken: Token!
193193
rate: BigDecimal!
194194
active: Boolean!
195+
suppy: Int!
195196
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
196197
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")
197198
}
@@ -220,13 +221,13 @@ type FixedRateExchangeSwap @entity {
220221
}
221222

222223
type Dispenser @entity {
223-
id: ID! # dispenser datatoken
224-
active: Boolean!
224+
id: ID! # it's the datatoken address
225+
active: Boolean!
225226
owner: User!
226227
minterApproved: Boolean!
227228
isTrueMinter: Boolean!
228-
maxTokens: BigDecimal!
229-
maxBalance: BigDecimal!
229+
maxTokens: BigDecimal! # max tokens that can be dispensed
230+
maxBalance: BigDecimal! # max balance of requester. If the balance is higher, the dispense is rejected
230231
balance: BigDecimal!
231232
datatoken: Datatoken!
232233
dispenses: [DispenserTransaction!] @derivedFrom(field: "dispenserId")
@@ -268,7 +269,7 @@ type PoolSnapshot @entity {
268269
}
269270

270271

271-
// shouldn't we move this to aquarius?
272+
# shouldn't we move this to aquarius?
272273
type MetadataUpdate @entity {
273274
id: ID! # update tx + datatokenAddress
274275
datatokenId: Datatoken!

0 commit comments

Comments
 (0)