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

Added StakingFacet.sol and StakingTokenFacet.sol #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mudgen
Copy link
Member

@mudgen mudgen commented Feb 1, 2024

StakingTokenFacet.sol has the ERC721 functions for the new "GLTR Staking Token".

StakingFacet.sol has the functions for minting and burning GLTR Staking Tokens and various view functions to get information.

With these changes users can deposit liquidity to mint a StakingToken ERC721 token. Later they can burn the StakingToken and get back the original amount of liquidity plus GLTR rewards.

Also added a "addBonus" function which is a way for external systems to reward users with GLTR for staking liquidity.

Copy link

Added StakingFacet.sol and StakingTokenFacet.sol

Generated at commit: 9a49824f97f8db8ea3911d4af3940ee919c3a8a8

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
0
0
14
36
52
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant