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

feat: Add LSP7Votes and LSP8Votes extension to support LSP-based Governance #980

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

YamenMerhi
Copy link
Member

What does this PR introduce?

🚀 Feature

  • Add implementation of LSP7 and LSP8 required interface for supporting governance compliant to ERC5805.

PR Checklist

  • Wrote Tests
  • Wrote & Generated Documentation (readme/natspec/dodoc)
  • Ran npm run lint && npm run lint:solidity (solhint)
  • Ran npm run format (prettier)
  • Ran npm run build
  • Ran npm run test

force: force,
data: data
});
_update(address(0), to, amount, force, data);
Copy link
Member

Choose a reason for hiding this comment

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

Let's wait for #974 to be merged first, as the Core contract does not exist anymore,

if (fromBalance < value) {
revert LSP7AmountExceedsBalance(fromBalance, from, value);
}
unchecked {
Copy link
Member

Choose a reason for hiding this comment

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

Nice this is inspired from OZ 🫡

*/
function checkpoints(
address account,
uint32 pos
Copy link
Member

Choose a reason for hiding this comment

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

What does pos stands for? Suggest a more explicit param name

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

Successfully merging this pull request may close these issues.

2 participants