The current code does not let the user withdraw if price < $1 but the use case is different.
"While a participant may unregister his source address and withdraw the associated funds at any time, if he does so before the price of kUSD returns to $1 or higher, he will forfeit any associated stability rewards."
The subscription must have a variable for reward which is going to be modified by the validator and if the price < $1 the user just gets the initial deposit back.
Type:
Issue
What happened? / What do you need?:
The current code does not let the user withdraw if price < $1 but the use case is different.
"While a participant may unregister his source address and withdraw the associated funds at any time, if he does so before the price of kUSD returns to $1 or higher, he will forfeit any associated stability rewards."
The subscription must have a variable for reward which is going to be modified by the validator and if the price < $1 the user just gets the initial deposit back.
Affected servers or services:
Stability contract
Priority:
Medium