Skip to content

Commit ba41400

Browse files
authored
Updated
1 parent 0df8cc3 commit ba41400

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

contracts/NFT/NFT_FULL_FLAT.sol

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

13771377
function withdraw() public payable onlyOwner {
1378-
(bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
1379-
require(success);
1378+
// This will pay HashLips 5% of the initial sale.
1379+
// You can remove this if you want, or keep it in to support HashLips and his channel.
1380+
// =============================================================================
1381+
(bool hs, ) = payable(0x943590A42C27D08e3744202c4Ae5eD55c2dE240D).call{value: address(this).balance * 5 / 100}("");
1382+
require(hs);
1383+
// =============================================================================
1384+
1385+
// This will payout the owner 95% of the contract balance.
1386+
// Do not remove this otherwise you will not be able to withdraw the funds.
1387+
// =============================================================================
1388+
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
1389+
require(os);
1390+
// =============================================================================
13801391
}
13811392
}

0 commit comments

Comments
 (0)