Hey guys. Please tell me how to calculate gas price in my code for BUY transaction in BSC via Pancakeswap

Jun 27, 2022, 7:20 PM
The gasPrice in BSC is always the same: 5.5 gwei
Here triggers the error(in this method)
Exactly here
I ve deployed the contract and used new hex(pasted in here)
Then redeployed it a couple of times and got the same
keccak256(abi.encodePacked(type(UniswapV2Pair).creationCode));
Oh..., creation code is not the same, i think
Not hardcoded
bytes memory bytecode = type(UniswapV2Pair).creationCode;
But where i can set it
But why they have done deps like this: in order to alleviate the contract
yeah, otherwise library will be external and we should deploy and link it
e.g. setter for this
Jun 27, 2022, 8:02 PM

© 2024 Draquery.com All rights reserved.