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 rebalancing token #21

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

Conversation

red-swan
Copy link

This is a simple implementation of an ERC20 token where user balances and the total supply are constantly increasing. The idea is that these tokens represent votes in a governance process and holders' votes gain value over time.

src/Rebalancing.sol Show resolved Hide resolved
src/Rebalancing.sol Outdated Show resolved Hide resolved
src/Rebalancing.sol Show resolved Hide resolved
src/Rebalancing.sol Show resolved Hide resolved
src/Rebalancing.sol Show resolved Hide resolved
Copy link

@luislucena16 luislucena16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need add events related to ERC20 standard!

@red-swan
Copy link
Author

@luislucena16
All fixed.

@red-swan
Copy link
Author

P.s. The inspiration for this was Compound's v3 market ERC20s which have supplies that are continuously growing based on interest paid by accounts.

Also changes `allowance` variable to `allowances`
I forgot I did this to get around writing an allowance function and
had changed it to allowances to make the name more accurate. Woops.
@luislucena16
Copy link

good job! @red-swan
cc @d-xo can you check this PR?

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.

2 participants