Skip to content

feat(lending): liquidate pays full debt; drop market-deficit surface - #14

Merged
Benup211 merged 1 commit into
feat/alpha-vault-and-otcfrom
feat/lending-liquidate-full-debt
Sep 7, 2026
Merged

Benup211 merged 1 commit into
feat/alpha-vault-and-otcfrom
feat/lending-liquidate-full-debt

Conversation

@Benup211

@Benup211 Benup211 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

On top of #13 (consumer-side of the lending-pool no-deficit redesign).

Contract change: the pool's underwater liquidation now always pays the borrower's full debt; cover_deficit/get_market_deficit and the deficit concept are removed (see TUSDT-SmartContract PR #28).

CLI changes:

  • remove the market-deficit command and the lending_get_market_deficit client method (messages no longer exist)
  • liquidate command aligned to full-debt payment (TAO value + TUSDT via allowance) with the surplus-capped platform fee only when C > D; underwater = no platform fee, all alpha to the liquidator (possible value loss)
  • delete the two obsolete tests for lending_get_market_deficit
  • resync abi/tusdt_lending_pool.json (sha256 83b9708a...)

Tests: 201 passed; ruff clean.

@Benup211
Benup211 merged commit 5deb6a1 into feat/alpha-vault-and-otc Sep 7, 2026
2 checks passed
@Benup211
Benup211 deleted the feat/lending-liquidate-full-debt branch September 7, 2026 04:29
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.

1 participant