Does Paymaster have to call addStack() before depositTo()?
ipromise2324 opened this issue · comments
Maxey Liu commented
Don't we have to check that whether the PayMaster addStack() or not before PayMaster depositTo()?
Dror Tirosh commented
no need.
the deposit and stake are two separate accounting mechanisms.
deposit is used for gas payment. it can be added by anyone, and withdrawn at any time (by the account/paymaster itself)
the "stake" is used only by paymasters. It is a value locked in the entrypoint and has delayed withdrawn . It comes to prevent Sybil attacks by paymasters.