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: introduce VaultFactory #38

Merged
merged 1 commit into from
Nov 7, 2023
Merged

feat: introduce VaultFactory #38

merged 1 commit into from
Nov 7, 2023

Conversation

0x-r4bbit
Copy link
Collaborator

@0x-r4bbit 0x-r4bbit commented Oct 12, 2023

This commit introduces a first version of a VaultFactory that later will be extended to be capable of instantiating reward vaults and possible keep track of vault instances per owner.

As a first step, this implementation comes with a createVault() function which takes care of creating vaults.

Because VaultFactory also knows about StakeManager it can derive the manager's address and stake token from it when creating vaults, allowing the API to be without arguments.

Partially addresses #37

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Added natspec comments?
  • Ran forge snapshot?
  • Ran pnpm lint?
  • Ran forge test?

Base automatically changed from refactor/staked-token to develop November 7, 2023 08:40
This commit introduces a first version of a `VaultFactory` that later
will be extended to be capable of instantiating reward vaults and
possible keep track of vault instances per owner.

As a first step, this implementation comes with a `createVault()`
function which takes care of creating vaults.

Because `VaultFactory` also knows about `StakeManager` it can derive the
manager's address and stake token from it when creating vaults, allowing
the API to be without arguments.

Partially addresses #37
@0x-r4bbit 0x-r4bbit merged commit f259286 into develop Nov 7, 2023
4 checks passed
@0x-r4bbit 0x-r4bbit deleted the feat/vault-factory branch November 7, 2023 08:49
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.

None yet

2 participants