ethersphere / storage-incentives

Smart contracts for Swarm storage incentives
BSD 3-Clause "New" or "Revised" License
23 stars 10 forks source link

feat:oracle proper implementation #227

Closed n00b21337 closed 11 months ago

n00b21337 commented 11 months ago

So when we discussed this, the idea was that giving a separate accessor for currentPrice which is already bitshifted by 10, and the accessor takes this value and shift it back by 10. instead, we have two variables now with which we need to juggle.

but then values between will be lost. this way we keep values in decimal iike 24000.3587 in one round then in next 24000.6788 and then finally in last we have 24001.046 if i dont keep it will be just 24000