IMA icon indicating copy to clipboard operation
IMA copied to clipboard

Update gas price calculation in CommunityPool contract

Open yavrsky opened this issue 1 year ago • 0 comments

During a recent investigation, it was found that block.basefee in the call returns 0, so it was decided to return tx.gasprice back and set it ourselves during the call to getRecommendedRechargeAmount. Also, in the _balanceIsSufficient method, tx.gasprice was replaced with block.basefee, which avoids manipulation of the gasprice during the call to rechargeUserWallet.

yavrsky avatar Sep 19 '24 16:09 yavrsky