Skip to content
Snippets Groups Projects

Draft: 4.(balance_tracker) Addicional reward tracking, more optimalization of processing functions

Closed Michal Zander requested to merge mzander/extended-rewards into develop
+ 0
13
@@ -81,19 +81,6 @@ INTO _delegator, _delegatee, _balance;
___current_blocked_balance = GREATEST(_current_balance - _balance , 0);
--DELEGATOR'S DELAGATION BALANCE DOESN'T CHANGE, BLOCKED VESTS SAVED IN TMP
INSERT INTO btracker_app.current_account_vests
(
account,
tmp
)
SELECT
_delegator,
___current_blocked_balance
ON CONFLICT ON CONSTRAINT pk_temp_vests
DO UPDATE SET
tmp = btracker_app.current_account_vests.tmp + EXCLUDED.tmp;
--DELEGATEE'S RECEIVED VESTS ARE BEING LOWERED INSTANTLY
Loading