Skip to content

Commit 1be9def

Browse files
committed
Merge branch 'refactor/erc4626fees' of github.com:OpenZeppelin/openzeppelin-contracts-experimental into refactor/erc4626fees
2 parents 30bd7e1 + 0f0dfad commit 1be9def

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contracts/token/ERC4626Fees.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
1010
/**
1111
* @dev ERC-4626 vault with entry/exit fees expressed in https://en.wikipedia.org/wiki/Basis_point[basis point (bp)].
1212
*
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
1515
*/
1616
abstract contract ERC4626Fees is ERC4626 {
1717
uint256 internal constant _BASIS_POINT_SCALE = 1e4;
@@ -103,10 +103,10 @@ abstract contract ERC4626Fees is ERC4626 {
103103
*@dev Variant of {ERC4626Fees} where the fee is expressed as a fraction of the total amount paid.
104104
*
105105
* 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
107107
* and 25% of the value of the shares bought.
108108
*/
109-
abstract contract ERC4626FeesOnTotal is ERC4626Fees {
109+
abstract contract ERC4626FeesExclusive is ERC4626Fees {
110110
using Math for uint256;
111111

112112
/// @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 {
126126
* @dev Variant of {ERC4626Fees} where the fee is expressed as a fraction of the value of value being converted.
127127
*
128128
* 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
130130
* paid price and 20% of the value of the shares bought.
131131
*/
132-
abstract contract ERC4626FeesOnValue is ERC4626Fees {
132+
abstract contract ERC4626FeesInclusive is ERC4626Fees {
133133
using Math for uint256;
134134

135135
/// @dev Calculates the fees that should be added to an amount `assets` that does not already include fees.

0 commit comments

Comments
 (0)