Skip to content

Commit

Permalink
[defence-for-gas-limit] add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cast0001 committed Dec 11, 2023
1 parent df6b27d commit 2045947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contracts/vaultMulticall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ const vaultMulticall = async <T extends unknown>(values: VaultMulticallInput): P
} as T
}

// Even though ethers tries to find the best price for gas, sometimes it's
// not enough and the transaction breaks down and users lose money for gas.
// Adding 10% to the gas limit

if (isSoloCall) {
const { method, args } = params[0]

Expand Down

0 comments on commit 2045947

Please sign in to comment.