Ethereum Archives - Scaleswap Web3 ACCELERATOR & IDO Launchpad Thu, 08 Sep 2022 11:09:54 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.2 https://landing.nonprod.scaleswap.io/wp-content/uploads/2022/09/fav_sca-150x150.png Ethereum Archives - Scaleswap 32 32 ETH vs WETH Explained: What Is the Difference Between Ether and Wrapped Ether? https://landing.nonprod.scaleswap.io/blog/eth-vs-weth/ https://landing.nonprod.scaleswap.io/blog/eth-vs-weth/#respond Thu, 19 May 2022 13:18:14 +0000 https://newblog.scaleswap.io/?p=1142 If you have been following the cryptocurrency space, you might have noticed that there are specific cryptocurrencies that feature the […]

The post ETH vs WETH Explained: What Is the Difference Between Ether and Wrapped Ether? appeared first on Scaleswap.

]]>
If you have been following the cryptocurrency space, you might have noticed that there are specific cryptocurrencies that feature the letter “W” in front of them.
This means that the token is “wrapped”. To make this as simple as possible for you to understand, we will go over the main differences between a wrapped token and one that is not.

WETH vs ETH

Ether (ETH) is the native cryptocurrency token that is developed as a means of powering the Ethereum blockchain network. This means that it is built on top of it and runs through it.

However, when a decentralized application or dApp gets developed on top of the Ethereum blockchain, there is typically a token that accompanies it.

For example, Bancor has the BNT token, 0x has its ZRX token, and Civic has its CVC Token. Well, Ethereum has its ETH cryptocurrency.

Wrapped Ether (WETH) is a token that is directly pegged to Ether (ETH). The need for WETH was created when the popularity of decentralized applications (dApps) increased.

ETH as a token couldn’t be used across a variety of different decentralized finance (DeFi) use-cases, and as such, the token needed to be wrapped up in an ERC-20 token standard.

This means while WETH is equivalent to ETH in terms of value, if a user aims to use ETH within different custom dApps, they need to convert it to WETH. The need for this was created due to the fact that Ether (ETH) was created before token standards were, which means that it is not fully compliant with the ERC-20 token standard, which significantly hinders its use-cases in DeFi.

What Is the ERC-20 Standard?

ERC-20 is a token standard developed after the ETH cryptocurrency was released.
This token standard essentially defines how the tokens can be transferred and how a consistent record can be kept of those that transfer tokens within the Ethereum network as a whole.

It is also a standard used for the creation and issuing of smart contracts, which are used to create tokenized assets that people can invest in.

How Do Wrapped Tokens Work?

Wrapping a token might not be what you initially think. This is because you are not wrapping a token but trading it instead. Specifically, you are trading your ETH token, through the utilization of smart contracts, for another token called WETH.

At the point in time when you want to get back your ETH tokens, all you have to do is simply trade your WETH tokens for ETH tokens. This is possible because they aim to maintain identical values.

What this means is that wrapped tokens are cryptocurrencies that are pegged to the value of another original cryptocurrency asset and made to function on the DeFi platforms available throughout the crypto space. The original asset gets “wrapped” into a digital vault, while the new token is minted and created to enable it to transact on other platforms.

How Do You Convert Ethereum to Wrapped Ethereum?

Before you can get Wrapped Ethereum (WETH), you will first need to buy Ethereum’s native cryptocurrency token, Ether (ETH). You can do so through the usage of a centralized exchange or through the usage of a decentralized exchange.
At the point in time when you get ETH, you can wrap it by trading ETH to WEETH.
To do this, you will need to have Ether (ETH) on a cryptocurrency wallet, such as the Metamask wallet, for example.

You can then connect your wallet, which in this example is Metamask, to a decentralized exchange that is built on top of the Ethereum blockchain network. One of the most popular decentralized exchanges that you can use is Uniswap, which will enable you this functionality.

Here is everything that you need to do, step-by-step.

  1. Open up Your Web Browser and Navigate to Uniswap

Visit the official Uniswap website, after which you will be able to connect your wallet.

  1. Connect your Wallet

