Skip to content

Commit

Permalink
Let metamask define gas fees
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisses committed Jan 26, 2024
1 parent 8b7c3de commit 6beeb6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ NUXT_ENV_TOKEN_NAME=Binance Coin
NUXT_ENV_TOKEN_SYMBOL=BNB
NUXT_ENV_BLOCKEXPLORER=https://bscscan.com

NUXT_ENV_BSC_RPC_FALLBACK='https://bsc-dataseed1.binance.org'
NUXT_ENV_BSC_RPC='https://bsc-dataseed3.binance.org/'
NUXT_ENV_BSC_RPC_FALLBACK='https://bsc-dataseed.bnbchain.org'
NUXT_ENV_BSC_RPC='https://bsc-dataseed.bnbchain.org'

# We might need to check this bridge url, it seems not to be working at the moment.
NUXT_ENV_WALLETCONNECT_BRIDGE_URL="https://uniswap.bridge.walletconnect.org"
Expand Down
12 changes: 10 additions & 2 deletions plugins/masterchef.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ export default (context, inject) => {

async depositLpIntoMasterChef(amount) {
try {
const deposit = await this.masterchefContract.methods.deposit(toWei(amount)).send({ from: this.bscWallet[0] })
const deposit = await this.masterchefContract.methods.deposit(toWei(amount)).send({
from: this.bscWallet[0],
maxPriorityFeePerGas: null,
maxFeePerGas: null
})
this.getStakedLpTokens();

return deposit;
Expand All @@ -198,7 +202,11 @@ export default (context, inject) => {

async withdrawLpFromMasterChef(amount) {
try {
const deposit = await this.masterchefContract.methods.withdraw(toWei(amount)).send({ from: this.bscWallet[0] })
const deposit = await this.masterchefContract.methods.withdraw(toWei(amount)).send({
from: this.bscWallet[0],
maxPriorityFeePerGas: null,
maxFeePerGas: null,
});
this.getStakedLpTokens();
return deposit;
} catch (error) {
Expand Down

0 comments on commit 6beeb6f

Please sign in to comment.