-
Notifications
You must be signed in to change notification settings - Fork 392
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
Add wZEC pool; brownie-token-tester integration #111
Open
samwerner
wants to merge
13
commits into
curvefi:master
Choose a base branch
from
samwerner:pool_wzec
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3aa302f
feat: add impl for wZEC/renZEC pool
samwerner 1e778fa
fix: update admin fee
samwerner f3a08ea
fix: checksum address in pooldata.json
samwerner f229f78
tests: add mint for testing for w/renZEC
samwerner 906a1cc
fix: Resolve conflicts in tests
samwerner 086d7bf
build: add brownie-token-tester
samwerner 27cf0cd
docs: update README
samwerner d4cf1e9
build: add workflow
samwerner 0338613
style: fix indentation
samwerner c1ee0d1
style: Correct linting
samwerner 0cb8789
chore: Bump isort and flake
samwerner 5d5cb90
refactor: Use updated base pool template
samwerner 9751494
Merge branch 'master' into pool_wzec
samwerner 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: wzec | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'tests/**/*.py' | ||
- 'contracts/pools/wzec/**.vy' | ||
push: | ||
paths: | ||
- 'tests/**/*.py' | ||
- 'contracts/pools/wzec/**.vy' | ||
|
||
|
||
env: | ||
pool: 'wzec' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
||
|
||
jobs: | ||
|
||
unitary-pool: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Compiler Installations | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.solcx | ||
~/.vvm | ||
key: compiler-cache | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Install Ganache | ||
run: npm install | ||
|
||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Requirements | ||
run: | | ||
pip install wheel | ||
pip install -r requirements.txt | ||
|
||
- name: Run Tests | ||
run: brownie test tests/pools/common/unitary --pool ${{ env.pool }} | ||
|
||
integration: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Compiler Installations | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.solcx | ||
~/.vvm | ||
key: compiler-cache | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Install Ganache | ||
run: npm install | ||
|
||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Requirements | ||
run: | | ||
pip install wheel | ||
pip install -r requirements.txt | ||
|
||
- name: Run Tests | ||
run: pytest tests/pools/common/integration --pool ${{ env.pool }} | ||
|
||
unitary-zap: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Compiler Installations | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.solcx | ||
~/.vvm | ||
key: compiler-cache | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Install Ganache | ||
run: npm install | ||
|
||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Requirements | ||
run: | | ||
pip install wheel | ||
pip install -r requirements.txt | ||
|
||
- name: Run Tests | ||
run: brownie test tests/zaps/common --pool ${{ env.pool }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# curve-contract/contracts/pools/wzec | ||
|
||
[Curve wZEC pool](). This is a no-lending pool. | ||
|
||
## Contracts | ||
|
||
- [`StableSwapWZEC`](StableSwapWZEC.vy): Curve stablecoin AMM contract | ||
|
||
## Deployments | ||
|
||
- [`CurveContractV1`](../../tokens/CurveTokenV1.vy): | ||
- [`LiquidityGauge`](../../gauges/LiquidityGauge.vy): | ||
- [`StableSwapWZEC`](StableSwapWZEC.vy): | ||
|
||
## Stablecoins | ||
|
||
Curve wZEC pool supports swaps between the following wrapped ZEC coins: | ||
|
||
- `wZEC`: [0x4A64515E5E1d1073e83f30cB97BEd20400b66E10](https://etherscan.io/address/0x4A64515E5E1d1073e83f30cB97BEd20400b66E10) | ||
- `renZEC`: [0x1c5db575e2ff833e46a2e9864c22f4b22e0b37c2](https://etherscan.io/address/0x1c5db575e2ff833e46a2e9864c22f4b22e0b37c2) | ||
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.
thank you