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

asset value normalization #28

Merged
merged 60 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4d41912
Add todos for place that needs changes
iboss-ptk Nov 7, 2023
25e7deb
expand pool_asset_denoms to pool_asset_configs for instantiate
iboss-ptk Nov 9, 2023
9438c43
add to for migraiton
iboss-ptk Nov 9, 2023
046dbeb
store asset with normalization factor
iboss-ptk Nov 9, 2023
a10d1d8
prevent 0 normalization factor + add tests
iboss-ptk Nov 14, 2023
1e20a09
handle transmute with normalization factor
iboss-ptk Nov 14, 2023
b97c60f
implement calculation logic that handles overflow and rounding for no…
iboss-ptk Nov 15, 2023
1aac499
use different normalization & rounding based on amount constraint
iboss-ptk Nov 21, 2023
0d5d81d
refactor transmute function for better testability
iboss-ptk Nov 21, 2023
2076b14
add tests for rounding
iboss-ptk Nov 28, 2023
56334ee
note on what to do next
iboss-ptk Nov 28, 2023
6893e1f
update thoughts on alloyed asset norm factor
iboss-ptk Nov 28, 2023
faa9d2a
alloy asset value conversion
iboss-ptk Nov 29, 2023
d45b95a
expand interface for testing with norm factor
iboss-ptk Dec 1, 2023
e5bd329
make swap aware of the calc
iboss-ptk Dec 1, 2023
f7016f1
fix intemeidate issue
iboss-ptk Dec 1, 2023
5cab20e
add pool value invariant check with normalized value
iboss-ptk Dec 1, 2023
415847f
fix cllippy lints
iboss-ptk Dec 6, 2023
5254ffc
refactor swap to alloyed
iboss-ptk Dec 6, 2023
584963a
add normalization to alloyed swap
iboss-ptk Dec 12, 2023
b39dee9
refactor
iboss-ptk Dec 12, 2023
6fb43ea
refactor SwapExactAmountIn
iboss-ptk Dec 12, 2023
4cd35a8
refactor SwapExactAmountOut
iboss-ptk Dec 12, 2023
b78491d
assign method name once
iboss-ptk Dec 12, 2023
ce24ef2
move all swap related to swap mod
iboss-ptk Dec 12, 2023
279fa42
refactor: swap_non_alloyed_exact_amount_in
iboss-ptk Dec 12, 2023
de158bb
refactor: swap_non_alloyed_exact_amount_out
iboss-ptk Dec 12, 2023
80f6e73
update osmosis-std / test-tube version
iboss-ptk Dec 13, 2023
26171d0
use swap variant instead of bunch of ifs
iboss-ptk Dec 13, 2023
ba9885f
normalize coins in
iboss-ptk Dec 13, 2023
1cd340e
normalize coins in
iboss-ptk Dec 13, 2023
4efdfd6
add math module
iboss-ptk Dec 19, 2023
fe46ccf
update test to use lcm from math module
iboss-ptk Dec 19, 2023
89d576f
update weight calculation
iboss-ptk Dec 19, 2023
ce42d7f
add tests
iboss-ptk Dec 19, 2023
46b69f0
make a new state
iboss-ptk Dec 21, 2023
4e22b62
set normalization factor function
iboss-ptk Dec 21, 2023
2c98846
reset change limiters on new normalization factor / new asset
iboss-ptk Dec 21, 2023
f4d628c
remove ability to set arbritary norm factor afterwards since it will …
iboss-ptk Dec 21, 2023
d42a1c6
init alloyed asset normalization factor
iboss-ptk Jan 3, 2024
729eb79
list all asset config includes alloyed asset config
iboss-ptk Jan 3, 2024
1e1615a
remove unnescessary todo
iboss-ptk Jan 3, 2024
af3f2de
rescale normalization factor
iboss-ptk Jan 3, 2024
7fea015
impl migration
iboss-ptk Jan 4, 2024
ad54f5d
clippy
iboss-ptk Jan 4, 2024
270d7ae
add more migration test
iboss-ptk Jan 8, 2024
f5c19be
add reset limiter
iboss-ptk Jan 8, 2024
c70ee97
setup for cargo mutants
iboss-ptk Jan 12, 2024
f325a81
add test to reset change limiter states'
iboss-ptk Jan 12, 2024
be251ec
test reset limiters
iboss-ptk Jan 12, 2024
545e747
use osmosis-std / test-tube non-beta
iboss-ptk Jan 12, 2024
30882cf
add test for swap variant
iboss-ptk Jan 12, 2024
b0112b5
add tests for swap_tokens_to_alloyed_asset
iboss-ptk Jan 12, 2024
030ee5b
add tests for swap_alloyed_asset_to_tokens
iboss-ptk Jan 12, 2024
34595c1
add swap exact amount in tests and improve error msg
iboss-ptk Jan 16, 2024
ac8e537
add test_swap_non_alloyed_exact_amount_out
iboss-ptk Jan 16, 2024
2aba661
update osmosis deps version to v22
iboss-ptk Jan 17, 2024
c4d0e1f
fix non backward compat state key
iboss-ptk Jan 17, 2024
aaf6862
fix lint
iboss-ptk Jan 17, 2024
f644975
update worksapce resolver
iboss-ptk Jan 17, 2024
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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ artifacts/
# Ignores local beaker state
**/state.local.json

tarpaulin-report.html
tarpaulin-report.html

.idea

mutants.out
mutants.out.old
Loading
Loading