Solidity. I want to calculate it in Solidity
In JavaScript, I could do 50/500*100 to get me an APR of 10%
But in Solidity, my approach is always all wrong
Jan 24, 2023, 10:18 AM
But the issue with this approach is, 500, could become 50000 and that will mean, more zeros, giving me 0 at the end of my calculations
If I pad it with more zeros, man I'm confused already
Jan 24, 2023, 11:25 AM