Click on “Connect Wallet” on the top-right corner of the screen, after which you can connect your Metamask wallet. If you do not have the wallet installed, you can click on “Install Metamask.”

  1. Select the ETH and WETH cryptocurrencies
    You will now need to select ETH for the asset at the top and WETH for the asset at the bottom, as seen in this image example.

You can then write down the amount of ETH that you would like to trade and click on the “wrap” button in order to complete the swap.
Here, a pop-up notification will appear from the wallet you are using, which will give you an estimation of the gas fees, as well as the total transaction account. All you have to do in this case is confirm the transaction, and you will find that WETH will appear in your wallet soon after.

How Do You Unwrap WETH?

As previously mentioned, when you are wrapping Ether (ETH), you can think of it more as a procedure where you are simply trading one town for another. What this means is that if you have WETH, you can unwrap it and get back ETH by doing the procedure again, but this time selecting WETH at the top and ETH at the bottom of the selection screen.

You will have to confirm the transaction from your Metamask wallet or any other wallet you are using and pay the gas fees again, so keep that in mind.

How Do You Unwrap Ethereum on OpenSea using Metamask?

An alternative way through which you can unwrap your WETH is through the utilization of the OpenSea marketplace, as well as the Metamask wallet.
To follow this procedure, you need to have:

  • A Metamask wallet
  • An OpenSea Account
  • WETH in your OpenSea wallet

If everything is in order, these are the steps that you need to take to complete the process.

First, you will need to navigate to the official OpenSea website, after which you will need to Sign In to the account that you have created there. Then, you need to click on the wallet icon, which should be located on the right corner of the screen by default.

Here, you will find three dots located next to the WETH balance there. You will also find a button that is called “Unwrap.” Click on that option, and after your request gets processed, you can confirm the transaction through the Metamask wallet that you have connected.

Conclusion

Hopefully, now you have a heightened level of understanding when it comes to the main differences surrounding ETH and WETH and can easily wrap and unwrap your cryptocurrencies within minutes. 

Remember that this procedure can be completed in any decentralized exchange that supports both cryptocurrencies and that gas fees need to be paid each time you engage in this procedure.

The post ETH vs WETH Explained: What Is the Difference Between Ether and Wrapped Ether? appeared first on Scaleswap.

]]>
https://landing.nonprod.scaleswap.io/blog/eth-vs-weth/feed/ 0
What Is the ERC-20 Token Standard and Why It’s So Important for Ethereum https://landing.nonprod.scaleswap.io/blog/what-is-the-erc-20-token-standard/ https://landing.nonprod.scaleswap.io/blog/what-is-the-erc-20-token-standard/#respond Sat, 14 May 2022 14:58:13 +0000 https://scaleswap.io/blog/?p=988 Ethereum blockchain developers use the ERC-20 standard as a set of common guidelines to streamline the network and interaction among […]

The post What Is the ERC-20 Token Standard and Why It’s So Important for Ethereum appeared first on Scaleswap.

]]>
Ethereum blockchain developers use the ERC-20 standard as a set of common guidelines to streamline the network and interaction among dApps. The purpose of this article is to embrace Ethereum token standards, describe the prominent ones, and explain the key features, focusing on ERC-20.

What is a Token?

A token is a digital certificate that guarantees a Web3.0 project’s obligations to its owner, comparable to a stock on a stock exchange, but with some nuances. 

Think of amusement park tokens. Coins with the park’s emblem, bought at the cash desk, can be used to ride on the merry-go-round, have fun at the shooting gallery, or eat ice cream. Park visitors purchase tokens with real money, but tokens are only valid within the park.

Blockchain-based projects issue their own unique tokens. The buyer of a token can, for example, increase the amount of storage in its database. Or, if a company’s tokens are essentially its digital shares, leave them until better times in the hope that they will go up in price.

What are Token Standards?

A token standard is a set of common guidelines developers follow to minimize the product development cycle. Let’s have a look at a specific example to understand token standards closer.

