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

View File

@ -128,29 +128,14 @@ type Pool @entity {
datatokenLiquidity: BigDecimal! datatokenLiquidity: BigDecimal!
datatokenWeight: BigDecimal! datatokenWeight: BigDecimal!
"pool Fee percent, fee goes to all liquidity providers : SWAP, JOIN , EXIT" "publisher market fee : SWAP, JOIN , EXIT"
poolFee: BigDecimal! marketSwapFee: BigDecimal!
"liquidity provider fee"
liquidityProviderFee: BigDecimal!
"OPF Fee percent, fee that goes to Ocean Protocol Foundation : SWAP" "OPF Fee percent, fee that goes to Ocean Protocol Foundation : SWAP"
opfFee: BigDecimal! opcFee: 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!]!
"total pool token shares" "total pool token shares"
totalShares: BigDecimal! totalShares: BigDecimal!
@ -211,15 +196,6 @@ type PoolTransaction @entity {
"number of shares transfered" "number of shares transfered"
sharesTransferAmount: BigDecimal! 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" "block time when pool was created"
timestamp: Int! timestamp: Int!
"pool creation transaction id" "pool creation transaction id"
@ -312,7 +288,9 @@ type FixedRateExchange @entity {
"if the owner allowes the fre to mint" "if the owner allowes the fre to mint"
withMint: Boolean withMint: Boolean
"if the fre has the minter role on the datatoken" "if the fre has the minter role on the datatoken"
isMinter: Boolean isMinter: Boolean
marketSwapFee: BigDecimal!
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId") updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId") swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")