Loans: specify & implement loan's modifications logic. #1195
Labels
crcl-protocol
Circle protocol related.
I8-enhancement
An additional feature.
P5-soon
Issue should be addressed soon.
Q5-hard
Can be done by an experienced coder with a good knowledge of the codebase.
Which part of the code is the issue addressing?
Description
The previous
reprice
method allows the modification of loan attributes instantly without any feedback to the investors. We want these changes to happen after certain time while the investors have feedback to decide if they want to keep their money there.This forces to the loans pallet to act in the following way in order to modify certain critical loan attributes:
modify_intent
:pallet-loans
proposes to modify something, but the modification itself is lockedmodify
: Thepallet-loans
is able to modify the loan's attributesResearch/based on
How will this affect the code base
modify
allows for protecting investors first, giving clear feedback on what will be changed.What are forseen obstacles or hurdles to overcome?
ChangeGuard
trait #1207The text was updated successfully, but these errors were encountered: