Giveth / giveth-next

Giveth 2.0 implementation in NextJS
https://next.giveth.io
GNU General Public License v3.0
20 stars 13 forks source link

xDai onchain fee showing ETH dollar value #596

Closed GriffGreen closed 2 years ago

GriffGreen commented 2 years ago

Screen Shot 2021-12-26 at 11 50 35 AM

GriffGreen commented 2 years ago

https://github.com/Giveth/giveth-gatsby/issues/913

MoeNick commented 2 years ago

@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also

aminlatifi commented 2 years ago

@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also

It's so easy. Pass this data as the last parameter of function which makes the tx, it edits the gas setting

https://github.com/Giveth/liquidity-mining-dapp/blob/5168d74fb6c79189684922c93134ff57b81dab54/src/config/production.ts#L90

Like this:

return await lmContract
            .connect(signer.connectUnchecked())
            .stakeWithPermit(
                ethers.BigNumber.from(amount),
                rawPermitCall.data,
                {
                    gasLimit: 300_000,
                    ...gasPreference,
                },
            );
mateodaza commented 2 years ago

@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also

It's so easy. Pass this data as the last parameter of function which makes the tx, it edits the gas setting

https://github.com/Giveth/liquidity-mining-dapp/blob/5168d74fb6c79189684922c93134ff57b81dab54/src/config/production.ts#L90

Like this:

return await lmContract
          .connect(signer.connectUnchecked())
          .stakeWithPermit(
              ethers.BigNumber.from(amount),
              rawPermitCall.data,
              {
                  gasLimit: 300_000,
                  ...gasPreference,
              },
          );

Gonna make this a separate issue

608