Imagine Bob wants to turn off Wi-Fi. To do so, he clicks on the Wi-Fi icon and then on the switch. The network is off, and Bob is happy. But what happened behind the scenes? The device’s operating system ordered the system controller to power off the Wi-Fi chip. Bob can do the same thing: directly command the system controller to turn off the Wi-Fi power.

Operating system developers and Wi-Fi chip manufacturers ensure that any chip will understand any operating system command and not force the user into a console. Similarly, token and application developers make sure any token can understand the commands of any blockchain application. Parties negotiate standards and then use them for new products.

The same happened to Web3.0 developers. Basic standards like ERC-20 include several standard-specific functions to deal with transactions. A quick example, so you understand. Each time you click the Send button in Metamask or any other Web3.0 wallet, your wallet accesses the transfer function. If the token developer calls this function differently, the wallet will not be able to work with such a token. Developers stick to specific methods, events, and functions to avoid confusion and scale the network’s interoperability. More about ERC-20 functions later in the article.

Ethereum Token Standards

Ethereum is a widely-adopted blockchain, which implies many different startups launch and keep building on Ethereum. The issue is every project might have its own priorities and goals. The system obviously needs flexibility, but it also requires an order to keep working properly.

List and Description of Ethereum Token Standards

The Web 3.0 technologies evolve and so does the code. Several years ago, developers were satisfied with relatively simple Transfer and Approve functions, but these are not enough for DeFi, NFT and GameFi anymore. A clear example would be NFT technology. To implement NFT, developers needed to make new token standards like FA2 on Tezos and ERC-721 on Ethereum. Major gaming, metaverse, and DeFi adoption waves on Ethereum can entail even more standards like ERC-777, ERC-1125, and ERC-4626.

What Is ERC-20 Standard? 

ERC-20 sets some specific guidelines in stone for all fungible tokens on Ethereum. As a result, developers can keep building without worries. Imagine what could have happened if developers wouldn’t know how a new token launched operates, what to expect, etc. Instead of worrying, developers can forecast the possible outcome and act accordingly.

What Does ERC Mean?

ERC is short for Ethereum Request for Comment. Let’s break down what that means. Since Ethereum is an open-source network, a new technical standard can be proposed by any user through the community voting procedure. Users basically review someone’s code and leave comments, just like any social media, but the goal is to make those guidelines technical and improve the code.

Developers can initiate voting through Ethereum Improvement Proposal (EIP). Once other community members confirm EIP, it becomes ERC. If the proposed standard solves some important problem and other community members agree with a proposal, they can vote to make this proposal an official standard within the Ethereum ecosystem.

Why Was ERC-20 Created?

The Web 3.0 coding community mainly sticks to Solidity programming language because it has similarities with more popular languages like C++, JS, and Python, which have large communities willing to learn something new like blockchain technologies. As a result of this snowball, many blockchain startups are built on Ethereum. 

But how do all these programmers build dApps and co-operate in terms of code? Vitalik Buterin thought ahead and pushed the idea of ERC-20 — the most prominent standard for Ethereum tokens at the moment. Nowadays, Ethereum developers all around the world can code and understand each other easily when it comes to Web3.0 dApp creation.

A particular feature of ERC-20 is a number of requirements that must be met for a token to be accepted and networked. Both amateur and advanced developers stick to the ERC-20 token standard, as it has lots of initial offering study cases, a broad coding community, and an expansive adoption rate.

Tokens built in tune with a specific set of established & approved functions are called ERC-20 tokens. These tokens are similar to other crypto assets, meaning users can store, trade, and transfer them. 

You can learn more about the ERC-20 token standard by watching this video.

What Are the Features of ERC-20?

Developers can easily interact with contracts, ecosystems, blockchains, and teams — all due to a set of features ERC-20 brings. Regardless of the core ideas, technical creativity, and innovations, smart contracts govern all ERC-20 tokens, which are a part of the Ethereum ecosystem. If you want to dive into the technical details of ERC-20, such as methods and events, make sure to visit Ethereum’s official page related to the EIP-20 proposal.

ERC-20 Logic and Rules

