Skip to content

Commit

Permalink
Add explicit gas limit for Kiln staking
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Oct 28, 2024
1 parent e0e7003 commit 0676f28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- added: Log swap errors to Sentry.
- added: Tracking for unexpected fiat provider errors.
- changed: `FiatProviderError` messages now include `FiatProviderQuoteError` info.
- changed: Add explicit gas limit for Kiln staking.
- changed: Various strings updated to UK compliance spec
- changed: Track array of errors or AggregateErrors separately with a common tag
- changed: Wording in light account persistent notification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ export const makeEthereumKilnAdapter = (policyConfig: StakePolicyConfig<Ethereum
async fetchStakeQuote(wallet: EdgeCurrencyWallet, requestAssetId: StakeAssetInfo, requestNativeAmount: string): Promise<ChangeQuote> {
const { maxFeePerGas, maxPriorityFeePerGas, nextNonce, walletSigner } = await workflowUtils(wallet)

const tx = await integrationContract.populateTransaction.stake({ value: requestNativeAmount, maxFeePerGas, maxPriorityFeePerGas, nonce: nextNonce() })
const tx = await integrationContract.populateTransaction.stake({
gasLimit: '250000', // Typically uses 190000-225000 gas
maxFeePerGas,
maxPriorityFeePerGas,
nonce: nextNonce(),
value: requestNativeAmount
})

const allocations: QuoteAllocation[] = [
{
Expand Down

0 comments on commit 0676f28

Please sign in to comment.