Skip to content

Commit

Permalink
fix: manually set estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Sep 10, 2021
1 parent d149f55 commit 6538aed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/tx-builder/services/v2/LendingPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,14 @@ export default class LendingPool
}
);

txs.push(swapAndDepositTx);
txs.push({
...swapAndDepositTx,
gas: this.generateTxPriceEstimation(
txs,
swapAndDepositTx.tx,
ProtocolAction.swapCollateral
),
});
return txs;
}

Expand Down

0 comments on commit 6538aed

Please sign in to comment.