Allow claiming staking rewards through smart contracts #2930
Labels
feature:idea
An early idea for a feature. Used as reference to follow new feature integrations
feature:smart-contracts
Related to extending smart contracts capability and interactions with ZEVM
stateful-precompile
A new stateful precompile contract that is user facing
Describe the Issue
The staking precompile currently allow to manage stakes but not claiming rewards.
We should add the ability to claim the rewards to give full flexibility to build staking application (with the staking precompile the staker address might be a contract, currently this contract would not be able to stake the rewards)
Add the following methods:
Solution
Claiming is part of the distribution module and not staking module.
Two solutions:
Other considerations
Some of the rewards would be in ZRC20 as Cosmos Coin version introduced in #2791
When claiming ZRC20., the ZRC20s should be directly sent to claimer as the ERC20 version, the users should never have to use the Cosmos native version.
The text was updated successfully, but these errors were encountered: