-
Notifications
You must be signed in to change notification settings - Fork 610
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
Test: Additional test cases for TestCalcJoinPoolShares (multi-coin swap) #1732
Conversation
@stackman27 I added some logic for err tolerance in #1731. You might find it useful here |
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.
@stackman27 this should be based against bez/TestCalcJoinPoolShares-swap-tests
9912c8c
to
46a038c
Compare
46a038c
to
377f525
Compare
// A_t = amount of deposited asset = 50,000 | ||
// B_t = existing balance of deposited asset in the pool prior to deposit = 1,000,000,000,000 | ||
// W_t = normalized weight of deposited asset in pool = 0.5 (equally weighted two-asset pool) | ||
// swapFeeRatio = (1 - (1 - W_t) * swapFee) |
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.
Why are we considering swapFeeRatio when depositing with exact ratios (i.e. no swap occurs)?
9750c13
to
83c4394
Compare
Closes: built on top of #1713
What is the purpose of the change
Add additional test cases to TestCalcJoinPoolShares;
Testing and Verifying
This change added tests and can be verified as follows:
Adds unit test that checks shares for multi asset deposits
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (yes / no)x/<module>/spec/
) / Osmosis docs repo / not documented)