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

Mint/burn first handle Resubscribe and then finish Hub update #189

Merged
merged 54 commits into from
Jul 12, 2022

Conversation

zgorizzo69
Copy link
Collaborator

following tests to check the above change:
-> Mint: when resubscribing and updating- Poke or finish resubscribe should be called first and then finishUpdate.
-> Burn: when resubscribing and updating- Poke or finish resubscribe should be called first and then finishUpdate.
-> Burn: when resubscribing and updating- calculateActualAssetsReturned should calculate actualAssetsReturned with resubscribing formula.

parv3213 and others added 26 commits June 23, 2022 19:30
- Issue: 6. [LibFoundry.sol] An unassigned variable exists
- remove `cooldown` in LibHub.sol
- commented `transferFee`, `interestFee` and `yieldFee`. and all related functions
- Issue: 6. [LibFoundry.sol] An unassigned variable exists
- remove `cooldown` in LibHub.sol
- commented `transferFee`, `interestFee` and `yieldFee`. and all related functions
contracts/DiamondInit.sol Outdated Show resolved Hide resolved
- related to transferFee, interestFee, yieldFee
Copy link
Member

@pegahcarter pegahcarter left a comment

Choose a reason for hiding this comment

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

Looks good. Found some additional outdated code to cleanup.

@pegahcarter pegahcarter merged commit abf432c into main Jul 12, 2022
@pegahcarter
Copy link
Member

Chainlink tests done to ensure migration swap happens with less than 5% slippage. The following tests pass within that slippage range:

  • DAI -> WETH passes with 1M DAI
  • DAI -> USDC passes with 1M DAI
  • USDC -> DAI passes with 1M USDC
  • WBTC -> WETH passes with 1000 WBTC
  • WETH -> WBTC passes with 1000 WETH
  • WBTC -> USDC passes with 100 WBTC
  • USDC -> WBTC passes with 1M USDC

@pegahcarter pegahcarter deleted the resubscribe-before-update branch December 2, 2022 18:45
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