Closed ckeshava closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 70.9%. Comparing base (
24a275b
) to head (8f7dbfb
).
This looks good to me. But I was hoping it would hit these lines: https://app.codecov.io/gh/XRPLF/rippled/pull/4982/blob/src/ripple/app/misc/impl/AMMHelpers.cpp#L171. And I don't have a good explanation as to why it didn't. Nevertheless, this looks like a good addition to me.
@HowardHinnant I have updated the numbers so that the execution hits the necessary lines.
I expected 10'000.1
to be rounded down to 10'000
and consequently hit the said line. I think my debugger is malfunctioning.
Hello, the commit message could be:
Unit test to examine the rounding behavior of equal-asset deposits with tfLPToken flag
@ximinez
High Level Overview of Change
This PR exercises a specific portion of the AMMHelpers.cpp file. It triggers a downward rounding of LPTokens in
adjustLPTokens
function in theAMMHelpers.cpp
file.Context of Change
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)