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: stakable factories #47

Merged
merged 1 commit into from
Mar 22, 2024
Merged

feat: stakable factories #47

merged 1 commit into from
Mar 22, 2024

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Mar 22, 2024

  • Created BaseLightAccountFactory which holds ownership and staking logic.
  • LightAccountFactory and MultiOwnerLightAccountFactory now inherits from BaseLightAccountFactory.
  • Updated tests.

@jaypaik jaypaik requested review from adam-alchemy and howydev March 22, 2024 17:01
@jaypaik jaypaik force-pushed the 03-22-feat_stakable_factories branch from 63de68c to 59bdc72 Compare March 22, 2024 17:03
Copy link
Contributor

@adam-alchemy adam-alchemy left a comment

Choose a reason for hiding this comment

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

Looks good!

/// @dev Only callable by owner.
/// @param to Address to send native currency to.
function withdrawStake(address payable to) external onlyOwner {
ENTRY_POINT.withdrawStake(to);
Copy link
Contributor

Choose a reason for hiding this comment

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

Hypothetically, we could add a withdraw function to withdraw from the EntryPoint's deposit for this factory, but that should never happen unless we make a mistake. So I'm ok leaving that out.

@jaypaik jaypaik merged commit 93f46a2 into develop Mar 22, 2024
2 checks passed
@jaypaik jaypaik deleted the 03-22-feat_stakable_factories branch March 22, 2024 17:43
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