-
Notifications
You must be signed in to change notification settings - Fork 413
Add a Custom Curve Pool Implementation Handling RAI #144
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
Open
stefanionescu
wants to merge
27
commits into
curvefi:master
Choose a base branch
from
reflexer-labs:master
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 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
218168b
feat: RAI pool, new meta pool customised to handle redemption rate
stobiewan a0ee346
test: RAI pool, add pool specific tests focused on moving redemption …
stobiewan 314dde1
docs: RAI pool, add temporary doc detailing changes made for RAI pool
stobiewan a6a29eb
Merge pull request #3 from stobiewan/pool_rai
stefanionescu f6cf407
Remove RAI readme
stefanionescu 6c5d52e
locking pragma for RAI pool
fabiohild 3104128
Merge pull request #4 from reflexer-labs/audit
stefanionescu f793ac7
changing state vars to uint256
fabiohild 291b16f
Uniting _rates instead of single vars for each rate
fabiohild 016c7a6
removing unreachable code on get_dy_underlying
fabiohild 6657b28
Improving invariant_check_virtual_price test on RAI integration tests
fabiohild 60824a3
Curve review points
fabiohild f6492b4
updating virtual_price_2 formula
fabiohild 0046953
include sqrt in the contract, remove donate_admin_fees
fabiohild 73397ec
fixing scaling issue on get_virtual_price_2
fabiohild d52df33
Merge pull request #5 from reflexer-labs/curve-review
stefanionescu d3654b7
Code: Raiust pool, Two Coin Pool with peggie & non-peggie
twpony d8799bf
Test: Raiust pool, add specific test for moving redemption price
twpony 43f0ae7
Test: Raiust pool, add specific test for moving redemption price
twpony 19365c5
Doc: Raiust pool, readme to describe implementation
twpony 9d44747
Merge pull request #7 from fs1028/master
fabiohild f1954a8
renaming RATES, adding virtual_price_2
fabiohild 763fa6f
removing temp README
fabiohild 087915e
Merge pull request #8 from reflexer-labs/gitcoin-submission-review
fabiohild b60d49c
Rename StableSwapRaiust.vy to StableSwapRaiUst.vy
stefanionescu c612bcf
Update README.md
stefanionescu 2297ab0
Update README.md
stefanionescu 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 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 |
|---|---|---|
|
|
@@ -98,14 +98,14 @@ event StopRampA: | |
| t: uint256 | ||
|
|
||
|
|
||
| N_COINS: constant(int128) = 2 | ||
| MAX_COIN: constant(int128) = N_COINS - 1 | ||
| REDEMPTION_COIN: constant(int128) = 0 # Index of asset with moving target redemption price | ||
| REDMPTION_PRICE_SCALE: constant(int128) = 10 ** 9 | ||
| N_COINS: constant(uint256) = 2 | ||
| MAX_COIN: constant(uint256) = N_COINS - 1 | ||
| REDEMPTION_COIN: constant(uint256) = 0 # Index of asset with moving target redemption price | ||
| REDMPTION_PRICE_SCALE: constant(uint256) = 10 ** 9 | ||
|
|
||
| FEE_DENOMINATOR: constant(uint256) = 10 ** 10 | ||
| PRECISION: constant(uint256) = 10 ** 18 # The precision to convert to | ||
| BASE_N_COINS: constant(int128) = 3 | ||
| BASE_N_COINS: constant(uint256) = 3 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good |
||
|
|
||
| # An asset which may have a transfer fee (USDT) | ||
| FEE_ASSET: constant(address) = 0xdAC17F958D2ee523a2206206994597C13D831ec7 | ||
|
|
||
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.
Good