Improve ERC4626 fees example (#4476)

Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
(cherry picked from commit f631d8a5f0)
This commit is contained in:
Ernesto García
2023-07-28 19:16:14 -06:00
committed by Francisco Giordano
parent 0ed435b7b1
commit 1014ac2924
3 changed files with 50 additions and 37 deletions

View File

@ -689,9 +689,9 @@ contract('ERC4626', function (accounts) {
}
describe('ERC4626Fees', function () {
const feeBasePoint = web3.utils.toBN(5e3);
const feeBasisPoints = web3.utils.toBN(5e3);
const amountWithoutFees = web3.utils.toBN(10000);
const fees = amountWithoutFees.mul(feeBasePoint).divn(1e5);
const fees = amountWithoutFees.mul(feeBasisPoints).divn(1e4);
const amountWithFees = amountWithoutFees.add(fees);
describe('input fees', function () {
@ -701,7 +701,7 @@ contract('ERC4626', function (accounts) {
name + ' Vault',
symbol + 'V',
this.token.address,
feeBasePoint,
feeBasisPoints,
other,
0,
constants.ZERO_ADDRESS,