Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a precompile allowing to send ZRC20 to be distributed to stakers #2792

Closed
Tracked by #2793
lumtis opened this issue Aug 29, 2024 · 0 comments · Fixed by #3019
Closed
Tracked by #2793

Add a precompile allowing to send ZRC20 to be distributed to stakers #2792

lumtis opened this issue Aug 29, 2024 · 0 comments · Fixed by #3019
Assignees
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 zeta-utility Improve the utility of ZETA token

Comments

@lumtis
Copy link
Member

lumtis commented Aug 29, 2024

Would depend or heavily reuse logic from: #2791

Add a precompile leveraging the fee pool of the Distribution module to distribute rewards to ZETA stakers: https://docs.cosmos.network/main/build/modules/distribution

Interface (to be finalized):

Precompile contract named Distribution:

distribute(address zrc20, uint256 amount) // send zrc20 to distribution pool, the contract manage the conversion into Cosmos token

To be consider: another function allow to create a distribution over time: distribute 1000 BTC over 4 weeks

Other consideration

To have an experience where users only interact with ZRC20s and EVM, we could extend the claim method implement in #2754 to automatically convert the claimed rewards into ZRC20s

Note:

@lumtis lumtis added 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 zeta-utility Improve the utility of ZETA token labels Aug 29, 2024
@lumtis lumtis linked a pull request Nov 4, 2024 that will close this issue
5 tasks
@lumtis lumtis closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 zeta-utility Improve the utility of ZETA token
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants