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

Add recover modal to help users deal with bad debt #879

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

haydenshively
Copy link
Member

@haydenshively haydenshively commented Jun 27, 2024

Frontend feature to accompany this new contract

Uses a flash swap to liquidate enough of the bad debt for the user to withdraw. A portion of the withdrawn funds are then used to repay the flash swap (implying a loss -- it is bad debt after all). The user is left with some combination of the original token (WETH) and the unhealthy borrower's collateral (BASED).

Uses Permit with a finite amount because the contract's callback method is unprotected, and could otherwise be manipulated to enable unchecked spending. In other words, nobody should approve the BadDebtProcessor non-atomically, and never for infinite spend.

@haydenshively haydenshively requested a review from IanWoodard June 27, 2024 02:02
Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for aloe-earn ready!

Name Link
🔨 Latest commit c9f54b9
🔍 Latest deploy log https://app.netlify.com/sites/aloe-earn/deploys/667cc84d7566150008e17af8
😎 Deploy Preview https://deploy-preview-879--aloe-earn.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for aloe-prime canceled.

Name Link
🔨 Latest commit c9f54b9
🔍 Latest deploy log https://app.netlify.com/sites/aloe-prime/deploys/667cc84d90b7aa0008636c2d

Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for aloe-blend-staging canceled.

Name Link
🔨 Latest commit c9f54b9
🔍 Latest deploy log https://app.netlify.com/sites/aloe-blend-staging/deploys/667cc84ea3c3e000087d1719

@haydenshively haydenshively merged commit ad079ab into master Jun 27, 2024
18 checks passed
@haydenshively haydenshively deleted the hs-recover-modal branch June 27, 2024 02:16
Copy link

sentry-io bot commented Jul 7, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'includes') <object>.{children#3}.onClick(components/market... View Issue

Did you find this useful? React with a 👍 or 👎

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