Improve ERC4626 fees example (#4476)
Co-authored-by: Francisco <fg@frang.io> Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -5,33 +5,33 @@ pragma solidity ^0.8.19;
|
||||
import {ERC4626Fees} from "../docs/ERC4626Fees.sol";
|
||||
|
||||
abstract contract ERC4626FeesMock is ERC4626Fees {
|
||||
uint256 private immutable _entryFeeBasePointValue;
|
||||
uint256 private immutable _entryFeeBasisPointValue;
|
||||
address private immutable _entryFeeRecipientValue;
|
||||
uint256 private immutable _exitFeeBasePointValue;
|
||||
uint256 private immutable _exitFeeBasisPointValue;
|
||||
address private immutable _exitFeeRecipientValue;
|
||||
|
||||
constructor(
|
||||
uint256 entryFeeBasePoint,
|
||||
uint256 entryFeeBasisPoints,
|
||||
address entryFeeRecipient,
|
||||
uint256 exitFeeBasePoint,
|
||||
uint256 exitFeeBasisPoints,
|
||||
address exitFeeRecipient
|
||||
) {
|
||||
_entryFeeBasePointValue = entryFeeBasePoint;
|
||||
_entryFeeBasisPointValue = entryFeeBasisPoints;
|
||||
_entryFeeRecipientValue = entryFeeRecipient;
|
||||
_exitFeeBasePointValue = exitFeeBasePoint;
|
||||
_exitFeeBasisPointValue = exitFeeBasisPoints;
|
||||
_exitFeeRecipientValue = exitFeeRecipient;
|
||||
}
|
||||
|
||||
function _entryFeeBasePoint() internal view virtual override returns (uint256) {
|
||||
return _entryFeeBasePointValue;
|
||||
function _entryFeeBasisPoints() internal view virtual override returns (uint256) {
|
||||
return _entryFeeBasisPointValue;
|
||||
}
|
||||
|
||||
function _entryFeeRecipient() internal view virtual override returns (address) {
|
||||
return _entryFeeRecipientValue;
|
||||
}
|
||||
|
||||
function _exitFeeBasePoint() internal view virtual override returns (uint256) {
|
||||
return _exitFeeBasePointValue;
|
||||
function _exitFeeBasisPoints() internal view virtual override returns (uint256) {
|
||||
return _exitFeeBasisPointValue;
|
||||
}
|
||||
|
||||
function _exitFeeRecipient() internal view virtual override returns (address) {
|
||||
|
||||
Reference in New Issue
Block a user