Open jstarry opened 3 years ago
Hi jstarry,
Is the obligation account initialized in process_init_reserve
?
It's initialized in process_init_obligation
🙂
Thanks, is that on line 671, within the obligation
struct?
@jordansexton How do I pass the workflow tests by the way? Even after running cargo clippy
, the PR failed.
Hmm, it looks like it needs to have master merged in and the conflicts resolved. If you can do that, I can then trigger them to run again.
Problem
When obligations are fully repaid, a user has no way of reclaiming the SOL used to cover rent for the obligation account
Proposed Change
Add a
CloseObligation
instruction which allows closing obligations that are fully repaid