Skip to content
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

Tokenomics implementation #54

Merged
merged 43 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7afddc5
working on the implementation of L
jepidoptera Mar 25, 2022
a96b34c
working on the implementation of L and T
jepidoptera Mar 29, 2022
dd79df0
Merge branch 'main' into tokenomics_implementation
jepidoptera Mar 29, 2022
8d5a9ba
made charts a little wider
jepidoptera Mar 29, 2022
6152ce2
implemented the 'direct swap' method
jepidoptera Mar 29, 2022
393ab76
block hypothesis files
jepidoptera Mar 29, 2022
a9290d8
typos
jepidoptera Mar 29, 2022
05d1311
added/removed some tests
jepidoptera Mar 31, 2022
a409eba
fixed length of P[] list
jepidoptera Apr 5, 2022
0300d76
fixed length of P[] list
jepidoptera Apr 5, 2022
46190d1
use correct token names
jepidoptera Apr 5, 2022
aab9295
re-wrote lrna swaps to comply with the new spec
jepidoptera Apr 6, 2022
76ea12d
Add 'L' to state dict
jepidoptera Apr 6, 2022
e76f01d
commented out posthub()
jepidoptera Apr 6, 2022
f628ca3
use state_dict for everything
jepidoptera Apr 6, 2022
34ca7e2
actually verify that TVL cap is not exceeded and reject transaction i…
jepidoptera Apr 7, 2022
d7ce764
actually verify that TVL cap is not exceeded and reject transaction i…
jepidoptera Apr 7, 2022
de11fba
one more algebraic check
jepidoptera Apr 7, 2022
45b1bf0
fixed outdated reference to swap_lrna_fee
jepidoptera Apr 7, 2022
0e73f1a
addressed errors pointed out by Colin and added tvl checks
jepidoptera Apr 7, 2022
3982caf
downgrade type annotations for compatibility with python 9
jepidoptera Apr 7, 2022
fc13fc4
include stablecoin_index in state_dict
jepidoptera Apr 7, 2022
65edfec
assure all lists are the same length
jepidoptera Apr 7, 2022
0f9452d
delete irrelevant comment
jepidoptera Apr 7, 2022
eb3a71c
refactor tests and add checks again TVL caps
jepidoptera Apr 7, 2022
0189b91
make sure to test the invariant on lnra swap when there is no fee
jepidoptera Apr 7, 2022
473c206
Fixing sign of delta q^\alpha to match convention used throughout specs
poliwop Apr 7, 2022
b258ac9
update swap_lrna to reflect the corrected sign in the spec
jepidoptera Apr 7, 2022
07787f6
update test_swap_lrna to consistently specify deltas from the perspec…
jepidoptera Apr 7, 2022
f6d6ae9
comment out print statements
jepidoptera Apr 7, 2022
81b0ea9
Fixing weight cap check to include delta Q_i in denominator
poliwop Apr 12, 2022
4dee2ad
debug
jepidoptera Apr 12, 2022
0b2cb18
Merge remote-tracking branch 'origin/tokenomics_implementation' into …
jepidoptera Apr 12, 2022
afb4ddd
found another sneaky reference to 'D'
jepidoptera Apr 12, 2022
a863151
Prevent LRNA swaps when there is not enough in the asset pool
jepidoptera Apr 12, 2022
1afce19
change 'raise' to 'assert'
jepidoptera Apr 12, 2022
94d5026
renamed some variables
jepidoptera Apr 12, 2022
accdccb
update yet more lingering references to hdx
jepidoptera Apr 12, 2022
0b60435
update yet more lingering references to hdx
jepidoptera Apr 12, 2022
00d1d4a
Merge branch 'main' into tokenomics_implementation
jepidoptera Apr 14, 2022
b2cb0a3
added checks to ensure agent's asset or lrna balances don't go below 0
jepidoptera Apr 14, 2022
b60cc3a
Merge remote-tracking branch 'origin/tokenomics_implementation' into …
jepidoptera Apr 14, 2022
d543686
Addressed changed Colin requested
jepidoptera Apr 14, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
*-checkpoint.ipynb
/venv/
/.idea/
/hydradx/tests/.hypothesis/
Loading