ERC4646FeesMock.sol 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.20;
  3. import {ERC4626Fees} from "../docs/ERC4626Fees.sol";
  4. abstract contract ERC4626FeesMock is ERC4626Fees {
  5. uint256 private immutable _entryFeeBasisPointValue;
  6. address private immutable _entryFeeRecipientValue;
  7. uint256 private immutable _exitFeeBasisPointValue;
  8. address private immutable _exitFeeRecipientValue;
  9. constructor(
  10. uint256 entryFeeBasisPoints,
  11. address entryFeeRecipient,
  12. uint256 exitFeeBasisPoints,
  13. address exitFeeRecipient
  14. ) {
  15. _entryFeeBasisPointValue = entryFeeBasisPoints;
  16. _entryFeeRecipientValue = entryFeeRecipient;
  17. _exitFeeBasisPointValue = exitFeeBasisPoints;
  18. _exitFeeRecipientValue = exitFeeRecipient;
  19. }
  20. function _entryFeeBasisPoints() internal view virtual override returns (uint256) {
  21. return _entryFeeBasisPointValue;
  22. }
  23. function _entryFeeRecipient() internal view virtual override returns (address) {
  24. return _entryFeeRecipientValue;
  25. }
  26. function _exitFeeBasisPoints() internal view virtual override returns (uint256) {
  27. return _exitFeeBasisPointValue;
  28. }
  29. function _exitFeeRecipient() internal view virtual override returns (address) {
  30. return _exitFeeRecipientValue;
  31. }
  32. }