Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xble authored and arr00 committed Mar 25, 2024
1 parent 2186e0c commit 561a8c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/crowdfund/ERC20LaunchCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract ERC20LaunchCrowdfund is InitialETHCrowdfund {

ERC20LaunchOptions public tokenOpts;

bool isTokenLaunched;
bool public isTokenLaunched;

constructor(IGlobals globals, IERC20Creator erc20Creator) InitialETHCrowdfund(globals) {
ERC20_CREATOR = erc20Creator;
Expand Down Expand Up @@ -118,8 +118,6 @@ contract ERC20LaunchCrowdfund is InitialETHCrowdfund {
}

function _finalize(uint96 totalContributions_) internal override {
Party _party = party;

// Finalize the crowdfund.
delete expiry;

Expand All @@ -132,7 +130,7 @@ contract ERC20LaunchCrowdfund is InitialETHCrowdfund {

// Update the party's total voting power.
uint96 newVotingPower = _calculateContributionToVotingPower(totalContributions_);
_party.increaseTotalVotingPower(newVotingPower);
party.increaseTotalVotingPower(newVotingPower);

emit Finalized();
}
Expand Down

0 comments on commit 561a8c1

Please sign in to comment.