You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we are already applying all the changes in the depositMint and RepayWithdraw functions before we trigger the test impact, we do not need to calculate the adjusted netMint since the netMint is already updated for the movements. Therefore if we do it again here we are double counting the movements.
i.e. if the NetMint is increased by 10 the Mint function will increase it by ten and then when we do the test we will be increasing that netMint once again by 10, causing the test to use 20 rather than 10.
The text was updated successfully, but these errors were encountered:
https://github.com/CanzaApps/Baki-contracts/blob/a30a237c6468ffd4b45eca6f125c6f487b305cce/contracts/Vault.sol#L607-L627
Since we are already applying all the changes in the depositMint and RepayWithdraw functions before we trigger the test impact, we do not need to calculate the adjusted netMint since the netMint is already updated for the movements. Therefore if we do it again here we are double counting the movements.
i.e. if the NetMint is increased by 10 the Mint function will increase it by ten and then when we do the test we will be increasing that netMint once again by 10, causing the test to use 20 rather than 10.
The text was updated successfully, but these errors were encountered: