Skip to content

Commit

Permalink
skip gas fee protection on fuse for now
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSulpiride committed Dec 7, 2023
1 parent b277a14 commit bd4bcf6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/executor/src/services/BundlingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,13 @@ export class BundlingService {
);
}

// skip gas fee protection on Fuse
if (this.provider.network.chainId == 122) {
bundle.maxFeePerGas = BigNumber.from(gasFee.maxFeePerGas);
bundle.maxPriorityFeePerGas = BigNumber.from(gasFee.maxPriorityFeePerGas);
return bundle;
}

if (bundle.entries.length > 1) {
// average of userops
bundle.maxFeePerGas = bundle.maxFeePerGas.div(bundle.entries.length);
Expand Down

0 comments on commit bd4bcf6

Please sign in to comment.