ZLX-Check

Spot the Bug: divide before multiply

Question 1 of 3Score 0/3

A staking contract pays a reward as uint r = a / total * rate, where total is far larger than a single stake a. The formula matches the whitepaper. What is still wrong?