Skip to content

Conversation

@wangjj9219
Copy link
Member

@wangjj9219 wangjj9219 commented Feb 14, 2022

  1. support use lp token as collateral
  2. provider call for pre-issuing stable coin to obtain more collateral and deposit into CDP, the collateral ratio will decrease.
  3. provider call for selling collateral in CDP to obtain stable coin to repay debit, the collateral ratio will increase.

@codecov
Copy link

codecov bot commented Feb 14, 2022

Codecov Report

Merging #1886 (45adbef) into master (0c089fa) will increase coverage by 0.60%.
The diff coverage is 90.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1886      +/-   ##
==========================================
+ Coverage   85.31%   85.91%   +0.60%     
==========================================
  Files          82       79       -3     
  Lines       17934    18696     +762     
==========================================
+ Hits        15300    16063     +763     
+ Misses       2634     2633       -1     
Impacted Files Coverage Δ
modules/honzon/src/lib.rs 70.78% <0.00%> (-17.95%) ⬇️
modules/incentives/src/lib.rs 81.95% <ø> (ø)
modules/support/src/lib.rs 16.39% <0.00%> (-0.56%) ⬇️
modules/cdp-engine/src/lib.rs 74.95% <83.33%> (+4.09%) ⬆️
modules/dex/src/lib.rs 81.87% <86.00%> (+2.25%) ⬆️
modules/cdp-treasury/src/lib.rs 85.71% <88.88%> (+0.18%) ⬆️
modules/cdp-engine/src/tests.rs 99.81% <100.00%> (+0.09%) ⬆️
modules/cdp-treasury/src/tests.rs 100.00% <100.00%> (ø)
modules/loans/src/lib.rs 88.09% <100.00%> (+0.29%) ⬆️
modules/loans/src/tests.rs 100.00% <100.00%> (ø)
... and 12 more

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 0c089fa...45adbef. Read the comment docs.

@wangjj9219 wangjj9219 changed the title cdp enhancement[WIP] cdp enhancement Feb 20, 2022
@wangjj9219 wangjj9219 marked this pull request as ready for review February 20, 2022 13:50
@wangjj9219 wangjj9219 requested review from xlc and zjb0807 and removed request for xlc February 22, 2022 02:36
@xlc xlc requested a review from shaunxw February 22, 2022 05:50
@wangjj9219
Copy link
Member Author

@qwer951123 @nnnnnnnnnni This pr contains changes about events related to collateral auction and loan position. Data services should be compatible with these changes.

@wangjj9219 wangjj9219 merged commit 9698783 into master Feb 25, 2022
@wangjj9219 wangjj9219 deleted the cdp-enhancement branch February 25, 2022 03:46
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