Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

Most Ethereum Wallets are unable to properly estimate the gas for this transaction - is it a recurring bug?

These are two defi transactions that are doing a loan rollover on mainnet: borrowing money from Aave to pay off a loan and open a new loan. When i simulate them in tenderly it looks like they run out ...
admazzola's user avatar
  • 121
0 votes
0 answers
10 views

Tokenized margin positions

Is there a protocol in DeFi that tokenizes long & short positions? So you're able to buy a token that represents all variables from N position.
dNyrM's user avatar
  • 948
1 vote
0 answers
43 views

My createTokenPair function isnt working when I call it from my frontend please help

Hello, I`ve forked Uniswap V2 perfectly fine on the backend and now I want to connect it to my frontend. I have built a basic webpage and I am now doing the frontend. When calling the createPair ...
CheeseMcBurger's user avatar
3 votes
0 answers
44 views

Classical bit-fiddling tricks that don't work in the EVM

Many classical bit-fiddling/bit-hacking tricks work very well on the EVM and allow one to save a significant amount of gas when programming in Yul/Solidity (for a reference to the classics, see Sean ...
Netanel's user avatar
  • 51
2 votes
2 answers
335 views

how is the EXP opcode priced? and when to use it?

In the EVM, the MUL opcode costs 5 gas and is used to perform multiplication. For example, the arithmetic behind computing 20 * 30 = 600 should cost 5 gas. The EXP opcode is used to perform ...
Netanel's user avatar
  • 51
0 votes
1 answer
76 views

How to create a timer to unlock the particular amount of tokens in a contract after a certain period of time?

I want to create a BuyMeACoffee contract where the tippers can withdraw the amount they tipped before 24hours of transactions, but I also want the owner to be able to access (or withdraw) these tokens ...
Megabyte's user avatar
0 votes
1 answer
511 views

ERC20 -> ERC20 Swapping liquidity pool

I want to write a system that will exchange any ERC20 for any other ERC20 registered in the system using Uniswap I already wrote a contract for Ether swap in DAI and back with UniswapRouterV2 My ...
Aliaksandr Burak's user avatar