[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance


View post   

File: 73 KB, 658x662, 1509025019367-b.jpg [View same] [iqdb] [saucenao] [google]
4265204 No.4265204 [Reply] [Original]

Easiest way to make your own ERC-20 coin?
I need for a University project and I don't have a big budget (10-20$)
I can do it myself for free or I need advanced programming skills?

>> No.4265218

I need a coin with 0 decimals and
5.000.000 market cap
If someone can do it for free I will airdrop here a few times :)

>> No.4265233

you need a pajeet

>> No.4265246

>>4265204
Its actually really easy dude, I will help you

>> No.4265275

Give me 10 mins I will do it for you

>> No.4265288

Use Google and please never come here again

>> No.4265306

Give me an email

>> No.4265312

>>4265246
Give me an email pls

>> No.4265314

pragma solidity ^0.4.16;

interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }

contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it. I set it to 0 per what you asked.
uint256 public totalSupply;

// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;

// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);

// This notifies clients about the amount burnt
event Burn(address indexed from, uint256 value);

/**
* Constrctor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/

>> No.4265325

function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = initialSupply * 5000000 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
name = tokenName; // Set the name for display purposes
symbol = tokenSymbol; // Set the symbol for display purposes
}

/**
* Internal transfer, only can be called by this contract
*/
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to]);
// Save this for an assertion in the future
uint previousBalances = balanceOf[_from] + balanceOf[_to];
// Subtract from the sender
balanceOf[_from] -= _value;
// Add the same to the recipient
balanceOf[_to] += _value;
Transfer(_from, _to, _value);
// Asserts are used to use static analysis to find bugs in your code. They should never fail
assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
}

/**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}

(one more after this)

>> No.4265328

Fogaras455@gmail.com

>> No.4265335

Going to be one more after this, actually

* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/
function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough

>> No.4265348

require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Subtract from the targeted balance
allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance
totalSupply -= _value; // Update totalSupply
Burn(_from, _value);
return true;
}
}

Thats it for a deployable ERC20 token with 5,000,000 market cap and 0 decimals.

Good luck with your assignment.

>> No.4265391

Please Write me an Email at fogaras455@gmail.com
If someone could make it for me I will send him 10$ and 500 Erc-20 coins :D

>> No.4265395

>>4265328
Fuck, you should really stop giving out your email so much man. One google search and I know your whole life story.

>> No.4265419

>>4265391
>>4265395

Not only that, I just gave the kid the fucking code and he does not even say thank you

>cunt/10

>> No.4265536

Ethereum Address : 0x631393AdAC6240D195DcE15DE98961463d32Fc1a

Coin Symbol : FGX
Coin Cap : 5.000.000
Decimals : 0

If someone makes the token for me I will send him 10$ worth of ETH

>> No.4265686

I am not good at coding at probably if I would copy paste the things you guys writed here I would still fuck it up...

>> No.4265703

I can pay 10$ just somebody create this for me

>> No.4265771

Lmao at this

>> No.4265937

>>4265703

sent ;)

>> No.4265979

>University project
>Someone spoonfeeds him code
>doesn't say thank you and continues to ask someone else to do it for him

You deserve to fail your course and I bet you will.