Skip to content

Commit

Permalink
fix: bump gas by 7%
Browse files Browse the repository at this point in the history
  • Loading branch information
quagliero committed Jan 10, 2023
1 parent 6c70db3 commit d5541c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/trade/src/trade/buy/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const buy0xErc721 = async ({
overrides: omitNil({ value }),
});

const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 3 });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 7 });

const overrides = omitNil({
value,
Expand Down
4 changes: 2 additions & 2 deletions packages/trade/src/trade/sell/sell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const sell0xErc721 = async ({
method: 'mintAndSell721',
args,
});
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 3 });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 7 });

const overrides = omitNil({ gasLimit, maxFeePerGas, maxPriorityFeePerGas });
console.debug(address, 'mintAndSell721', ...args, overrides);
Expand Down Expand Up @@ -236,7 +236,7 @@ const sell0xErc1155 = async ({

const { gasEstimate, maxFeePerGas, maxPriorityFeePerGas } =
await estimateGasAndFees({ contract, method: 'mintAndSell1155', args });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 3 });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 7 });
const overrides = omitNil({
gasLimit,
maxFeePerGas,
Expand Down
4 changes: 2 additions & 2 deletions packages/trade/src/trade/swap/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const swap0xErc721 = async ({
method: 'buyAndSwap721',
overrides: omitNil({ value }),
});
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 3 });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 7 });

const overrides = omitNil({
value,
Expand Down Expand Up @@ -329,7 +329,7 @@ const swap0xErc1155 = async ({
method: 'buyAndSwap1155',
overrides: omitNil({ value }),
});
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 3 });
const gasLimit = increaseGasLimit({ estimate: gasEstimate, amount: 7 });
const overrides = omitNil({
value,
gasLimit,
Expand Down

0 comments on commit d5541c1

Please sign in to comment.