Skip to content

Commit

Permalink
build: scripts and license
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Oct 24, 2023
1 parent 70b99ce commit 2385304
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/accountants/HelathCheckAccountant.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@yearn-vaults/interfaces/IVault.sol";
import {IVault} from "@yearn-vaults/interfaces/IVault.sol";

contract HealthCheckAccountant {
using SafeERC20 for ERC20;
Expand Down
2 changes: 1 addition & 1 deletion contracts/debtAllocators/GenericDebtAllocator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity 0.8.18;

import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
Expand Down
8 changes: 3 additions & 5 deletions contracts/debtAllocators/GenericDebtAllocatorFactory.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity 0.8.18;

import {GenericDebtAllocator} from "./GenericDebtAllocator.sol";
Expand All @@ -16,10 +16,8 @@ contract GenericDebtAllocatorFactory {
// Original allocator to use for cloning.
address public immutable original;

constructor(address _vault, address _governance) {
original = address(new GenericDebtAllocator(_vault, _governance));

emit NewDebtAllocator(original, _vault);
constructor() {
original = address(new GenericDebtAllocator(address(1), address(2)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/Registry.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity 0.8.18;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/RegistryFactory.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity 0.8.18;

import {Registry} from "./Registry.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/ReleaseRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity 0.8.18;

import {Governance} from "@periphery/utils/Governance.sol";
Expand Down
1 change: 1 addition & 0 deletions scripts/deploy_address_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ def deploy_address_provider():
print("------------------")
print(f"Encoded Constructor to use for verifaction {constructor.hex()}")


def main():
deploy_address_provider()
8 changes: 3 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,9 @@ def address_provider(deploy_address_provider):


@pytest.fixture(scope="session")
def deploy_generic_debt_allocator_factory(project, vault, daddy):
def deploy_generic_debt_allocator_factory(initial_vault=vault, gov=daddy):
generic_debt_allocator_factory = gov.deploy(
project.GenericDebtAllocatorFactory, initial_vault, gov
)
def deploy_generic_debt_allocator_factory(project, daddy):
def deploy_generic_debt_allocator_factory(gov=daddy):
generic_debt_allocator_factory = gov.deploy(project.GenericDebtAllocatorFactory)

return generic_debt_allocator_factory

Expand Down

0 comments on commit 2385304

Please sign in to comment.