Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
balance_tracker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
balance_tracker
Merge requests
!23
Draft: 4.(balance_tracker) Addicional reward tracking, more optimalization of processing functions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: 4.(balance_tracker) Addicional reward tracking, more optimalization of processing functions
mzander/extended-rewards
into
develop
Overview
0
Commits
5
Pipelines
0
Changes
5
Closed
Michal Zander
requested to merge
mzander/extended-rewards
into
develop
1 year ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 3
version 5
8b1dfcbf
1 year ago
version 4
1c2ffeda
1 year ago
version 3
2b2d2470
1 year ago
version 2
4d0bfe84
1 year ago
version 1
522a95fa
1 year ago
develop (base)
and
version 4
latest version
1d19abed
5 commits,
1 year ago
version 5
8b1dfcbf
4 commits,
1 year ago
version 4
1c2ffeda
3 commits,
1 year ago
version 3
2b2d2470
3 commits,
1 year ago
version 2
4d0bfe84
5 commits,
1 year ago
version 1
522a95fa
4 commits,
1 year ago
Show latest version
1 file
+
0
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
db/process_delegations.sql
+
0
−
13
Options
@@ -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