We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252d1fa commit 69fa1bcCopy full SHA for 69fa1bc
src/meta/MetaPaymaster.sol
@@ -75,11 +75,7 @@ contract MetaPaymaster is OwnableUpgradeable {
75
* @param amount The amount to set the balance to.
76
*/
77
function setBalance(address account, uint256 amount) public onlyOwner {
78
- if (amount > balanceOf[account]) {
79
- total += amount - balanceOf[account];
80
- } else {
81
- total -= balanceOf[account] - amount;
82
- }
+ total = total + amount - balanceOf[account];
83
balanceOf[account] = amount;
84
}
85
0 commit comments