Skip to content

Commit

Permalink
fix etherscan verification (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 authored Apr 11, 2024
1 parent 15eca6e commit c6da599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/crowdfund/ERC20LaunchCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ contract ERC20LaunchCrowdfund is InitialETHCrowdfund {
uint16 feeBasisPoints = 5e3; // Max possible fee
uint256 minTotalSpendableEth = ((((uint256(crowdfundOpts.minTotalContributions) *
(1e4 - crowdfundOpts.fundingSplitBps)) / 1e4) * (1e4 - feeBasisPoints)) / 1e4);
uint256 numTokensForLP = uint256(_tokenOpts.numTokensForLP);

if (
_tokenOpts.numTokensForDistribution +
Expand All @@ -70,7 +71,7 @@ contract ERC20LaunchCrowdfund is InitialETHCrowdfund {
_tokenOpts.numTokensForLP < 1e4 ||
crowdfundOpts.fundingSplitBps > 5e3 ||
crowdfundOpts.minTotalContributions < 1e4 ||
crowdfundOpts.maxTotalContributions >= uint256(_tokenOpts.numTokensForLP) * 1e18 ||
crowdfundOpts.maxTotalContributions >= numTokensForLP * 1e18 ||
_tokenOpts.numTokensForLP >= minTotalSpendableEth * 1e18
) {
revert InvalidTokenDistribution();
Expand Down

0 comments on commit c6da599

Please sign in to comment.