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

Get in amount #190

Merged
merged 4 commits into from
Aug 4, 2023
Merged

Get in amount #190

merged 4 commits into from
Aug 4, 2023

Conversation

chanhosuh
Copy link
Member

@chanhosuh chanhosuh commented Aug 2, 2023

Description

Implement get_in_amount for SimCurveCryptoPool.

Closes #179.

Hygiene checklist

  • Changelog entry
  • Everything public has a Numpy-style docstring
    (modules, public functions, classes, and public methods)
  • Pylint score monotonically increased
  • Commit history is cleaned-up with minor changes squashed together
    and descriptive commit messages following Tim Pope's style

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@chanhosuh chanhosuh self-assigned this Aug 2, 2023
@chanhosuh chanhosuh added this to the Cryptopool Sims milestone Aug 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Coverage report

The coverage rate went from 75.36% to 75.54% ⬆️
The branch rate is 63%.

61.53% of new lines are covered.

Diff Coverage details (click to unfold)

curvesim/pool/cryptoswap/pool.py

100% of new lines are covered (82.29% of the complete file).

curvesim/pool/sim_interface/cryptoswap.py

0% of new lines are covered (53.33% of the complete file).
Missing lines: 120, 122, 123, 125, 126

We don't actually need the out-balance to accomodate fees, because
we use `get_in_amount` for bounds in the solver.

The size of the fee should not greatly affect the in-amount for
that purpose.
@chanhosuh chanhosuh merged commit 82ce358 into main Aug 4, 2023
13 checks passed
@chanhosuh chanhosuh deleted the get-in-amount branch August 4, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_input_amount
2 participants