keep-network / keep-core

The smart contracts and reference client behind the Keep network
https://keep.network
MIT License
118 stars 73 forks source link

Fix the wallets limit filter in the wallet maintainer redemptions code #3683

Closed lukasz-zimnoch closed 1 year ago

lukasz-zimnoch commented 1 year ago

Closes: https://github.com/keep-network/keep-core/issues/3682

As described in #3682, the current logic is wrong. If the WalletsLimit filter is on, always the same oldest wallets will be taken into account so redemption requests targeting newer wallets can be missed by the wallet maintainer. We are fixing that by applying the WalletsLimit filter at a later stage.