Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(MeTokenRegistry): multiple differences #111

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

parv3213
Copy link
Member

@parv3213 parv3213 commented Feb 8, 2022

Differences:

  1. Curve details: encodedBancorDetails - encodedStepwiseDetails
  2. Curves: bancorABDK - stepwiseCurveABDK
  3. Refund ratio: initialRefundRatio - targetRefundRatio

 Differences:
 1. Curve details: encodedBancorDetails - encodedStepwiseDetails
 2. Curves: bancorABDK - stepwiseCurveABDK
 3. Refund ratio: initialRefundRatio - targetRefundRatio
@parv3213 parv3213 requested a review from pegahcarter February 8, 2022 19:05
new Decimal(assetsReturned).sub(new Decimal(burnFee)).toNumber(),
1e-15
);
expect(ownerMeTokenAfter).to.equal(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the end of the warmup metoken supply is zero which is probably never gonna happen
I think It would be interesting to have still metoken and dai in the vault before the migration and check that
it is converted to weth after the migration

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few similar tests are already covered in other test files, like here- https://github.com/meTokens/meTokens-core/blob/test/resub-multi-change/test/contracts/migrations/UniswapSingleTransfer.ts#L336. Do we need to add it here as well?

@pegahcarter pegahcarter merged commit aa59b85 into main Feb 9, 2022
@pegahcarter pegahcarter deleted the test/resub-multi-change branch February 10, 2022 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants