AmbireTech / adex-validator

AdEx validator stack reference implementation: sentry, validator worker
https://www.adex.network
GNU Affero General Public License v3.0
8 stars 11 forks source link

[CANCELLED] Analytics: adjust payouts based on validator fees #255

Closed Ivshti closed 4 years ago

Ivshti commented 4 years ago

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

Ivshti commented 4 years ago

closing, will do ?segmentByChannel instead