diff --git a/CHANGELOG.md b/CHANGELOG.md index afa5df53b..62380eb6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,11 +38,14 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features +- [729](https://github.com/persistenceOne/pstake-native/pull/729) Add rewards account query (hence autocompound) OnChanOpenAck. +- [727](https://github.com/persistenceOne/pstake-native/pull/727) Send LSM redeem messages in chunks. - [721](https://github.com/persistenceOne/pstake-native/pull/721) Add Query host chain user unbondings. ### Bug Fixes -- [728](https://github.com/persistenceOne/pstake-native/pull/728) Fix prevent users from liquid-staking funds by removing the Deposit entry. -- [727](https://github.com/persistenceOne/pstake-native/pull/727) Send LSM redeem messages in chunks. + +- [728](https://github.com/persistenceOne/pstake-native/pull/728) Fix prevent users from liquid-staking funds by + removing the Deposit entry. - [726](https://github.com/persistenceOne/pstake-native/pull/726) Fix minimal unbondings. - [725](https://github.com/persistenceOne/pstake-native/pull/725) Fix Incorrect bookkeeping of validator’s delegated amount upon redelegation diff --git a/x/liquidstakeibc/keeper/ibc.go b/x/liquidstakeibc/keeper/ibc.go index 45db4e22f..0db6951c1 100644 --- a/x/liquidstakeibc/keeper/ibc.go +++ b/x/liquidstakeibc/keeper/ibc.go @@ -95,6 +95,16 @@ func (k *Keeper) OnChanOpenAck( ) } } + // send an ICQ query to get the rewards account balance + if hc.RewardsAccount != nil && hc.RewardsAccount.ChannelState == types.ICAAccount_ICA_CHANNEL_CREATED { + if err := k.QueryRewardsHostChainAccountBalance(ctx, hc); err != nil { + return fmt.Errorf( + "error querying host chain %s for rewards account balances: %v", + hc.ChainId, + err, + ) + } + } k.Logger(ctx).Info( "Created new ICA.",