I have empty ether address with tether tokens, should I buy gas for it to run out?
Same for contract, does it need gas to send code or transfer tokens?
Is it cheaper than usual trx?

Nov 21, 2020, 3:34 PM
You need gas, yes
Nov 21, 2020, 3:37 PM
Any way to buy it?) Didn't find on binance
Nov 21, 2020, 3:43 PM
You need ether
You pay for the gas fees with ether
Nov 21, 2020, 3:46 PM
cant I buy just gas?
Nov 21, 2020, 3:48 PM
Gas is not a currency. It's something every transaction on ethereum consumes
Nov 21, 2020, 3:49 PM
Good, and how much I need it for stabdart smart contract?
Erc20 token for example
I heard like a lot
Nov 21, 2020, 3:52 PM
Depends on how clogged the network is and how long you're willing to wait
Right now, around 1$ for a token tx
Or maybe 20k to 80k rather
So more like 2$
Nov 21, 2020, 3:57 PM
Because I see contracts like 1k lines or so and It looks like a lot of information to transfer
Expected like 100£
Nov 21, 2020, 3:57 PM
Are you deploying the contract? It won't take that much for sure
Maybe on a congested time,
And considering the Ether price rn
Nov 21, 2020, 4:00 PM
Roger that, 1kk gwei 0.5 dollar
Nov 21, 2020, 4:01 PM
ETH pumping is bad for developers
Nov 21, 2020, 4:02 PM
Sure thing will over soon probably
Nov 21, 2020, 4:02 PM
Why so🤷‍♂
Nov 21, 2020, 4:19 PM
Because the gwei does become more expensive
Nov 21, 2020, 4:20 PM
Yeah you're right. But I'm enjoying the pump. That's not bad😅
Nov 21, 2020, 4:22 PM
That's beacuse you have goten a lot of eth.
For me, I deploy three contracts today which costs me 0.35 eth.
I only left 0.17 eth, only one last chance to deploy the no-bug contract.
Eth pumping is the worst things for poor dev like me.
Nov 21, 2020, 4:36 PM
Imagine ETH reaches 1000 and we're paying twice the amount for gas
Nov 21, 2020, 4:37 PM
He is rich, not like us.
Nov 21, 2020, 4:38 PM
He maybe trading some ETH
ETH should be around 200-300 rn
Nov 21, 2020, 4:40 PM
I do not get why these trade people pump eth. These people just pump eth to get rich, but they are not dev, eth is not as useful to them as to dev.
Nov 21, 2020, 4:41 PM
You do realize testnets exists right...
Its there for the sole purpose of development
Nov 21, 2020, 4:42 PM
Yes, but testnet will never provide a real enviroment.
Such as if I want to interact with some contract already deployed on mainnet. I have to test on the mainnet.
Nov 21, 2020, 4:44 PM
I'm sure you embarked on the blockchain because you learned that it brought money
Nov 21, 2020, 4:45 PM
You don't have to. Copy the code, re deploy in testnet and bingo💁‍♂
Nov 21, 2020, 4:45 PM
Just poor to buy eth now.
Nov 21, 2020, 4:45 PM
It's because ether has an economic interest that the technologies and applications around will be better each time
Nov 21, 2020, 4:46 PM
first deploy on ropsten test network and test your contract then move to mainnet
Nov 21, 2020, 4:49 PM
how is contract address generated btw?
Nov 21, 2020, 5:13 PM
The sender's address address and nonce are RPL encoded and then hashed with keccak256
Nov 21, 2020, 5:15 PM
so its random?nonce you mean block nonce?
Nov 21, 2020, 5:16 PM
senders address nonce
Nov 21, 2020, 5:17 PM
can't google rpl what is it?
Nov 21, 2020, 5:21 PM
https://eth.wiki/fundamentals/rlp
Nov 21, 2020, 5:21 PM
thanks. is there any calc to see new address? even without sending
I have generated contract address with private key and contract address, but how to check it)
Nov 21, 2020, 5:29 PM
https://github.com/ethereum/pyethereum/blob/782842758e219e40739531a5e56fff6e63ca567b/ethereum/utils.py#L62
Nov 21, 2020, 5:32 PM
it's nice, but what about nonce? should I put any? how long should it be?
Nov 21, 2020, 5:47 PM
The nonce is how many transaction you sent
Nov 21, 2020, 5:52 PM
so first is zero right?
Nov 21, 2020, 6:06 PM
yes
Nov 21, 2020, 6:06 PM
will try, thanks) on rpl doc it says that rpl will be replaced by something, address will be changed?)
Nov 21, 2020, 6:11 PM
which address?
Nov 21, 2020, 6:12 PM
of contract
it uses rpl and then it will be replaced by something
Nov 21, 2020, 6:15 PM
The derived contract address may differ
Nov 21, 2020, 6:16 PM
yes, but what about old addresses?
Nov 21, 2020, 6:17 PM
Contract address doesn't change once deployed
Nov 21, 2020, 6:17 PM
even if they will change algorithms of generation? that's what I meant
Nov 21, 2020, 6:18 PM
yes
Nov 21, 2020, 6:18 PM
that's good, thanks
Nov 21, 2020, 6:25 PM
Hey there @tyler1111 any workaround on how to deal this ?
can't we like copy the other people mainnet code locally and test it on our testnet, or am i thinking wrong ?
Nov 22, 2020, 12:52 PM
Yes, you can fork mainnet locally and test there. Hardhat supports this easily at least
Nov 22, 2020, 12:59 PM
ganache-cli --fork
Nov 22, 2020, 1:27 PM
cool guys got you
Nov 22, 2020, 1:33 PM
Have any one got this problem?
IERC20(USDTAddress).approve(address,value);
when use USDC or DAI, the function is totally fine. But when use USDT, the function just revert.
Can not figure out when finnally happend, is it USDT's fault?
Here is the answer I found https://forum.openzeppelin.com/t/can-not-call-the-function-approve-of-the-usdt-contract/2130/2
Nov 22, 2020, 1:55 PM
If it doesn't follow the Erc20 standard, anything can happen...
Nov 22, 2020, 2:26 PM
damn thats interesting
also you can get the data from few sources
uniswap v2 subgraph is also useful
https://thegraph.com/explorer/subgraph/uniswap/uniswap-v2
Nov 22, 2020, 2:45 PM
What do you guys use for randomness in production ... oracles ?
Nov 22, 2020, 3:37 PM
You can use ChainLink Oracle (not free)
Nov 22, 2020, 3:39 PM
yeah oracles are secure, VRF is great
apart from oracles , ain't there any other solution ?
Nov 22, 2020, 3:41 PM
You can combine, timestamp (now), block.difficulty, msg.sender
But it can be manipulative
Nov 22, 2020, 3:42 PM
nah , won't use the one which is exploitable
Nov 22, 2020, 3:43 PM
If the randomness is critical for your contract, go with VRF
Nov 22, 2020, 3:44 PM
Chain link VRF is a good option. However StarkWare Veedo VDF is more secure and scalable.
Nov 22, 2020, 4:54 PM

© 2024 Draquery.com All rights reserved.