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 #1901 from bandprotocol/add-moniker-to-delegations…
Browse files Browse the repository at this point in the history
…-view

chain: added moniker to delegations view table
  • Loading branch information
Sawit Trisirisatayawong committed Jun 8, 2020
2 parents 87efc2d + cabe17b commit 58413e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Chain

- (impv) [\#1901](https://github.com/bandprotocol/bandchain/pull/1901) Added `moniker` field to `delegations_view` table.
- (feat) [\#1879](https://github.com/bandprotocol/bandchain/pull/1879) Keep `Request` and `Report` around. We avoid premature optimization at the moment.
- (feat) [\#1873](https://github.com/bandprotocol/bandchain/pull/1873) Add `in-before-resolve` field in `Report` data structure.
- (feat) [\#1875](https://github.com/bandprotocol/bandchain/pull/1875) Add CLI and REST query interface for request.
Expand Down
1 change: 1 addition & 0 deletions chain/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func NewDB(dialect, path string) (*BandDB, error) {
CAST(shares AS DECIMAL) / CAST(delegator_shares AS DECIMAL) * 100 as share_percentage,
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,
validator_address,
moniker,
delegator_address
FROM delegations JOIN validators ON validator_address = operator_address;
`)
Expand Down

0 comments on commit 58413e7

Please sign in to comment.