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/me token registry resubscribe rebased #73

Merged
merged 27 commits into from
Dec 14, 2021

Conversation

zgorizzo69
Copy link
Collaborator

No description provided.

zgorizzo69 and others added 24 commits December 13, 2021 15:38
- tests failing
```
Error: Transaction reverted without a reason string
      at <UnrecognizedContract>.<unknown> (0xe592427a0aece92de3edee1f18e0157c05861564)
    ```
- as no need + revert to swap when amountIn = 0
- as both condition are required otherwise `finishResubscribe` fails
@parv3213
Copy link
Member

After finishResubscribe we are NOT setting endCooldown = 0. Is this expected?
https://github.com/meTokens/meTokens-core/blob/test/meTokenRegistry-resubscribe-rebased/contracts/registries/MeTokenRegistry.sol#L206
@zgorizzo69 @carlfarterson

@parv3213
Copy link
Member

I think this branch is ready to be reviewed and merged.
Things that are left out:

  1. There are four TODOs. Two are related to balancePooled & balanceLocked checks after FinishResubscribe(). Other two are for Test/me token registry resubscribe rebased #73 (comment).
  2. Testcases for updateBalancePooled & updateBalanceLocked are not written, but still they are covered as these were called from Foundry test-cases.

@zgorizzo69
Copy link
Collaborator Author

After finishResubscribe we are NOT setting endCooldown = 0. Is this expected? https://github.com/meTokens/meTokens-core/blob/test/meTokenRegistry-resubscribe-rebased/contracts/registries/MeTokenRegistry.sol#L206 @zgorizzo69 @carlfarterson

I think it is not set to 0 because it is the cooldown so the time after the end of the migration
btw we could remove newBalance

@pegahcarter
Copy link
Member

After finishResubscribe we are NOT setting endCooldown = 0. Is this expected? https://github.com/meTokens/meTokens-core/blob/test/meTokenRegistry-resubscribe-rebased/contracts/registries/MeTokenRegistry.sol#L206 @zgorizzo69 @carlfarterson

I think it is not set to 0 because it is the cooldown so the time after the end of the migration btw we could remove newBalance

That is correct :D

@pegahcarter pegahcarter merged commit 0102f0c into main Dec 14, 2021
@pegahcarter pegahcarter deleted the test/meTokenRegistry-resubscribe-rebased branch December 21, 2021 16:56
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