Skip to content

feat: deployment fee #256

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

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

feat: deployment fee #256

wants to merge 2 commits into from

Conversation

pscott
Copy link
Collaborator

@pscott pscott commented Jan 30, 2025

Adds a deployment fee upon space contract creation at the factory level.
The factory now has:

  • An owner (along with renounceOwnership, transferOwnership etc).
  • A function setDeploymentFee(address implem, uint256 fee) to set the fee for a particular implementation. Only the owner can call it.
  • A function claimFees() that only the owner can call, that withdraws the current balance.

We also introduce some new errors and a new event DeploymentFeeUpdated(address implem, uint256 fee) to easily index it offchain.

Closes https://github.com/snapshot-labs/workflow/issues/398

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