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

0xripleys manual liquidate #112

Merged
merged 7 commits into from
Nov 17, 2022
Merged

Conversation

0xripleys
Copy link

@0xripleys 0xripleys commented Nov 9, 2022

Liquidate obligation via the CLI.

Example command:

cargo run liquidate-obligation --obligation GhahiVZSzG7GLfkSCF9DikyuDkoBGqbBJvco8wsTs8CZ --repay-reserve BgxfHJDzm44T7XG68MYKx7YisTjZu73tVovyZSjJMpmw --withdraw-reserve 8PbodeaosQP19SjYFx855UMqWxH2HynZLdBXmsrbac36  --liquidity-amount 1000 --source-liquidity 4Rjmc2TGhArSpfsMUQ9hrS4YqnsRT7Gkwb3tHafCqmSL

also added commands to withdraw obligation collateral, and redeem reserve collateral.

@codecov-commenter
Copy link

Codecov Report

Merging #112 (8449b63) into upcoming (3653b74) will decrease coverage by 2.35%.
The diff coverage is 0.37%.

@@             Coverage Diff              @@
##           upcoming     #112      +/-   ##
============================================
- Coverage     81.17%   78.82%   -2.36%     
============================================
  Files            33       34       +1     
  Lines          8761     9023     +262     
============================================
  Hits           7112     7112              
- Misses         1649     1911     +262     
Impacted Files Coverage Δ
token-lending/cli/src/lending_state.rs 0.00% <0.00%> (ø)
token-lending/cli/src/main.rs 0.12% <0.51%> (-0.05%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nope-finance
Copy link
Member

seems fine

@nope-finance nope-finance merged commit 9b60774 into upcoming Nov 17, 2022
@0xripleys 0xripleys deleted the 0xripleys_manual_liquidate branch January 25, 2023 10:04
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