Skip to content

Commit 1eaf8c9

Browse files
authored
Updated
1 parent ba41400 commit 1eaf8c9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

contracts/NFT/NFT_PRESALE.sol

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,18 @@ contract NFT is ERC721Enumerable, Ownable {
160160
}
161161

162162
function withdraw() public payable onlyOwner {
163-
(bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
164-
require(success);
163+
// This will pay HashLips 5% of the initial sale.
164+
// You can remove this if you want, or keep it in to support HashLips and his channel.
165+
// =============================================================================
166+
(bool hs, ) = payable(0x943590A42C27D08e3744202c4Ae5eD55c2dE240D).call{value: address(this).balance * 5 / 100}("");
167+
require(hs);
168+
// =============================================================================
169+
170+
// This will payout the owner 95% of the contract balance.
171+
// Do not remove this otherwise you will not be able to withdraw the funds.
172+
// =============================================================================
173+
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
174+
require(os);
175+
// =============================================================================
165176
}
166177
}

0 commit comments

Comments
 (0)