-
Notifications
You must be signed in to change notification settings - Fork 112
Supernova AMO #2800
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
Merged
Merged
Supernova AMO #2800
Changes from 19 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
338da0f
initial commit
sparrowDom fcf4a61
add some deployment files
sparrowDom 70d2412
commit for easier diffs
sparrowDom 3c5655e
rename the variable in stableswap
sparrowDom 8e40837
fix the fork tests and adjust them to refactoring
sparrowDom 4a9d40a
fix fork tests
sparrowDom 681dfda
add strategy file
sparrowDom f7ffaec
start re-working tests
sparrowDom adc2645
migrate some more tests
sparrowDom 154e81c
more work on fork tests
sparrowDom f64f5e0
fix the fork tests
sparrowDom 5206926
prepare supernova fixture
sparrowDom 6cda7e3
separate pool tilt config into a separate file
sparrowDom d167231
fix 6 more fork tests
sparrowDom 8566cf9
remove only
sparrowDom 6ceb0c1
fix some more fork tests
sparrowDom feddfd7
fix the swap contract code issue and ~10 fork test as a side effect
sparrowDom 4affe87
test cleanup
sparrowDom ff4edb8
moving additional values to configuration field
sparrowDom 0ad876c
fix 3 more tests
sparrowDom 1800d1d
fix fork test and prettier
sparrowDom 0948678
Merge remote-tracking branch 'origin/master' into sparrowDom/supernov…
sparrowDom d571d52
WETH no longer requres whitelisting
sparrowDom f8ab0ab
typo
sparrowDom 03e81d9
fix up the harvester test
sparrowDom 5c96c30
Fix spelling in Sonic fixture
naddison36 53510c1
Update Natspec of OETHSupernovaAMOProxy
naddison36 faec0cf
Update comment in deployActions.js
naddison36 57e2148
Update comment in Sonic fixture
naddison36 15bc2af
Fix comment in Sonic fixture
naddison36 eb15b5b
Supernova AMO additions (#2811)
naddison36 540e480
add live pool and gauge
sparrowDom eff6da2
fix fork tests
sparrowDom e07d995
prettier
sparrowDom d24c358
Merge remote-tracking branch 'origin/master' into sparrowDom/supernov…
sparrowDom b28575d
fix log
sparrowDom 4a7750c
Bumped deploy number
naddison36 1625dc6
correct comment
sparrowDom 6bde7d3
combine vault upgrade and supernova deploy into a single governance p…
sparrowDom 5d1a14f
fix typo
sparrowDom 4e49bd8
prettier
sparrowDom 00a4130
fix some comments
sparrowDom cbf4344
send tokens after amount out calculation
sparrowDom f1fb146
add a nicer error message when pool is completely tilted into 1 direc…
sparrowDom b846277
add range protection for maxDepeg
sparrowDom ef23e98
Merge remote-tracking branch 'origin/master' into sparrowDom/supernov…
sparrowDom cac09bd
simplify code
sparrowDom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
25 changes: 25 additions & 0 deletions
25
contracts/contracts/strategies/algebra/OETHSupernovaAMOStrategy.sol
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // SPDX-License-Identifier: BUSL-1.1 | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| /** | ||
| * @title Supernova OETH Algorithmic Market Maker (AMO) Strategy | ||
| * @notice AMO strategy for the Supernova OETH/WETH stable pool | ||
| * @author Origin Protocol Inc | ||
| */ | ||
| import { StableSwapAMMStrategy } from "./StableSwapAMMStrategy.sol"; | ||
|
|
||
| contract OETHSupernovaAMOStrategy is StableSwapAMMStrategy { | ||
| /** | ||
| * @param _baseConfig The `platformAddress` is the address of the Supernova OETH/WETH pool. | ||
| * The `vaultAddress` is the address of the OETH Vault. | ||
| * @param _oeth Address of the OETH token. | ||
| * @param _weth Address of the WETH token. | ||
| * @param _gauge Address of the Supernova gauge for the pool. | ||
| */ | ||
| constructor( | ||
| BaseStrategyConfig memory _baseConfig, | ||
| address _oeth, | ||
| address _weth, | ||
| address _gauge | ||
| ) StableSwapAMMStrategy(_baseConfig, _oeth, _weth, _gauge) {} | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.