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

CS Note 8.3: Delegations Are Deleted on Liquidation #497

Open
bingen opened this issue Oct 9, 2024 · 0 comments
Open

CS Note 8.3: Delegations Are Deleted on Liquidation #497

bingen opened this issue Oct 9, 2024 · 0 comments

Comments

@bingen
Copy link
Collaborator

bingen commented Oct 9, 2024

Liquidations return surplus collateral to the trove owner. However, only the owner of the trove can reclaim the surplus. Delegated accounts cannot.

Note that liquidations trigger the BorrowerOperations.onLiquidateTrove hook, so all delegations for that trove ID are deleted on liquidation.

If the trove owner is a smart contract, it must implement the function to claim collateral. It cannot rely on another contract via delegation. Not having the ability to call claimCollateral() risks losing access to the surplus collateral in case of liquidation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant