Skip to content

Instantly share code, notes, and snippets.

@shobhitic
Last active December 9, 2022 08:00
Show Gist options
  • Save shobhitic/a30da45adb434f2b00c9ea6d1568e80e to your computer and use it in GitHub Desktop.
Save shobhitic/a30da45adb434f2b00c9ea6d1568e80e to your computer and use it in GitHub Desktop.
Payment Splitter - https://youtu.be/8Xeer6eHceI
// 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());
}
}
// 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