topology-foundation / topchain-node

MIT License
2 stars 7 forks source link

Add a new Tx method to claim rewards #40

Open h3lio5 opened 2 weeks ago

h3lio5 commented 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().

relevant codebase: https://github.com/topology-foundation/topchain-node/blob/main/x/subscription/module/module.go#L158