I can't find "@openzeppelin/contracts-upgradeable/finance/PaymentSplitterUpgradeable.sol" anywhere in Openzeppelin's github.
Can you point to where it is?
Thanks.
I can't find "@openzeppelin/contracts-upgradeable/finance/PaymentSplitterUpgradeable.sol" anywhere in Openzeppelin's github.
Can you point to where it is?
Thanks.
PaymentSplitter was removed in v5.0.0:
The following contracts, libraries, and functions were removed:
Address.isContract (because of its ambiguous nature and potential for misuse)Checkpoints.HistoryCountersERC20SnapshotERC20VotesCompERC165Storage (in favor of inheritance based approach)ERC777ERC1820ImplementerGovernorVotesCompGovernorProposalThreshold (deprecated since 4.4)PaymentSplitterPullPaymentSafeMathSignedSafeMathTimersTokenTimelock (in favor of VestingWallet)Escrow, ConditionalEscrow and RefundEscrow)AccessControlCrossChain and all the vendored bridge interfacesPlease, does that mean PaymentSplitterUpgradeable.sol too cannot be used anymore? What will be the effect if used?
Thanks for the quick reply, @barakman
Obviously, if SomeContract is no longer viable, then so will be SomeContractUpgradable.
I'm not sure why they chose to remove PaymentSplitter; it was a very good utility for its purpose.
Thank you, @barakman.
This comment provides reasoning on why it was removed: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4276#issuecomment-1584175563