Skip to content
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 Sep 13, 2021
a0ee346
test: RAI pool, add pool specific tests focused on moving redemption …
stobiewan Sep 13, 2021
314dde1
docs: RAI pool, add temporary doc detailing changes made for RAI pool
stobiewan Sep 13, 2021
a6a29eb
Merge pull request #3 from stobiewan/pool_rai
stefanionescu Sep 15, 2021
f6cf407
Remove RAI readme
stefanionescu Sep 15, 2021
6c5d52e
locking pragma for RAI pool
fabiohild Oct 18, 2021
3104128
Merge pull request #4 from reflexer-labs/audit
stefanionescu Oct 18, 2021
f793ac7
changing state vars to uint256
fabiohild Nov 3, 2021
291b16f
Uniting _rates instead of single vars for each rate
fabiohild Nov 3, 2021
016c7a6
removing unreachable code on get_dy_underlying
fabiohild Nov 3, 2021
6657b28
Improving invariant_check_virtual_price test on RAI integration tests
fabiohild Nov 3, 2021
60824a3
Curve review points
fabiohild Nov 4, 2021
f6492b4
updating virtual_price_2 formula
fabiohild Nov 5, 2021
0046953
include sqrt in the contract, remove donate_admin_fees
fabiohild Nov 5, 2021
73397ec
fixing scaling issue on get_virtual_price_2
fabiohild Nov 17, 2021
d52df33
Merge pull request #5 from reflexer-labs/curve-review
stefanionescu Nov 21, 2021
d3654b7
Code: Raiust pool, Two Coin Pool with peggie & non-peggie
twpony Dec 23, 2021
d8799bf
Test: Raiust pool, add specific test for moving redemption price
twpony Dec 23, 2021
43f0ae7
Test: Raiust pool, add specific test for moving redemption price
twpony Dec 23, 2021
19365c5
Doc: Raiust pool, readme to describe implementation
twpony Dec 23, 2021
9d44747
Merge pull request #7 from fs1028/master
fabiohild Dec 28, 2021
f1954a8
renaming RATES, adding virtual_price_2
fabiohild Dec 28, 2021
763fa6f
removing temp README
fabiohild Dec 28, 2021
087915e
Merge pull request #8 from reflexer-labs/gitcoin-submission-review
fabiohild Dec 28, 2021
b60d49c
Rename StableSwapRaiust.vy to StableSwapRaiUst.vy
stefanionescu Jan 1, 2022
c612bcf
Update README.md
stefanionescu Jan 1, 2022
2297ab0
Update README.md
stefanionescu Jan 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions contracts/pools/rai/StableSwapRAI.vy
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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
Expand Down