Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

I'm trying to create a staking contract. I'm using self.blockchain().get_block_timestamp(); to figure out the amount of rewords that I should give to the client when it unstakes, claim, reinvest etc.. All is good in the mentioned cases. The problem arises in my report method. I have a mandos tests where I move foreword 1 seconds and when I interogate the report the estimations get recalculated and reported. On devnet I get these estimation recalculated only the first time when I query the view. Then it seams that the view gets stuck in time untill some of the endpoints that modifiye the client section of the sorage is called. Is there something specific that I should do or params that I should pass to make sure that the code from the view is recalculated every time based on the actual self.blockchain().get_block_timestamp(); of the interrogation time ?