ERC-20 tends to make tokens as interoperable and widely used as possible. A developer may embed unique token-related mechanisms within a smart contract. However, there is a chance the contract functions well, but other developers and smart contracts can’t access it using universal logic.

Imagine that you created a set of gaming items, tying your native token to each game piece, and want players to trade on your marketplace. However, the marketplace can’t handle the features of your contract. Your marketplace requires a different smart contract to come along with your native token. What can you do to solve the issue? Set the standard.

Each ERC-20 token has a specific structure. Its code comprises two parts — the interface to “talk” with applications like wallets and the contract itself to execute the code. The code has to contain six specific functions: 

  1. Total Supply
  2. Balance Of
  3. Transfer
  4. Transfer From
  5. Approve
  6. Allowance

If you’re interested in details, have a look at this walk-through coding manual.

ERC-20 Core Functions

The technology provides several parameters for smart contracts. Six of them are considered mandatory, and three are discretionary yet recommended.

Here is the list of mandatory parameters:

  1. totalSupply: required for the total issue of digital assets, ensuring that no new ones can be created when the maximum is reached.
  2. Balance0f: required to determine the initial number of assets that are assigned to a particular address of the ICO organizers.
  3. Transfer: required to guarantee the transfer of assets to end-users.
  4. transferFrom: required for payment transactions users initiate.
  5. Approve: required to verify the possibility of the smart contract, based on the issuance in general, the distribution of digital coins.
  6. Allowance: required to verify that there is enough balance at a particular address to send digital assets to another address. 

Want to learn more about the ERC-20 code architecture? Make sure to check out this Medium digest.

How to Deploy an ERC-20 Token? 

If you want to launch your ERC-20 token, you have to set a smart contract built on the Ethereum blockchain. We won’t touch much coding in this article, but generally, you can deploy a contract in two ways: 

  1. Launch ERC-20 with coding experience
  2. Launch ERC-20 without coding experience

Launch ERC-20: Coding Experience Required

Use the Solidity programming language to get started with a Testnet smart contract.

  • Enter your Metamask and choose any Testnet available or add a network of your choice
  • Head to a network-specific faucet to get some ETH for your Testnet 
  • Pick any Ethereum IDE and open a new Solidity file
  • Write/paste a piece of Solidity code into your script
  • Fill out empty fields and set the number of initial offering tokens, total token supply, your token’s ticker, etc. 

Learn more about coding behind smart contracts

But what if you’ve never coded? Read on!

Launch ERC-20: No Coding Experience Required 

Even though ERC-20 token creation is essential, it’s not your one and only objective to build a Web 3.0 startup. Hundreds of crypto startups are launched worldwide every day, but just a few garner attention and bring actual value. If you want to break through the remnants of shattered startups, you have to solve a whole range of tasks, from creating a long-lasting token and economics to marketing and technical clearance.

Once you deploy your ERC-20 token, It might be challenging to attract the liquidity necessary for token stability. Incubators like Scaleswap provide significant opportunities to create your ERC-20 token, raise funding, launch, and develop a project — all in one place. In addition to attracting high liquidity, Scaleswap helps projects build sustainable tokenomics, promote their vision, and communicate with communities through the proper channels at the right time. As a result, money, and expertise circulate seamlessly, pushing projects above and beyond.

ERC-20 Issues & Other Standards

Even though Ethereum is a battle-tested blockchain, the ERC-20 has some drawbacks:

  • Auto-execution. Any ERC-20 transaction is considered complete when the money is successfully transferred. If a smart contract does not support the ERC-20 standard, the auto-execution feature can cause a significant loss/freeze of funds.
  • BatchOverFlow vulnerability. Hackers may exploit ERC-20 contracts through token manipulations like unreasonably large token generation and overflooded market as a result, causing the dump. This exploit has become less popular, as many developers have already built a protective fence against hackers. 

ERC-721

You probably heard of non-fungible tokens (NFT). Most of them use the ERC-721 standard, but what exactly is it?

