It all depends on the status of the actor when he signs and the number of films he makes afterwards.
In the case of Robert Downey Junior, already known before signing for Iron Man , without being a superstar, the first fee was $500,000 .

On the other hand, an unknown actress, like Gal Gadot, chosen to play Wonder Woman, received “only” $220,000.
But if the saga takes hold and the films follow one after the other, the fees increase very quickly.
So, Robert Downey Junior received 75 million dollars for the last film of the Avengers saga, Endgame.. .
Plus a percentage of the revenue, which earned him an additional $55 million…
We can therefore speak of a jackpot.
Not to mention the fact that the actor is then considered bankable and can demand higher fees than before.