-
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
Balancer review changes #1726
Merged
sparrowDom
merged 45 commits into
sparrowDom/balancer-sfrxETH-stETH-rETH
from
nicka/balancer-review-changes
Jul 31, 2023
Merged
Balancer review changes #1726
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
05cc1bc
Generated contract docs
naddison36 0df54bf
Refactor Balancer storage variables
naddison36 8a1e6df
Small Balancer changes
naddison36 451b3cc
Natspec updates
naddison36 debb826
Updated generated Balancer strategy contract diagrams
naddison36 1cd2763
fix contract linter
naddison36 066a331
Removed restrictions on tests
naddison36 6644176
Small gas improvements
naddison36 51e2a1a
Change BalancerError version
shahthepro 718ad10
Updated constant names
naddison36 faf0611
Merge branch 'nicka/balancer-sfrxETH-stETH-rETH' of github.com:Origin…
naddison36 c692575
JS lint tasks
naddison36 daeb5be
Updated Balancer and Aura pool id constants
naddison36 4b5ea06
Removed getRateProviderRate as it wasn't being used
naddison36 ee0d8aa
Updated OETH Contracts diagrams
naddison36 534f091
Fix failing test
shahthepro ad5a137
Fix merge conflict
shahthepro 8f205a5
Merge remote-tracking branch 'origin/nicka/balancer-sfrxETH-stETH-rET…
naddison36 aba5c27
Restored getRateProviderRate
naddison36 bd4eae8
Natspec updates
naddison36 67ea12f
Removed unused getRateProviderRate
naddison36 26b5fd2
Natspec updates
naddison36 732d60b
Abstract strategy gas improvements (#1719)
naddison36 2fd0260
Deploy rETH instead of the stETH Balancer MetaStable Pool
naddison36 d593738
removed unused Aura config
naddison36 eff92a0
Balancer fork tests
naddison36 7194e44
Added check that BPT amount equals Aura LP amount
naddison36 cb4d46e
Updated balancer strat fork tests
naddison36 9270c3b
Updated Balancer fork tests
naddison36 acd7cb8
Added optional deposit with multiple assets to the strategy
naddison36 809d4b1
Single asset deposit to use multi asset deposit
naddison36 2563d67
Added optional checkBalance to Balancer strategy
naddison36 7f808d0
Added checkBalance() to BaseBalancerStrategy
naddison36 d3ef14a
Fix slither
naddison36 344cfe1
Added multi-asset withdraw to balancer strategy
naddison36 0c37ba9
Fix multi-asset withdraw
naddison36 7ee53e5
Updated Balancer and Vault diagrams
naddison36 c4b712e
Fix js linter
naddison36 fb68e6c
Fixed checkBalance of rETH asset in Balancer strategy
naddison36 49dee14
Only wrap assets if amount > 0
naddison36 9f274d3
Removed Vault changes for multi-asset strategy support
naddison36 d60fe7e
Updated generated docs
naddison36 cd71860
Add tests for wstETH/WETH Balancer pool (#1725)
shahthepro 0f7ab81
prettier
naddison36 ece1a85
remove .only in fork tests
naddison36 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IRETH { | ||
function getEthValue(uint256 _rethAmount) external view returns (uint256); | ||
|
||
function getRethValue(uint256 _ethAmount) external view returns (uint256); | ||
|
||
function totalSupply() external view returns (uint256); | ||
|
||
function balanceOf(address account) external view returns (uint256); | ||
|
||
function transfer(address recipient, uint256 amount) | ||
external | ||
returns (bool); | ||
|
||
function allowance(address owner, address spender) | ||
external | ||
view | ||
returns (uint256); | ||
|
||
function approve(address spender, uint256 amount) external returns (bool); | ||
|
||
function transferFrom( | ||
address sender, | ||
address recipient, | ||
uint256 amount | ||
) external returns (bool); | ||
|
||
function name() external view returns (string memory); | ||
|
||
function symbol() external view returns (string memory); | ||
|
||
function decimals() external view returns (uint8); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
interface IWstETH { | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can delete this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it can be deleted. I was using it in a Hardhat test as I needed to access an asset's decimals but that is no longer being used.