This was failing because the maxSupply was a hardcoded 18 decimal number.
Previously, we were paying 400k 10^6 when 50m 10^18 was due (effectively paying ~.0000000000000000001%) which caused redeem to round down to zero when calculating the redeem amount.
Note: You make want to improve this test, I only focused on fixing the error
This fixes the failing test.
This was failing because the maxSupply was a hardcoded 18 decimal number.
Previously, we were paying 400k 10^6 when 50m 10^18 was due (effectively paying ~.0000000000000000001%) which caused redeem to round down to zero when calculating the redeem amount.
Note: You make want to improve this test, I only focused on fixing the error
Please merge if you like this :)