You are viewing a single comment's thread from:

RE: HERTZ FBA Created!

in #bitshares7 years ago (edited)

Formula refining

X_Period = MOD((CurrentBlock - AssetGenesisBlock),BlocksInPeriod)/BlocksInPeriod

The final division by 'BlocksInPeriod' was initially proposed to reduce the MOD value from xxxx to 0.xxxx, however a better approach would simply be taking the length of the MOD value then moving the decimal place left that many values. This would give a more straightforwards value from the MOD to aply against the reference asset.

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.029
BTC 65811.20
ETH 3178.05
USDT 1.00
SBD 2.54