Rename rounding modes and complete with fourth (#4455)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Francisco
2023-07-13 17:52:03 -03:00
committed by GitHub
parent a55af77c75
commit 84db204a41
10 changed files with 210 additions and 173 deletions

View File

@ -965,8 +965,8 @@ contract('ERC4626', function (accounts) {
}
// 5. Bob mints 2000 shares (costs 3001 assets)
// NOTE: Bob's assets spent got rounded up
// NOTE: Alices's vault assets got rounded up
// NOTE: Bob's assets spent got rounded towards infinity
// NOTE: Alices's vault assets got rounded towards infinity
{
const { tx } = await this.vault.mint(2000, user2, { from: user2 });
await expectEvent.inTransaction(tx, this.token, 'Transfer', {
@ -1056,7 +1056,7 @@ contract('ERC4626', function (accounts) {
}
// 9. Alice withdraws 3643 assets (2000 shares)
// NOTE: Bob's assets have been rounded back up
// NOTE: Bob's assets have been rounded back towards infinity
{
const { tx } = await this.vault.withdraw(3643, user1, user1, { from: user1 });
await expectEvent.inTransaction(tx, this.vault, 'Transfer', {