Skip to content

Commit

Permalink
chore: factory init (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia authored Jun 5, 2023
1 parent 3e51c08 commit 3b0999d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions contracts/VaultFactory.vy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
The protocol fees will be sent to the designated fee_recipient and
then (X - protocol_fees) will be sent to the vault/strategy specific
fee recipient.
"""

from vyper.interfaces import ERC20
Expand Down Expand Up @@ -96,10 +95,10 @@ custom_protocol_fee: public(HashMap[address, uint16])
use_custom_protocol_fee: public(HashMap[address, bool])

@external
def __init__(name: String[64], vault_blueprint: address):
def __init__(name: String[64], vault_blueprint: address, governance: address):
self.name = name
VAULT_BLUEPRINT = vault_blueprint
self.governance = msg.sender
self.governance = governance

@external
def deploy_new_vault(
Expand Down
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def vault_blueprint(project, gov):
@pytest.fixture(scope="session")
def vault_factory(project, gov, vault_blueprint):
return gov.deploy(
project.VaultFactory, "Vault V3 Factory 3.0.1-beta", vault_blueprint
project.VaultFactory,
"Vault V3 Factory 3.0.1-beta",
vault_blueprint,
gov.address,
)


Expand Down

0 comments on commit 3b0999d

Please sign in to comment.