Closed lemunozm closed 8 months ago
After some testing, the bounds of pallet-rewards
are always satisfied internally and do not force the consumers of it to also put them. I think this issue is anyways interesting for readability, but really low low priority, so I close it.
Description
Pallet rewards use extra bounds as https://github.com/centrifuge/centrifuge-chain/blob/main/pallets/rewards/src/lib.rs#L428 which are very annoying to use, forcing the users of
pallet_rewards
carry those bounds everywhere they need a reward usage (i.e. testing with the generic framework of integration tests).We should either:
Config
trait ofpallet_rewards
instead.