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

Adds a sweep function #363

Merged
merged 5 commits into from
Jun 16, 2023
Merged

Adds a sweep function #363

merged 5 commits into from
Jun 16, 2023

Conversation

aleph-v
Copy link
Contributor

@aleph-v aleph-v commented Jun 16, 2023

The morpho token distribution system will let anyone call to distribute rewards but the tokens will get stuck in the hyperdrive contract unless they are swept. We add a function which lets any stuck tokens be distributed to the _feeCollector address.

@aleph-v aleph-v changed the title Adds a Adds a sweep function Jun 16, 2023
@github-actions
Copy link

github-actions bot commented Jun 16, 2023

Hyperdrive Gas Benchmark

Benchmark suite Current: 09f1220 Previous: ba856d5 Deviation Status
addLiquidity: min 687 gas 687 gas 0% 🟰
addLiquidity: avg 48171 gas 48486 gas -0.6497%
addLiquidity: max 83536 gas 83536 gas 0% 🟰
checkpoint: min 514 gas 514 gas 0% 🟰
checkpoint: avg 23022 gas 23022 gas 0% 🟰
checkpoint: max 33418 gas 33418 gas 0% 🟰
closeLong: min 659 gas 659 gas 0% 🟰
closeLong: avg 46806 gas 46420 gas 0.8315% 🚨
closeLong: max 81328 gas 81328 gas 0% 🟰
closeShort: min 616 gas 616 gas 0% 🟰
closeShort: avg 40969 gas 40811 gas 0.3872% 🚨
closeShort: max 81627 gas 81627 gas 0% 🟰
initialize: min 687 gas 687 gas 0% 🟰
initialize: avg 139483 gas 139483 gas 0% 🟰
initialize: max 140690 gas 140690 gas 0% 🟰
openLong: min 661 gas 661 gas 0% 🟰
openLong: avg 102261 gas 100408 gas 1.8455% 🚨
openLong: max 148646 gas 148646 gas 0% 🟰
openShort: min 687 gas 687 gas 0% 🟰
openShort: avg 141755 gas 144881 gas -2.1576%
openShort: max 207735 gas 207735 gas 0% 🟰
removeLiquidity: min 547 gas 547 gas 0% 🟰
removeLiquidity: avg 60418 gas 60195 gas 0.3705% 🚨
removeLiquidity: max 116344 gas 116344 gas 0% 🟰

This comment was automatically generated by workflow using github-action-benchmark.

@coveralls
Copy link
Collaborator

coveralls commented Jun 16, 2023

Coverage Status

coverage: 94.348% (+0.09%) from 94.262% when pulling 09f1220 on violet/feature/4626Sweep into ba856d5 on main.

@aleph-v aleph-v merged commit 2105408 into main Jun 16, 2023
@aleph-v aleph-v deleted the violet/feature/4626Sweep branch June 16, 2023 16:03
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.

4 participants