Where is PaymentSplitterUpgradeable.sol in github? It seems missing

I can't find "@openzeppelin/contracts-upgradeable/finance/PaymentSplitterUpgradeable.sol" anywhere in Openzeppelin's github.

Can you point to where it is?


PaymentSplitter was removed in v5.0.0:

Removals Summary

The following contracts, libraries, and functions were removed:

  • Address.isContract (because of its ambiguous nature and potential for misuse)
  • Checkpoints.History
  • Counters
  • ERC20Snapshot
  • ERC20VotesComp
  • ERC165Storage (in favor of inheritance based approach)
  • ERC777
  • ERC1820Implementer
  • GovernorVotesComp
  • GovernorProposalThreshold (deprecated since 4.4)
  • PaymentSplitter
  • PullPayment
  • SafeMath
  • SignedSafeMath
  • Timers
  • TokenTimelock (in favor of VestingWallet)
  • All escrow contracts (Escrow, ConditionalEscrow and RefundEscrow)
  • All cross-chain contracts, including AccessControlCrossChain and all the vendored bridge interfaces
  • All presets in favor of OpenZeppelin Contracts Wizard

Please, 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.

1 Like

This comment provides reasoning on why it was removed: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4276#issuecomment-1584175563

1 Like