solana-with-rpc-optimizations/programs
Rob Walker 7cc2a6801b
fix rewards points (#10914)
* fix rewards points

* fixups

* * verify that we don't spend more in rewards than we've allocated for rewards
* purge f64s from calculations that could be done with integers

* test typical values

* simplify iteration over delegations some

* fixups

* Use try_from

* Add a comment for commission_split()

* Add assertion to detect inconsistent reward dist.

* Fix vote_balance_and_staked

* Don't overwrite accounts with stale copies

* Fix CI...

* Add tests for vote_balance_and_staked

* Add test for the determinism of update_rewards

* Revert "Don't overwrite accounts with stale copies"

This reverts commit 9886d085a69d695f48970f48f2f567e62ba05414.

* Make stake_delegation_accounts to return hashmap

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-07-21 13:57:25 +09:00
..
bpf Update lock files 2020-07-14 14:40:02 -07:00
bpf_loader Fix hygiene issues in `declare_program!` and `declare_loader!` 2020-07-14 14:40:02 -07:00
btc_spv chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
btc_spv_bin Bump serde from 1.0.111 to 1.0.112 2020-06-15 07:58:16 -07:00
budget chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
config chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
exchange chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
failure Rename Client methods to match proposed BanksClient (#10793) 2020-06-25 03:35:38 +00:00
librapay Update lock files 2020-07-14 14:40:02 -07:00
move_loader Update lock files 2020-07-14 14:40:02 -07:00
noop
ownable chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
stake fix rewards points (#10914) 2020-07-21 13:57:25 +09:00
vest chore(deps): bump bincode from 1.2.1 to 1.3.1 (#10867) 2020-07-09 00:08:05 +00:00
vote fix rewards points (#10914) 2020-07-21 13:57:25 +09:00