kowala-tech / kcoin

A stable cryptocurrency that algorithmically targets $1 USD using the Kowala Protocol
https://www.kowala.tech/
Other
18 stars 16 forks source link

stability contract: withdrawal conditions #697

Open rgeraldes opened 6 years ago

rgeraldes commented 6 years ago

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