-
Notifications
You must be signed in to change notification settings - Fork 170
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: leverage e2e #2233
test: leverage e2e #2233
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2233 +/- ##
==========================================
- Coverage 75.38% 70.24% -5.15%
==========================================
Files 100 168 +68
Lines 8025 12623 +4598
==========================================
+ Hits 6050 8867 +2817
- Misses 1589 3163 +1574
- Partials 386 593 +207
|
Was running into a few problems with the suite, so I removed some of the improvements I was trying to make (such as non-validator accounts to run transactions) Now we have simple leverage transactions and a gov proposal. I might add a few more today, but I'lll revert if they run into problems since we're short on time. |
We used validators accounts for signing because those accounts have more voting power when submit the votes to gov proposals @toteki |
Co-authored-by: kosegor <30661385+kosegor@users.noreply.github.com>
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.
few suggestions. Let's add leverage
prefix to the related methods and avoid 30s wait time (event if it's in "eventually" call)
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
* file * mimic egor PR #2232 * leverage execute fxns * comment * shorten functions * ++ * const * add initial balances * leverage gov setup * special assets pair gov setup * initial leverage supply * lint * fix * fix exceed max supply * ++ * fix * account tools * ++ * revert accunt tools * revert extra balances * -- * -- * -- * fix * do not require historic medians for leverage e2e * suggestion++ Co-authored-by: kosegor <30661385+kosegor@users.noreply.github.com> * add special pairs to e2e * fix spelling of undercollateralized * fix empty description * modify amounts * keeper tests with special pairs - AND A FIX * rename suite functions * change eventually to 5sec * suggestion++ Co-authored-by: Robert Zaremba <robert@zaremba.ch> * remove eventually * modify gov proposal (sets don't loop assets) --------- Co-authored-by: kosegor <30661385+kosegor@users.noreply.github.com> Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Simple leverage e2e additions
update: Also includes a fix in GetAccountPosition