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:
committed by
Francisco Giordano
parent
0ed435b7b1
commit
1014ac2924
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user