Redirect transaction fees to dividends #274

Closed
opened 2022-02-11 14:51:43 +00:00 by serkixenos · 3 comments
serkixenos commented 2022-02-11 14:51:43 +00:00 (Migrated from gitlab.com)

Right now, when user executes non zero cost transaction, this fee is burned. We want to redirect fees to dividends pool, and pay GPOS participants with it.

Checkout libraries/chain/db_maint.cpp, function schedule_pending_dividend_balances.
Confirm where we need to store the fees, in order to get them distributed to GPOS participants.

Right now, when user executes non zero cost transaction, this fee is burned. We want to redirect fees to dividends pool, and pay GPOS participants with it. Checkout libraries/chain/db_maint.cpp, function schedule_pending_dividend_balances. Confirm where we need to store the fees, in order to get them distributed to GPOS participants.
hirunda commented 2022-02-15 17:50:38 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
hirunda commented 2022-02-24 13:08:38 +00:00 (Migrated from gitlab.com)

After writing and running automated tests we found that total balance (after redirecting fee to dividend account) is not aligned with the current balance which caused failing of tests.
With debugging the mentioned issue I found that the fee from operation is redirected to cashback_vesting_threshold.
On the account maintenance, already redirected fee to cashback_vesting_threshold is distributed to referrer, lifetime_referrer, registrar so no fee left for distributing to dividends.

I will put this issue on hold until we agree how should we proceed with scheduling/distribution fee ...

After writing and running automated tests we found that total balance (after redirecting fee to dividend account) is not aligned with the current balance which caused failing of tests. With debugging the mentioned issue I found that the fee from operation is redirected to cashback_vesting_threshold. On the account maintenance, already redirected fee to cashback_vesting_threshold is distributed to referrer, lifetime_referrer, registrar so no fee left for distributing to dividends. I will put this issue on hold until we agree how should we proceed with scheduling/distribution fee ...
hirunda commented 2022-03-01 13:11:54 +00:00 (Migrated from gitlab.com)

Implementation is done with mr !73

Implementation is done with mr !73
serkixenos (Migrated from gitlab.com) closed this issue 2022-03-04 19:16:34 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#274
No description provided.