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.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
)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.
This comment provides reasoning on why it was removed: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4276#issuecomment-1584175563