You are viewing a single comment's thread from:

RE: HERTZ FBA Created!

in #bitshares8 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.17
TRX 0.22
JST 0.034
BTC 99059.79
ETH 2763.01
SBD 3.56