Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/DeployHamzaVault.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract DeployHamzaVault is Script {
using stdJson for string;

// (A) Deployed BaalSummoner on Sepolia
address constant BAAL_SUMMONER = 0x65CA4517569D468D786Cb9fAE6c78aED2F244985;
address constant BAAL_SUMMONER = 0xDf9493E0AB228F6b807F5100EfC34B8E031ef8bf;

// Key addresses & params
address public OWNER_ONE;
Expand Down
6 changes: 3 additions & 3 deletions src/CustomBaal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ contract CustomBaal is Module, EIP712Upgradeable, ReentrancyGuardUpgradeable, Ba
if (communityVault != address(0)) {
uint256 vaultLootBalance = lootToken.balanceOf(communityVault);
uint256 vaultSharesBalance = sharesToken.balanceOf(communityVault);
adjustedTotalSupply = _totalSupply > (vaultLootBalance + vaultSharesBalance)
? _totalSupply - (vaultLootBalance + vaultSharesBalance)
adjustedTotalSupply = _totalSupply > (vaultLootBalance)
? _totalSupply - (vaultLootBalance)
: 1; // Avoid division by zero
}

Expand Down Expand Up @@ -1018,7 +1018,7 @@ contract CustomBaal is Module, EIP712Upgradeable, ReentrancyGuardUpgradeable, Ba

/// @notice Helper to check total supply of loot and shares
function totalSupply() public view returns (uint256) {
return totalLoot() + totalShares();
return totalLoot();
}

/***************
Expand Down