Skip to content

Conversation

@wangjj9219
Copy link
Member

debit_value / exchange_rate = debit_balance, but debit_balance * exchange_rate may be 1 smaller than debit_value. So need fix calculation to resolve possible repaid debit failure.

@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #1935 (a51faec) into master (1ab0f3f) will decrease coverage by 0.36%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1935      +/-   ##
==========================================
- Coverage   85.87%   85.51%   -0.37%     
==========================================
  Files          90       89       -1     
  Lines       19340    18475     -865     
==========================================
- Hits        16608    15798     -810     
+ Misses       2732     2677      -55     
Impacted Files Coverage Δ
modules/cdp-engine/src/lib.rs 74.95% <88.88%> (+<0.01%) ⬆️
modules/currencies/src/tests.rs
modules/currencies/src/lib.rs
rpc/src/lib.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ab0f3f...a51faec. Read the comment docs.

Copy link
Member

@xlc xlc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some test?

@xlc xlc merged commit b6cf9f8 into master Mar 3, 2022
@xlc xlc deleted the fix-calculation branch March 3, 2022 22:26
syan095 pushed a commit that referenced this pull request Mar 8, 2022
…count

* origin/master: (21 commits)
  udpate predeploy and disable NFT precompile for karura & acala (#1942)
  remove old migrations (#1937)
  Optimized calculations t avoid error caused by division missing (#1935)
  Statemine integration test (#1712)
  switch to london (#1932)
  fix clap annotation (#1933)
  fix package name (#1928)
  type cleanup (#1931)
  bump version (#1930)
  V0.9.17 (#1924)
  update precompile set (#1929)
  bump version (#1926)
  use internal release for dev release
  fix evm-bench access_list (#1925)
  add missing precompiles and fixes (#1923)
  remove legacy trader location (#1920)
  cdp enhancement (#1886)
  add new call to execute completely fast match redeem (#1922)
  Change StorageDepositPerByte (#1919)
  add ACA to CollateralCurrencyIds (#1918)
  ...

# Conflicts:
#	Cargo.lock
#	orml
#	runtime/integration-tests/src/setup.rs
#	runtime/integration-tests/src/stable_asset.rs
#	runtime/mandala/Cargo.toml
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.

3 participants