Open h3lio5 opened 2 weeks ago
Currently the provider reward payout happens in the EndBlock hook, which is unnecessary. But we want to move the reward payout logic from EndBlock hook into a new Tx method claimRewards().
claimRewards()
relevant codebase: https://github.com/topology-foundation/topchain-node/blob/main/x/subscription/module/module.go#L158
Currently the provider reward payout happens in the EndBlock hook, which is unnecessary. But we want to move the reward payout logic from EndBlock hook into a new Tx method
claimRewards()
.relevant codebase: https://github.com/topology-foundation/topchain-node/blob/main/x/subscription/module/module.go#L158