Im building a simple lending-borrowing protocol, using yield-generating and debt tokenization pattern, and for users liquidation when its position is undercollateralized, i want to liquidate part of his collateral within the protocol without third party's assistance ( because a little bit complex since i want to keep the protocol simple). Is there any alternative to achieve this purpose without liquidating more than i have to liquidate, and also without risking the health of the protocol either .

1 Answer 1


Because you are designing your own protocol, it is up to you to decide then the liquidations are checked. Because your protocol is not public and not well known, only you can answer the question of how this can be achieved. In theory, there should not be any issues you designing smart contracts any way you wish.

  • It’s only for educational purpose im not deploying it on mainnet, and its very like aave, so what i wanna ask is how would you for example do it ?
    – noro meb
    Dec 29, 2022 at 11:14
  • StackExchange is a Question & Answer website and not suited tutoring or mentoring how to learn smart contract development. Dec 29, 2022 at 14:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.