Skip to main content

Questions tagged [gas-refund]

0 votes
0 answers
19 views

I made some trades that seem to have turned out good. I’ve started a withdrawal and now they are telling me there is a 10% gas fee required to be paid from an external account and that 10% fee will be ...
Jamie's user avatar
  • 1
5 votes
4 answers
211 views

im wondering if it still makes sense to remove entries from mappings in ethereum contract. It seems like initially there was a relatively big benefit of cleaning up the storage but from what i read ...
mat13mn's user avatar
  • 51
0 votes
1 answer
50 views

I have a mapping(bytes32=> exampleStruct) public myMapping where: struct exampleStruct { address owner, uint256 number, uint256 anotherNumber } To optimize gas sometimes I delete ...
Hiperfly's user avatar
0 votes
1 answer
83 views

I'm optimizing the gasLimit for transactions to ensure the maximum possible gas refund without leaving any unused gas. Given most web3 network's have a maximum gas refund policy where a portion of the ...
MShakeG's user avatar
  • 2,015
1 vote
2 answers
75 views

As the title says, I am wondering if the following ether refund(using .call) can be hackable. I am not entirely sure no reentrancy attack can be performed in it, but I think so since I am not updating ...
Demain's user avatar
  • 11
0 votes
1 answer
32 views

In my contract, users are required to deposit a specific amount of Wei. I want to prevent users from overpaying and need to decrease the value of msg.value. Currently, I'm refunding the difference, ...
Damir Olejar's user avatar
0 votes
1 answer
538 views

My understanding is that the total gas refund can never exceed 20% of the transaction total gas cost, which I guess means that the EVM will first add-up all the transaction gas cost then deduct the ...
Alberto Molina's user avatar
1 vote
1 answer
811 views

I try to refund gas to the minimum even after using revert with the following example. uint A = IERC20(base).balanceOf(address(this)); IERC20(token).transfer(owner,1000000); then I run swaps ...
jhonatanalfred's user avatar
0 votes
2 answers
374 views

How can I create ERC-20 token on Ethereum blockchain without paying gas fee using Remix.ethereum.org Please provide code to help I saw Zeroswap DEX allow us to trade without paying gas fee.
Divyansh Singh's user avatar
0 votes
1 answer
360 views

function burn(uint256 _value) public returns (bool success) { balances[msg.sender] = balances[msg.sender].sub(_value); totalSupply = totalSupply.sub(_value); Burn(msg.sender, _value); ...
imelon2's user avatar
  • 600
2 votes
1 answer
122 views

I am experimenting on saving gas by releasing some storage on my smart contract. In the smart contract there is a mapping, which i fill with data by calling the function setStorage. The other function ...
Atrox's user avatar
  • 21
2 votes
1 answer
871 views

There is a lot of conflicting information due to the change in the gas refund mechanism from EIP-3298. According to evm.codes the user will still be charged net 200 gas for clearing out a storage slot....
alphak3y's user avatar
1 vote
0 answers
98 views

eth_estimateGas provides estimated final gas consumed by transaction and accounts for gas refund in the end of transaction. However, is there a way to estimate maximum gas the transaction may consume ...
pokrovskyy's user avatar
0 votes
1 answer
531 views

Is it possible to create and destroy a contract in a single transaction? Specifically could I: deploy to a known address using CREATE2 call a function on that contract destroy the contract and ...
willemolding's user avatar
0 votes
1 answer
105 views

My transaction is stuck, but can I speed it up by replacing the fee with 1 gwei then cancel it to reduce the fees to cancel? I tried to cancel and speed up but its still stuck. I check etherscan and ...
Patoshi パトシ's user avatar

15 30 50 per page
1
2 3 4 5