Last active
December 9, 2022 08:00
-
-
Save shobhitic/a30da45adb434f2b00c9ea6d1568e80e to your computer and use it in GitHub Desktop.
Payment Splitter - https://youtu.be/8Xeer6eHceI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.9; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MyToken is ERC20 { | |
constructor() ERC20("MyToken", "MTK") { | |
_mint(msg.sender, 10000000 * 10 ** decimals()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.9; | |
import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; | |
contract Split is PaymentSplitter { | |
constructor ( | |
address[] memory payees, | |
uint256[] memory shares_ | |
) payable | |
PaymentSplitter(payees, shares_) | |
{} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment