-
Notifications
You must be signed in to change notification settings - Fork 84
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
Convex frxETH/WETH strategy #1846
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Regenerated contract diagrams
Deploy support for linking to libraries
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
September 28, 2023 11:13
Inactive
rafaelugolini
temporarily deployed
to
preview-ousd-nicka-conv-xveop4
September 28, 2023 11:13
Inactive
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
September 29, 2023 02:52
Inactive
rafaelugolini
temporarily deployed
to
preview-ousd-nicka-conv-xveop4
September 29, 2023 02:52
Inactive
naddison36
force-pushed
the
nicka/convex-frxeth-weth-minimal
branch
from
September 29, 2023 05:24
6a0a4cb
to
c646b8e
Compare
rafaelugolini
temporarily deployed
to
preview-ousd-nicka-conv-xveop4
September 29, 2023 09:15
Inactive
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
September 29, 2023 09:15
Inactive
5 tasks
naddison36
changed the title
Convex frxETH/WETH strategy using Curve abstraction libraries
WIP: Convex frxETH/WETH strategy using Curve abstraction libraries
Oct 3, 2023
…' into nicka/convex-frxeth-weth-libs
naddison36
changed the base branch from
nicka/convex-frxeth-weth-minimal
to
master
October 3, 2023 02:06
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
November 1, 2023 03:29
Inactive
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
November 3, 2023 14:52
Inactive
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
November 6, 2023 04:33
Inactive
rafaelugolini
temporarily deployed
to
preview-oeth-nicka-conv-zbl8aa
November 6, 2023 04:37
Inactive
shouldBehaveLikeHarvester context includes fixture properties
…nicka/convex-frxeth-weth-libs
5 tasks
Update Convex AMO harvest Added Balancer harvest
Updated buyback value flows
…nvex-frxeth-weth-libs
Closing as frxETH is no longer part of OETH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implementation of the Convex frxETH/WETH strategy uses Curve solidity libraries to abstract whether the Curve pool has two or three coins.
The other implementation clones
BaseCurveStrategy
toBaseTwoAssetCurveStrategy
andConvexStrategy
toConvexTwoAssetStrategy
. #1842Changes Summary
Harvester
contractscalc_token_amount
andfee
functions to the abstract Curve Metapool. Also addedremove_liquidity_imbalance
with receiver override.Withdrawal
event towithdrawAll
Withdrawal
event towithdrawAll
withdrawAll
BaseConvexStrategy
curve
subfolderdeployWithConfirmation
inutils/deploy.js
now supports linked librariesreplaceContractAt
andhardhatSetBalance
fromutils/deploy.js
toutils/hardhat.js
ConvexFrxEthWethStrategyProxy
that delegates toConvexStrategy
and is linked to theCurveTwoCoinLib
library078_convex_frax_strategy
deploy script for the new Convex strategy that uses the frxETH/WETH Curve poolDesign decisions
https://www.notion.so/originprotocol/Design-of-frxETH-WETH-Strategy-7cf0ddf4f14746a2a433b15cd7aa67a5
Contracts
The new strategy is in green
Value Flow
Tests
Unit tests
Fork tests
Deploy
The
contracts/deploy/078_convex_frax_strategy.js
script will deploy the new strategy and propose the required governance acrtions.Review
If you made a contract change, make sure to complete the checklist below before merging it in master.
Refer to our documentation for more details about contract security best practices.
Contract change checklist: