Skip to content

Commit

Permalink
Merge pull request #115 from HausDAO/fix/HOS-loot-summoner
Browse files Browse the repository at this point in the history
Fix/hos loot summoner
  • Loading branch information
santteegt authored Aug 24, 2023
2 parents 76597b1 + ed48dc3 commit 86ed3c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/higherOrderFactories/BaalAdvTokenSummoner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ contract BaalAdvTokenSummoner is

event DeployBaalTokens(address lootToken, address sharesToken);

constructor() {
_disableInitializers();
}

function initialize() public initializer {
__Ownable_init();
__UUPSUpgradeable_init();
Expand Down Expand Up @@ -109,7 +113,7 @@ contract BaalAdvTokenSummoner is
if (summonerLoot[i] > 0) {
IBaalToken(_lootToken).mint(
summoners[i],
summonerShares[i]
summonerLoot[i]
); /*grant `to` `amount` `loot`*/
}
if (summonerShares[i] > 0) {
Expand Down
15 changes: 15 additions & 0 deletions contracts/interfaces/IBaalAndVaultSummoner.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IBaalAndVaultSummoner {

function _baalSummoner() external view returns (address);
function summonBaalAndVault(
bytes calldata initializationParams,
bytes[] calldata initializationActions,
uint256 saltNonce,
bytes32 referrer,
string memory name
) external returns (address _daoAddress, address _vaultAddress);

}

0 comments on commit 86ed3c6

Please sign in to comment.