Files
openzeppelin-contracts/contracts/mocks/token/ERC4646FeesMock.sol
github-actions 213c47fd27 Update docs
2023-09-21 14:28:47 +00:00

41 lines
1.3 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../docs/ERC4626Fees.sol";
abstract contract ERC4626FeesMock is ERC4626Fees {
uint256 private immutable _entryFeeBasisPointValue;
address private immutable _entryFeeRecipientValue;
uint256 private immutable _exitFeeBasisPointValue;
address private immutable _exitFeeRecipientValue;
constructor(
uint256 entryFeeBasisPoints,
address entryFeeRecipient,
uint256 exitFeeBasisPoints,
address exitFeeRecipient
) {
_entryFeeBasisPointValue = entryFeeBasisPoints;
_entryFeeRecipientValue = entryFeeRecipient;
_exitFeeBasisPointValue = exitFeeBasisPoints;
_exitFeeRecipientValue = exitFeeRecipient;
}
function _entryFeeBasisPoints() internal view virtual override returns (uint256) {
return _entryFeeBasisPointValue;
}
function _entryFeeRecipient() internal view virtual override returns (address) {
return _entryFeeRecipientValue;
}
function _exitFeeBasisPoints() internal view virtual override returns (uint256) {
return _exitFeeBasisPointValue;
}
function _exitFeeRecipient() internal view virtual override returns (address) {
return _exitFeeRecipientValue;
}
}