Bugfix/delegation reconcile (#1219)

* Passing proxy value when attempting to compound delegator reward

* Do not attempt to delegate reward to mixnode if its zero

* Additional guards against sending 0 tokens

* Removed sign of sloppiness

* Fixes to rewards and delegation events storage

* Remove block count check, epoch cannot be advanced while in progress

* Add reward compound ops to vesting contract

* Migration to remove 0 value delegationns

Co-authored-by: durch <durch@users.noreply.github.com>
This commit is contained in:
Jędrzej Stuczyński
2022-04-25 13:01:45 +02:00
committed by GitHub
parent 9fb980dc5e
commit 8318002b0a
18 changed files with 201 additions and 105 deletions
+2 -1
View File
@@ -157,6 +157,7 @@ impl<C> Client<C> {
&self,
address: String,
mix_identity: IdentityKey,
proxy: Option<String>,
) -> Result<u128, ValidatorClientError>
where
C: CosmWasmClient + Sync,
@@ -164,7 +165,7 @@ impl<C> Client<C> {
self.0
.read()
.await
.get_delegator_rewards(address, mix_identity)
.get_delegator_rewards(address, mix_identity, proxy)
.await
}