CRYPTO NEWS

XRP Stucks at 100 DMA But Showcases Strong Potential!

XRP token facilities streamline transactions and exchanges between two different currencies or networks with relative ease making it a far bigger competitor to VISA and Mastercard than any other blockchain. XRP doesn’t even use a blockchain validation process; rather, it depends on a distributed ledger system. It can support enterprise needs and be deployed on …

How to write a linear formula for percentage in Solidity?

So id like to write this function in solidity but im having issues because of the integers not being accepted. s being the startin time. Lets say 1 second in unix time. x being the ending time. Lets say 1 weeks worth of unix time. Any idea on how i could put this into code::Listen

So id like to write this function in solidity but im having issues because of the integers not being accepted. s being the startin time. Lets say 1 second in unix time. x being the ending time. Lets say 1 weeks worth of unix time. Any idea on how i could put this into code and see it work?

f(x)= ((0.8)/s+1-e)*(x-s-1)+0.8

The whole idea behind is that id like to calculate a fee, based on the time passed after a certain timestamp. Id like it to start at 80% and end in 0% after a week. In other words when the subtraction of the current block.timestamp – the stored one is >= than 1 weeks it becomes 0.

XRP Stucks at 100 DMA But Showcases Strong Potential!

Shopping cart
There are no products in the cart!
Continue shopping
0