Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [erc-223]

For questions regarding the use of tokens using the ERC223 standard.

0
votes
1answer
15 views

why do ERC223 supporting contracts need to maintain the token list

I was going through ERC223 and read that contracts which are supporting any erc223 token contract should maintain the list for them so that they can accept only those tokens. Is that the correct ...
1
vote
1answer
20 views

Will ERC223 Tokens work after Serenity Update?

Trying to understand what we should expect after External Owned Accounts will be treated as Contracts after second Serenity update will be live. How does it influence ERC223 Tokens, will they break ...
1
vote
1answer
75 views

Solidity 0.5.2 - OpenZeppelin - New SafeERC20 callOptionalReturn(token,data)

i've been trying to mix ERC20 functionality with ERC223 function overloading technique and create a bridge for backwards compatibility using SafeERC20. For relevancy sake i renamed SafeERC20 into ...
0
votes
1answer
26 views

Difference between ERC20 and ERC223

i still don't get the idea behind the "if you send 100 ERC20 to a contract, they're stuck there and these 100 ERC20 are lost forever".. i really don't get.. like, a contract has an address and a ...
2
votes
1answer
31 views

Update Solidity - 0.5.4 (ERC20 + ERC677)

I'm trying to create an ERC20 Token that can send Tokens to a Receiver Contract similar to how ERC223 does and i decided to try ERC677 but i can't understand how to update this code to match Solidity ...
0
votes
1answer
26 views

Is there any Reentrancy attack in given code snippet? If yes then how can I fix it?

