Quote from: pluswave on March 20, 2018, 06:56:51 AM
A reference usage of this data is here: https://github.com/sunchao123456/btsprice .
The idea is , the recharge/withdraw price is compensated to the original BTS price through a user defined factor (0-1). For example, now magicwallet.witness set the factor to 0.4, While you can use 1.1 FaitCNY to get 1 bitCNY, it will compute:
compensated BTS Price = original BTS Price * (1 + (1.1 - 1)*0.4)
if you can use 0.9 FaitCNY to get 1 bitCNY, it will compute:
compensated BTS Price = original BTS Price * (1 + (0.9 - 1)*0.4)
The original BTS price is from a fork of alt's btsprice (crazybit's one).
Excellent work!
Witness: rnglab
[email protected]
