Staking contract
I am creating a staking contract were the rate of interest might change whenever through out the year and the user can stake and unstake any time. So I did draft a contract and I am able to successfully stake many times and from different address and in unstaking I am able to do it once but after which it keeps failing . I have gone through the calculations I don’t think there is mistake there but not sure . I am testing it in remix. Am I missing something