Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2248 from bandprotocol/add-identity-on-delegation…
Browse files Browse the repository at this point in the history
…-view

cdb: add identity on delegation view
  • Loading branch information
taobun authored Jul 20, 2020
2 parents 0361e84 + 70d3368 commit a4ae23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

### Emitter & Flusher

- (feat) [\#2248](https://github.com/bandprotocol/bandchain/pull/2248) Add identity column on delegation view table.
- (bugs) [\#2273](https://github.com/bandprotocol/bandchain/pull/2273) Fix bug update delegators table after withdraw reward.
- (bugs) [\#2255](https://github.com/bandprotocol/bandchain/pull/2255) Fix bug `reward_amount` and `commission_amount` in extra field.
- (bugs) [\#2252](https://github.com/bandprotocol/bandchain/pull/2252) `handle_set_validator` get wrong validator id.
Expand Down
3 changes: 2 additions & 1 deletion flusher/flusher/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def init(chain_id, topic, db):
CAST(shares AS DECIMAL) * CAST(current_reward AS DECIMAL) / CAST(delegator_shares AS DECIMAL) + (CAST(current_ratio AS DECIMAL) - CAST(last_ratio AS DECIMAL)) * CAST(shares AS DECIMAL) as reward,
validators.operator_address,
moniker,
accounts.address AS delegator_address
accounts.address AS delegator_address,
identity
FROM delegations JOIN validators ON delegations.validator_id=validators.id
JOIN accounts ON accounts.id=delegations.delegator_id;''')
engine.execute('''CREATE VIEW validator_last_250_votes AS
Expand Down

0 comments on commit a4ae23a

Please sign in to comment.