when getting payout analytics, we sum the entire event payouts -
When calculating spend, this is OK
However, when calculating publisher earnings, this is offset by the validator fee. Unfortunately, there's no simple way to solve this, since every channel may have a different validator fee.
If possible, calculate the fee nominator/fee denominator fo reach channel within the mongo pipeline, and multiply depending on it.
when getting payout analytics, we sum the entire event payouts -
When calculating spend, this is OK
However, when calculating publisher earnings, this is offset by the validator fee. Unfortunately, there's no simple way to solve this, since every channel may have a different validator fee.
If possible, calculate the fee nominator/fee denominator fo reach channel within the mongo pipeline, and multiply depending on it.
related https://github.com/AdExNetwork/adex-platform/issues/317