Make the settlement offset vary with CR;
K = Modification Factors(e.g 0.02)
x = Modification Factors(e.g. 3)
Force settlement offset= K*(CR/MCR)^x
CR above the MCR will get more settlement offset;
e.g.
when MCR=160 K=0.02,x=2,the 200% collateral ratio will get 3.1% Force settlement offset.
when MCR=150 K=0.02,x=3,the 200% collateral ratio will get 3.9% Force settlement offset.
# -- coding:utf-8 --
import matplotlib.pyplot as plt
import numpy as np
K=0.01
X=4
CR=np.arange(100,300)
MCR=160
offset=K*(CR/MCR)**X
plt.xlabel("CR",fontsize=15)
plt.ylabel("offset",fontsize=15)
plt.plot(CR,offset)
plt.show()
If we need to set a Maximum settlement offset? 5% or other parameters;
The settlement Delay above MCR still be 24 hours.
https://github.com/bitshares/bsips/issues/160