fee update (#321)

This commit is contained in:
mihaisc 2022-02-15 18:12:29 +02:00 committed by GitHub
parent 6a64fa8ea2
commit 5f67254d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 31 deletions

View File

@ -128,29 +128,14 @@ type Pool @entity {
datatokenLiquidity: BigDecimal!
datatokenWeight: BigDecimal!
"pool Fee percent, fee goes to all liquidity providers : SWAP, JOIN , EXIT"
poolFee: BigDecimal!
"publisher market fee : SWAP, JOIN , EXIT"
marketSwapFee: BigDecimal!
"liquidity provider fee"
liquidityProviderFee: BigDecimal!
"OPF Fee percent, fee that goes to Ocean Protocol Foundation : SWAP"
opfFee: BigDecimal!
"market fee percent, fee that goes to the market where the pool was created : SWAP"
marketFee: BigDecimal!
"actual value of fee collected in both tokens"
totalPoolFee: [TokenValuePair!]!
"actual value of fee collected in both tokens"
totalOpfFee: [TokenValuePair!]!
"actual value of fee collected in both tokens"
totalMarketFee: [TokenValuePair!]!
"fee after collection = totalFee - colectedFee"
availableOpfFee: [TokenValuePair!]!
"fee after collection totalFee - colectedFee"
availableMarketFee: [TokenValuePair!]!
opcFee: BigDecimal!
"total pool token shares"
totalShares: BigDecimal!
@ -211,15 +196,6 @@ type PoolTransaction @entity {
"number of shares transfered"
sharesTransferAmount: BigDecimal!
"pool fee value, fee goes to all liquidity providers : SWAP, JOIN , EXIT"
poolFee: BigDecimal!
"OPF Fee value, fee that goes to Ocean Protocol Foundation : SWAP"
opfFee: BigDecimal!
"market fee value, fee that goes to the publishing market"
marketFee: BigDecimal!
"block time when pool was created"
timestamp: Int!
"pool creation transaction id"
@ -312,7 +288,9 @@ type FixedRateExchange @entity {
"if the owner allowes the fre to mint"
withMint: Boolean
"if the fre has the minter role on the datatoken"
isMinter: Boolean
isMinter: Boolean
marketSwapFee: BigDecimal!
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")