@@ -10,8 +10,8 @@ import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
10
10
/**
11
11
* @dev ERC-4626 vault with entry/exit fees expressed in https://en.wikipedia.org/wiki/Basis_point[basis point (bp)].
12
12
*
13
- * The `_feeOnRaw` and `_feeOnTotal` function are left unimplemented. See {ERC4626FeesOnTaxed } and
14
- * {ERC4626FeesOnUntaxed } for possible implementations
13
+ * The `_feeOnRaw` and `_feeOnTotal` function are left unimplemented. See {ERC4626FeesExclusive } and
14
+ * {ERC4626FeesInclusive } for possible implementations
15
15
*/
16
16
abstract contract ERC4626Fees is ERC4626 {
17
17
uint256 internal constant _BASIS_POINT_SCALE = 1e4 ;
@@ -103,10 +103,10 @@ abstract contract ERC4626Fees is ERC4626 {
103
103
*@dev Variant of {ERC4626Fees} where the fee is expressed as a fraction of the total amount paid.
104
104
*
105
105
* In this version if the fee is set to 20%, and a user deposits 100 assets, then 80 assets go toward the price of the
106
- * shares, and 20 assets go toward the payment of fees. In this case, fees correspond to 20% ot the total paid price
106
+ * shares, and 20 assets go toward the payment of fees. In this case, fees correspond to 20% of the total paid price
107
107
* and 25% of the value of the shares bought.
108
108
*/
109
- abstract contract ERC4626FeesOnTotal is ERC4626Fees {
109
+ abstract contract ERC4626FeesExclusive is ERC4626Fees {
110
110
using Math for uint256 ;
111
111
112
112
/// @dev Calculates the fees that should be added to an amount `assets` that does not already include fees.
@@ -126,10 +126,10 @@ abstract contract ERC4626FeesOnTotal is ERC4626Fees {
126
126
* @dev Variant of {ERC4626Fees} where the fee is expressed as a fraction of the value of value being converted.
127
127
*
128
128
* In this version if the fee is set to 20%, and a user deposits 100 assets, then 83.33 assets go toward the price of
129
- * the shares, and 16.66 assets go toward the payment of fees. In this case, fees correspond to 16.66% ot the total
129
+ * the shares, and 16.66 assets go toward the payment of fees. In this case, fees correspond to 16.66% of the total
130
130
* paid price and 20% of the value of the shares bought.
131
131
*/
132
- abstract contract ERC4626FeesOnValue is ERC4626Fees {
132
+ abstract contract ERC4626FeesInclusive is ERC4626Fees {
133
133
using Math for uint256 ;
134
134
135
135
/// @dev Calculates the fees that should be added to an amount `assets` that does not already include fees.
0 commit comments