{"id":10774,"date":"2018-07-12T09:12:00","date_gmt":"2018-07-12T09:12:00","guid":{"rendered":"https:\/\/coinpoker.com\/?post_type=help&p=10774"},"modified":"2023-05-25T08:35:21","modified_gmt":"2023-05-25T08:35:21","slug":"faq-smart-contracts-gas","status":"publish","type":"help","link":"https:\/\/coinpoker.com\/help\/faq-smart-contracts-gas\/","title":{"rendered":"Smart Contracts and Gas: How CHP Withdrawals and Deposits Work"},"content":{"rendered":"\n
For those of you who are new to cryptocurrency transfers, terms like gas, Gwei, and network congestion can be confusing. In light of recent events on the ETH blockchain that resulted in withdrawal delays, we want to make sure our players understand how the system CHP tokens operate on works.<\/strong><\/p>\n\n\n\n As far as money is concerned, transparency is the best policy. That is why we recommend reading the following guide, which will help you understand the protocols and factors involved in speeding up, or slowing down, your payments.<\/p>\n\n\n\n Before we dive into the general stuff, we want to clarify a few things about how payment processing works at CoinPoker:<\/p>\n\n\n\n With the exception of cases where security breaches are reported, we do not hold up your deposits or withdrawals with extra screening. Once a withdrawal is requested, it is out of our hands, and into an immense environment comprised on ETH Smart Contracts.<\/p>\n\n\n\n In order to understand how your CHP moves from an exchange to your wallet to CoinPoker, you need understand a few key concepts:<\/p>\n\n\n\n If you\u2019ve read our \u201cWhat is CHP\u201d guide,<\/a> you already know that the tokens used on CoinPoker are classified as ERC-20 tokens. All this means is that they have been built on the Ethereum network and is transferred between accounts using smart contracts.<\/p>\n\n\n\n Many people are confused by the term \u201csmart contracts\u201d, and CoinDesk\u2019s handy information section<\/a> explains the reasons for this confusion quite well:<\/p>\n\n\n\n While a standard contract outlines the terms of a relationship (usually one enforceable by law), a smart contract enforces a relationship with cryptographic code. Put differently, smart contracts are programs that execute exactly as they are set up to by their creators.\u201d<\/em><\/p>\n<\/blockquote>\n\n\n\n Smart contracts are what makes the ETH network tick, and in the case of CHP, they are used to transfer funds from one user to another (usually our platform and yourself). But the use of Smart Contracts is not limited to currency transfers, and depending on the token they can also be used to store information, handling insurance policies, loans and more<\/p>\n\n\n\n In the case of CHP tokens, they are used to power deposits and withdrawals to and from CoinPoker.<\/p>\n\n\n\n Gwei is required when any smart contract is created on the ETH Network. It is best explained as a transaction or processing fee for validating the smart contract. This gas price does fluctuate on a daily (and even hourly) basis depending on how busy the Ethereum network is.<\/p>\n\n\n\n Considering the amount of ERC-20 tokens out there, there\u2019s a lot of traffic in terms of Smart Contracts being sent out and validated by the network. More congestion means more processing for the ETH network, hence the increase in transaction fees (a.k.a. Gas and Gwei).<\/p>\n\n\n\n When you hear the term gas, is usually refers to the gas limit<\/strong>, while Gwei refers to the gas price<\/strong> in a unique unit of measurement (1 Gwei = 0.000000001 ETH). Together, these two values help you determine the cost of transaction, which is referred to as Tx.<\/strong><\/p>\n\n\n\n The gas limit is the volume of gas required, while Gwei is the price for each unit. Depending on the token and network activity, the amount of each required may vary. MyEtherWallet has a great analogy on their helpful guide explaining how gas works:<\/p>\n\n\n\n You can think of the gas limit like the amount of liters\/gallons\/units of gas for a car. You can think of the gas price as the cost of that liter\/gallon\/unit of gas.\u201d<\/em><\/p>\n<\/blockquote>\n\n\n\n In the case of CHP, 60,000 Gas <\/strong>and is enough for depositing, for Gwei <\/strong>always check ETH Gas Station<\/a> for the most up to date price. You can also adjust the Tx<\/strong> you pay to have your transactions processed faster or slower using various tools on ETH Gas Station.<\/p>\n\n\n\n Simply put (perhaps too simply), the Ethereum Virtual Machine or EVM is the part of the Ethereum blockchain that processes and executes smart contracts<\/a>. If you do not pay a high enough Tx, the EVM will not execute the transaction and it will fail.<\/p>\n\n\n\n Because gas price (and therefore Tx) can fluctuate so much based a wide range of factors, it can be tricky during extreme situations.<\/p>\n\n\n\n For example:<\/strong><\/p>\n\n\n\n CoinPoker automatically calculates the gas price with a formula that takes the median value based on the last thousand transactions. This amount is then applied to the withdrawal, which has proven to be effective and accurate in the past. That is, when network fluctuations are within the expected range.<\/p>\n\n\n\nHow Your CoinPoker Deposits and Withdrawals Work<\/strong><\/h2>\n\n\n\n
\n
Transactions on the ETH Network Explained<\/strong><\/h2>\n\n\n\n
\n
What Are Ethereum Smart Contracts?<\/strong><\/h3>\n\n\n\n
\n
What is Gwei and Why Do I Need It to Transfer CHP?<\/strong><\/h3>\n\n\n\n
Is there a difference between gas and Gwei?<\/strong><\/h4>\n\n\n\n
<\/figure>\n\n\n\n
\n
What is the Ethereum Virtual Machine?<\/strong><\/h3>\n\n\n\n
Recent CoinPoker Withdrawal Delays Explained<\/h4>\n\n\n\n