function withdrawForeignTokens(address _tokenContract) onlyOwner IsAuthenticate public returns (bool) { ERC223Interface token = ERC223Interface(_tokenContract); return token.transfer(...
0
votes
1answer
18 views

Why we use 1000 to divide our fees?

function transferToAddress(address _to, uint _value, bytes memory _data) internal returns (bool success) { require (_to != msg.sender && _to != address(0)); uint fee = ...
1
vote
1answer
51 views

Contract that converts ERC20 token into a new ERC223 according to specific exchange rate

I did some research but I couldn't find anything so specific. I would like users that own a specific ERC20 token to be able to use it to buy an ERC223 token generated by a contract according to ...
0
votes
0answers
21 views

How to accept tokens coming to my contract address and withdraw it on my Owner address in ERC223 token standard smart contract?

I want to withdraw tokens which are coming from different contract addresses, on my Owner address. I am working on ERC223 token standard and solidity version 0.5.1;
0
votes
1answer
37 views

I want to withdraw amount from Receiver Contract's tokenFallback() function in ERC223 how to implement this scenario?

I am using ERC223 standard token transfer contract and receiver contract which includes tokenFallback(). I've transferred tokens from my ERC223 contract to receiver's contract address, now I want to ...
0
votes
1answer
31 views

ERC223 Token doesn't transfer while working with data field in transfer() function

Instead of showing tokens the output shows Internal transactions or just contract interactions. what changes are needed to transfer tokens to any other ERC223 receiver contract? function transfer(...
2
votes
1answer
169 views

What does the assert() indicate here?

Here is code snippet, function transfer(address _to, uint _value, bytes memory _data, string memory _custom_fallback) public returns (bool success) { if(isContract(_to)) { if (balanceOf(...
0
votes
1answer
93 views

remix ERC223: This contract does not implement all functions and thus cannot be created

I can't implement ERC223 contract. remix said " This contract does not implement all functions and thus cannot be created." please tell me what bad it is. pragma solidity ^0.4.25; library ...
3
votes
2answers
36 views

ERC standard that allows sending tokens from many origins to one destination in one transaction?

I know that any kind of operation over a token is possible so long as you implement the smart contract that achieves what you desire. For example, a function multisend can be developed that allows ...
2
votes
1answer
35 views

Is it possible to check the Thrid party token ( USDT ) within my ERC223 contracts?

I want to check how many tokens are received in my contracts, so that I am able to allocate MY TOKENS to the TOKEN Sender. I tried several ways like approveAndCall, but its not working. I don't ...
0
votes
4answers
158 views

Which one should we use ERC-20 or ERC-223

we know that there is new update for ERC20 that is ERC-223 now wich one should we use ?
2
votes
0answers
32 views

Can one store short text data when transacting ERC20 tokens? [duplicate]

I am having trouble understanding if i can store short pieces of text when I send an ERC20 token. I have successfully stored a small message when transacting ETH by converting it to HEX and adding it ...
0
votes
1answer
27 views

What does this error mean and can someone please provide the answer? It keeps saying Parser error on the burn function

Click Here for the image. ` pragma solidity ^0.4.25; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { ...
0
votes
0answers
122 views

Calling ERC223 both transfer functions fail

Given the contracts below (unnecessary code omitted), my tests fail when trying to call the ERC20 transfer() or ERC223 transfer() functions. Why is this happening? Both give Error: VM Exception while ...
1
vote
0answers
156 views

ERC223, drawbacks and exchanges still not supporting it? Should I just use HasNoTokens?

I know it has been discussed many times and in many articles on ERC223, for replacing ERC20. We are launching our tokens and hopefully ICO soon too, it seems that we should go for ERC223, since more ...
1
vote
1answer
227 views

Is it possible to send ERC20 tokens to a smart contract that is written to accept payments..?

I have ERC20 compatible token that is already deployed in the ethereum main-net. I have a requirement to accept these tokens as payment, And this is going to be a new contract, The below are my doubts....
0
votes
0answers
37 views

How to get exact conversion of amount of Erc223 token transfered?

I have used web3js to get block. After this, i get erc223 token transaction and its Input data. From Input attribute, i got receiver address and also number of tokens transferred. But such tokens are ...
0
votes
1answer
75 views

Is It possible, do not mine ERC based token on the time of deployment in Ethereum test or private Blockchain

I am new to ethereum block-chain.I have created ERC based token (smart contract).I successfully deploy it on ethereum local private block-chain. When I will deploy smart contract token on rinkeby ...
1
vote
0answers
370 views

Why is etherscan showing ERC223 tokens as ERC20 [closed]

I created one token (ERC223) in mainnet using Remix and I tried to search that token address in etherscan.io but it's showing token type as ERC20. Can you please explain why it shows up like this?
0
votes
1answer
112 views

What value pass in argument of transfer function of ERC223 Token

I am implementing a ERC223 token.I successfully deployed ERC223 token on local block-chain network block-chain. transfer function solidity code is:- function transfer(address _to, uint _value, ...
0
votes
1answer
124 views

Can anyone freely call the `tokenFallback()` function in ERC223?

Since the function seems to always be implemented as public, can't an unfair user just call the tokenFallback() function of a receiver contract? That way one could let contracts believe that they ...
0
votes
0answers
82 views

What's the most user friendly way to accept ERC-20 tokens deposits?

We want our exchange users to be able to deposit and withdraw erc-20 tokens. My current idea is to provide a new deposits address to each user where they can send their tokens. The alternative would ...
0
votes
0answers
105 views

Safe ERC223 Token with reentrancy protection?

I have this token sketched up for ERC20 compatible wallets, with the ability to send tokens to contracts via the tokenFallback receiver handler. pragma solidity ^0.4.23; library TokenMathLib { ...
1
vote
1answer
56 views

Can a token be required when interacting with a smart contract instead of Ether?

When creating a smart contract in which a user must provide payment, can an amount of a token be required instead of Ether? Could you enable a user to have an option between Ether or a token?
1
vote
2answers
381 views

Differenciate ERC20 / ERC223 / ERC677 Tokens

Are really mind blogging! I am having difficulties to check which version of Token I am handling when I am creating a new contract. How can I easily tell the token that I need to transfer is ERC20 ...
0
votes
2answers
78 views

limit number of token in one address ethereum

Is it possible to create a token that each ethereum address can not exceed 100,000 token. If the token amount exceed the 100,000, it will "overflow" and retrieve the transaction. Thank you
2
votes
2answers
686 views

Is it possible to create ERC223 token that is ERC20 backwards compatible

I'm going to use ERC223 token, but worry about backward compatibility with ERC20. Here are questions that bother me: Two different Transfer events: 3 args ERC20 Transfer(address indexed _from, ...
0
votes
1answer
40 views

Is there a performance penalty towards creating the maximum number of tokens with ERC-20 etc?

I saw this link: Max possible ERC20 Tokens allowed with 18 decimals? Is there a performance penalty for creating so many tokens? Obviously the number of storage capacity needed for mining will be ...
1
vote
1answer
134 views

Transaction fails if the called function is not found

Trying to set a token fallback sort of function here. Main problem: if the receiver has code but does not include the specific function I try to execute it fails. Any way to call an external function, ...
1
vote
1answer
215 views

How to implement user deposits for tokens for an exchange

If we generate new deposit addresses for every user we face following problems: - we need to transfer tokens from individual wallets to our exchange wallets - we need to fund the wallets with ether to ...
2
votes
0answers
97 views

ERC223 Transfer Arguments

There are 2 transfer functions in Dexaran's ERC223 contract. One includes data and the other one doesn't. Does this mean we should choose one transfer function to use in our contracts and ignore the ...
1
vote
1answer
258 views

How to implement function() tokenFallback and decode the parameter bytes _extraData

I want to use the ERC223 approveAndCall() || ERC677 transferAndCall() functionality in a contract. I can take the _extraData string x="0xe359292df082828f595466de72062f2a1182b077",["...
3
votes
1answer
227 views

How can a receiver contract know the original sender with an ERC223 tokenFallback?

When we make a token tx to a receiver contract, the sender has to use the transfer function in the token contract first before being able to send the tokens to the receiver contract. Sender --> Token ...
0
votes
1answer
167 views

An overview of fungible Ethereum Token standards/proposals?

Beside the well known EIP-20, we have a number of other proposals for fungible tokens. Each of them addressing a different set of requirements. [Q] Is there an overview of fungible Token standards/...
0
votes
2answers
431 views

How to make function signature? ERC223 ContractReceiver

Hi what does these lines mean? function tokenFallback(address _from, uint _value, bytes _data) { ... uint32 u = uint32(_data[3]) + (uint32(_data[2]) << 8) + (uint32(_data[1]) << ...
7
votes
0answers
804 views

How to implement the ERC777 token standard?

Does anyone know how to correctly implement the new ERC777 token standard? I've been trying to create an ERC777 contract (see code below) but keep struggling with a couple of things. According to ...
1
vote
2answers
129 views

When creating a new “Coin”, which ERCs should one consider checking out?

When I created a simple coin as a proof concept, I just used ERC20 (Token Standard). Right after creating the contract and showing it to some colleagues, I found out that I should've implemented ...
1
vote
2answers
330 views

ERC223 and money loss

I am trying to understand what money loss case the ERC223 standard is trying to solve. If you send 100 ETH to a contract that is not intended to work with Ether, then it will reject a transaction ...
0
votes
0answers
502 views

Can't get crowdsale to execute transfer (buy tokens)

i'm trying to do a a test crowdsale of an ERC20+ERC223 Token but I can't get the crowdsale to work. I can however interact with the token's functions. The token contract is deployed seperately from ...
2
votes
3answers
2k views

How does this code from ERC223 standard implementation work?

Here is a code snippet from the ERC223-token-standard. function transfer(address _to, uint _value, bytes _data) { // Standard function transfer similar to ERC20 transfer with no _data . // ...
1
vote
0answers
543 views

How to create custom ERC20 wallet into my app , to send and receive my tokens?

We have an app for rewards and would like to have a functionality for users to exchange or transfer there tokens to each other. Is there a way i can add that into my app?
5
votes
1answer
849 views

ERC223 tokenFallback function doesn`t work

I try use ERC223 token and I want understand how is it work. I use recommended realization of this standard Dexaran This is code of ERC223 token. pragma solidity ^0.4.15; import './ERC223_interface....
1
vote
1answer
103 views

How to call variadic function in erc223 contract

There is two transfer function in my contract, And i m trying to call transfer function of erc223 for transfer token to contract address using this function. Token.deployed() .then(function(i) { ...
0
votes
1answer
372 views

ERC223 gas savings?

I was curious after reading this article how ERC-223 protocol for token accomplishes this: ERC20 vs ERC223. List of differences Energy savings. The transfer of ERC-223 tokens to a contract is a one ...
3
votes
1answer
680 views

ERC223 backwards compatibility with ERC20

I agree with most of the ideas behind ERC223 and it fits closer with what I think a token should do. However, the ERC20 backwards compatibility story is not flawless. I've searched around for ...