#Critical Error When Uncommenting a Line?

6 messages · Page 1 of 1 (latest)

rose iron
#

You'll see a line that's commented out in this method-- I'm not entirely sure if it's stack depth or something else-- but uncommenting* this line causes a 'critical error' and it doesn’t compile

#

. . .
redacted
. . .

#

. . .
redacted
. . .

#

The commented line was previously x += y and I assumed changing it to x = x + y would fix— but sadly no

#

Smh... adding another if worked:

#
                            supplemental_per_share_reward_rates = op.mulw(self.supplemental_reward_rate.value, time_diff) 
                            supplemental_per_share_reward_rate = (supplemental_per_share_reward_rates[0] // self.supplemental_asset_scale_factor.value) + (supplemental_per_share_reward_rates[1] // self.supplemental_asset_scale_factor.value)
                            supplemental_rewards = op.mulw((user_amount_at_timestamp + user_boost_at_timestamp), supplemental_per_share_reward_rate)
                            supplemental_reward = (supplemental_rewards[0] // activity_amount_at_timestamp) + (supplemental_rewards[1] // activity_amount_at_timestamp)

                        if self.supplemental_reward_asset_amount.value != UInt64(0):
                            supplemental_reward_sum += supplemental_reward```