Skip to content

Commit 5f67254

Browse files
authored
fee update (#321)
1 parent 6a64fa8 commit 5f67254

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

schema.graphql

+9-31
Original file line numberDiff line numberDiff line change
@@ -128,29 +128,14 @@ type Pool @entity {
128128
datatokenLiquidity: BigDecimal!
129129
datatokenWeight: BigDecimal!
130130

131-
"pool Fee percent, fee goes to all liquidity providers : SWAP, JOIN , EXIT"
132-
poolFee: BigDecimal!
131+
"publisher market fee : SWAP, JOIN , EXIT"
132+
marketSwapFee: BigDecimal!
133133

134-
"OPF Fee percent, fee that goes to Ocean Protocol Foundation : SWAP"
135-
opfFee: BigDecimal!
136-
137-
"market fee percent, fee that goes to the market where the pool was created : SWAP"
138-
marketFee: BigDecimal!
139-
140-
"actual value of fee collected in both tokens"
141-
totalPoolFee: [TokenValuePair!]!
142-
143-
"actual value of fee collected in both tokens"
144-
totalOpfFee: [TokenValuePair!]!
145-
146-
"actual value of fee collected in both tokens"
147-
totalMarketFee: [TokenValuePair!]!
148-
149-
"fee after collection = totalFee - colectedFee"
150-
availableOpfFee: [TokenValuePair!]!
134+
"liquidity provider fee"
135+
liquidityProviderFee: BigDecimal!
151136

152-
"fee after collection totalFee - colectedFee"
153-
availableMarketFee: [TokenValuePair!]!
137+
"OPF Fee percent, fee that goes to Ocean Protocol Foundation : SWAP"
138+
opcFee: BigDecimal!
154139

155140
"total pool token shares"
156141
totalShares: BigDecimal!
@@ -211,15 +196,6 @@ type PoolTransaction @entity {
211196
"number of shares transfered"
212197
sharesTransferAmount: BigDecimal!
213198

214-
"pool fee value, fee goes to all liquidity providers : SWAP, JOIN , EXIT"
215-
poolFee: BigDecimal!
216-
217-
"OPF Fee value, fee that goes to Ocean Protocol Foundation : SWAP"
218-
opfFee: BigDecimal!
219-
220-
"market fee value, fee that goes to the publishing market"
221-
marketFee: BigDecimal!
222-
223199
"block time when pool was created"
224200
timestamp: Int!
225201
"pool creation transaction id"
@@ -312,7 +288,9 @@ type FixedRateExchange @entity {
312288
"if the owner allowes the fre to mint"
313289
withMint: Boolean
314290
"if the fre has the minter role on the datatoken"
315-
isMinter: Boolean
291+
isMinter: Boolean
292+
293+
marketSwapFee: BigDecimal!
316294

317295
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
318296
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")

0 commit comments

Comments
 (0)