ERC-721 was the first standard for non-fungible tokens. It’s a legacy standard for Solidity smart contracts. Users can create new ERC-721-compatible contracts by importing them from the OpenZeppelin library. ERC-721 provides methods to track the owner of a unique identifier and transfer the asset.

dApps that use the ERC-721 standard record ownership data for objects on the blockchain (digital money or other dApps). This is done by “tying” the object to a unique owner number. With the ERC-721 standard, you don’t need to trust a third party because you can make sure everything works as intended because all the information is freely available on the blockchain. The dApp only performs its assigned functions and can’t change anything.

ERC-721 Features

  • ERC-721 tokens are non-fungible
  • ERC-721 is NFT-specific 
  • ERC-721 is compatible with EVM chains like Binance Smart Chain and Avalanche
  • ERC-721 shares common methods and events with ERC-20 but also has a unique metadata function

ERC-777 

ERC-777 is designed to enhance the ERC-20 standard. It’s one of the recent standard proposals on Ethereum.

ERC-777 Features:

  • Uses the same philosophy as most Ethereum standards
  • The TokensReceived function eliminates the need to call a function twice, which is still true for ERC-20
  • TokensToSend function is related to a contract/address rejection and helps users to take control over their assets
  • Users can authorize/revoke operators to handle the tokens 
  • ERC-777 transactions have userData and operatorData byte fields.

ERC-1155

The idea of this standard was suggested by the developers of the Enjin project in 2018. Enjin is a project that seeks to simplify the creation of games on Ethereum. Therefore, the standard they propose is worth considering first as a gaming standard, although its application is not limited.

ERC-1155 brings the idea of semi-fungible tokens and also provides an extended feature set for ERC-721, which means that an ERC-721 asset can be built using ERC-1155. Unlike ERC-1155, where the unique ID represents a single asset, the unique ERC-1155 token ID represents an entire asset class. ERC-1155 also has an additional field to represent the number of instances of the class that a particular wallet owns. Assets of a particular class are alike and the user can transfer any number of assets.

ERC-1155 Features

  • Developers can issue multiple tokens within a contract
  • Both NFT and fungible tokens within a contract 
  • Atomic swap support
  • Batch transaction support
  • Not all transactions are sent at the end of the block (no need to wait)

Ethereum Token Standard and Its Future

Not far off the day when the first Ethereum genesis blockchain was mined. ETH has evolved into the most dominant altcoin by market capitalization, popularity, and usage in recent years. It has become the most prominent blockchain platform used by many decentralized applications.

The ERC-20 and ERC-721 (NFT) token standards have significantly contributed to the network’s development. A set of common guidelines, logic, and simplicity were the main reasons the network gained popularity and formed a community of programmers pushing the ETH adoption above and beyond. 

Programmers develop and improve technologies every day, creating a snowball effect. Not long ago, Yearn.finance team figured out how to use a brand new ERC standard called 4626. This tokenized vault feature can unlock innovations within the Ethereum DeFi. Other essential standards are built and polished daily, so the Ethereum blockchain and its token standards have every chance to thrive in the future. 

How Many ERC-20 Tokens are Available?

As of April 2022, more than 500,000 ERC-20 tokens are available. This number grows significantly over time, as more developers work with Ethereum.

What are ERC-20 Token Examples?

Ether (ETH) is the most famous ERC-20 token. Another vivid example is the Scaleswap (SCA) token. Here’s the list of other ERC-20 assets:

  • ERC-20 stablecoins: USDC, Terra USD and TrueUSD
  • ERC-20 Exchange tokens: Huobi, FTX, OKB, and Crypto.com 
  • ERC-20 EVM blockchain tokens: Polygon, Avalanche, Fantom, and Harmony 
  • ERC-20 DeFi protocol tokens: Uniswap, Compound, Bancor, and Yearn.finance 
  • ERC-20 Metaverse tokens: Decentraland, Sandbox, Illuvium, and Gala 

The post What Is the ERC-20 Token Standard and Why It’s So Important for Ethereum appeared first on Scaleswap.

]]>
https://landing.nonprod.scaleswap.io/blog/what-is-the-erc-20-token-standard/feed/ 0