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 [tokens]

A token is a transferable, divisible object on the blockchain, such as a subcurrency or a prediction market share.

0
votes
0answers
12 views

Which blockchain is more suitable for Security Tokens release

There are a lot of blockchains. Ethereum was the most used for issuing tokens for ICO. Now there are STOs which have their own requirements and functionality. Will Ethereum will still be good for ...
0
votes
0answers
16 views

How to flush token to another contract from token holder's token balance from ERC-20 contract?

I have to implement the following scenario: - One ERC-20 token contract. - Another contract which will flush tokens of ERC-20 tokens. - Add these tokens to one, defined Admin address. Note: All ...
-1
votes
1answer
20 views

How can a company be benefited using utility tokens? [on hold]

Are there any profits for a company having ERC 20 tokens, if the token price gets hiked?
1
vote
1answer
14 views

onERC721Recieved implementation

As per the ERC721 requirements, I have to implement onERC721Recieved. This is how I did it: function onERC721Received( address _operator, address _from, uint256 _tokenId, ...
1
vote
2answers
15 views

How to convert smallest unit of ERC20 with less than 18 decimals to full coins without rounding errors?

I can just use web3's fromWei function for all token that have 18 decimal places but I'm not sure how to convert token to full token without having to worry about rounding errors. For example convert ...
0
votes
1answer
41 views

Multi token transfer issue [on hold]

In exchange contract,With multi token when I call approve function from exchange contract, nor my address and spender get approved. Instead only the exchange address and spender gets approved. Its ...
0
votes
1answer
24 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(...
1
vote
1answer
48 views

Is it possible for a smart contract to relay raw signed transaction

I am rethinking the flow for token transfer and confirmation on the network (ERC20,ERC721...). I am unaware of a way presently to: 1- transfer tokens and 2- trigger a call in different contract, ...
0
votes
1answer
23 views

What DSAuthority(0) and eos.owner() means and does?

In ERC20 EOS crowdsale contract, what these three lines(469-471) does? function initialize(DSToken eos) auth { assert(address(EOS) == address(0)); //[Someone explained this line here][...
1
vote
2answers
32 views

Smart contract that receives only one token

Is it possible to forbid to a smart-contract to receive all erc20 tokens and ether except my own token that was created in another contract? I mean I want my contract to receive only tokens from ...
1
vote
1answer
27 views

Token real synchronization from my website

I like to integrate a real token synchronization (From distributer wallet account to user's wallet address the token need to transfer) in my website. My website needs to interact with the blockchain ...
0
votes
0answers
8 views

ERC 998 ERC 721 Top-down: Can child tokens affect the status of the parent

I'm trying to make a DAPP, which involves using an ERC998 Top-down. I want to introduce a status on the token, and status has 2 options (ACTIVE and INACTIVE) I was wondering, is it possible to ...
0
votes
0answers
21 views

Multisignature wallet for ERC20 tokens

I am developing my own multi sig wallet, however I am new here, so I don't have good understanding of how does the exchange ERC20 <=> ETH work 1. How to get BNB coins? As I understand, for ...
0
votes
1answer
23 views

STO using Ethereum

Is anyone here worked on STO using various ERC protocols. Need to get some information about it. Regards, Divansh
0
votes
2answers
46 views

Transfer ERC20 Token feeless

Is there an existing Smart Contract implementation, which can public signed transactions of ERC20 Token transfers? I like to give the users of a ERC20 token the ability to pay the transaction fees in ...
0
votes
1answer
20 views

problem calling balanceOf from another contract

I try to learn solidity and i have a problem. I've created a base token and i want to call the balanceof method from this token in another contract. In Solidity Remix i get : call to BaseTokenBet....
1
vote
3answers
24 views

Schedule an execution of a function in Solidity [duplicate]

I am new to solidity and to smart contracts, i couldn't find a great resource describing how the execution of a function in the future really work behind the scenes and how to implement it. I'd ...
1
vote
1answer
35 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
0
votes
0answers
14 views

What does endCliff and endVesting time means in PolyMath contract?

What does vesting and cliff exactly means in smart contract and blockchain terms. Here I've added code snippet: if (_supply == AllocationType.PRESALE) { AVAILABLE_PRESALE_SUPPLY = ...
0
votes
0answers
9 views

Can I send an ERC-20 token to my users even if though I have 0 ETH?

Let's say I have USDC erc-20 token and I want to send it to my user's ETH address. But I have 0 Eth. Can I send it? If not, what methods are there to bypass that requirement of having to always have ...
0
votes
1answer
26 views

What does this following entity exactly means in this PolyMath contract?

Here I've added code snippet which is I'm learning right now. The following terms/ entities/ variable are not understandable why exactly it means and why it is used. - Founder, Advisor, Bonus1/2/3, ...
0
votes
1answer
27 views

VM error: invalid opcode while trying to execute buy function on Remix IDE

I am using following code for custom token on ethereum. pragma solidity >=0.4.22 <0.6.0; contract owned { address public owner; constructor() public { owner = msg.sender; }...
0
votes
1answer
29 views

Can use smart contract as payment gateway [closed]

Most suggest that cannot use ERC20 token as payment gateway integration .Why?
0
votes
1answer
22 views

Can i call transfer function in other contract?

can i call ERC20 token's transfer function in other contract? like transfer AToken from using BContract's function can I?
0
votes
0answers
13 views

Transfering tokens from Mulisignature wallet

I have a multisignature address, say X. This multisignature is done by a contract for transferring eth. But I have purchased some tokens(ERC20), how can I transfer tokens. I am confused because I ...
0
votes
0answers
23 views

Token transfer failed - Reverted

i trying transfer tokens ERC20, but all my transactions failed - Reverted. Example "0x4fe5b29d3fabaac6bc7b82574ab7f2a6d024134ca927fa9315e824c74c3d1364" But i trying with "MetaMask" and transaction ...
0
votes
1answer
77 views

Initial ERC20 Token supply split into 2 or more hardcoded addresses

don't know if someone can help me, but let me explain my problem. For more transparency in my ERC20 token generation smart contract, I want to hardcode the Team Pool (0xA) and Crowdfunding Pool (0xB) ...
0
votes
1answer
13 views

tokens within tokens in ERC20

I want to make a token on ERC20 and that would be staked, and other token would be rewarded as on interest earn. After certain time, that earned token being staked, and third token will came out as on ...
1
vote
1answer
10 views

Is there a token standard that allows the owner of an address to move the tokens in any account under certain conditions?

I am wondering if there exists a token standard (much like ERC-20) that allows for the owner of an address to transfer the tokens out of any address when certain conditions are met? For example, ...
0
votes
1answer
23 views

Can we freeze amount of token, amount of time with smart contract code?

Is there a smart contract code to freeze amount of token amount of time. For example i have 20 ether, with a smart contract code can i freeze it 1 year, even i can not touch it? With that code our ...
1
vote
1answer
30 views

What is the difference between these 2 smart contracts?

I noticed some smart contracts have there name,symbol, and supply set up like this example #1 and setup a defined constructor. Notice, they did not fill in the "string public symbol", "string public ...
1
vote
2answers
19 views

What is the difference?

I noticed some smart contracts have the wallet address of the creator in the smart contract to send the tokens to the wallet like example #1: Example #1: constructor() public { symbol = "...
0
votes
1answer
25 views

Can't create child contract in mainnet?

address[] child; function createChildContract() onlyOwner public{ address newChild = new Child(msg.sender); child.push(newChild); emit ChildCreated(newChild); } contract Child { ...
0
votes
0answers
18 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;
1
vote
1answer
22 views

How to use own custom token instead of gas price in ether? [duplicate]

I want to make my token and want that the token should be used as gas price. Is that possible,if yes please guide me for the same.
0
votes
0answers
15 views

Token Swap in ERC1400

Any idea about the swapping of tokens under ERC 1400. If anyone knows pleas e share some references documents for the same
0
votes
0answers
21 views

cannot retrieve token price

i am trying to code a decentralized application and what i am trying to do right now is to get the token price of 1000000000000000 and display it. but when i try to get token price i keep getting 0. ...
1
vote
1answer
11 views

Smart Contract Tokens and exchanges?

Is there any special code you need so your token can be traded on exchanges example Binance? Right now its a pretty basic contact like Fixed Supply token. Or is it as long as the exchange(...
0
votes
0answers
18 views

Myetherwallet Balances?

I was testing on (Ropsten) Myetherwallet, everything was fine yesterday morning, then that evening, my balances (Ropsten Ether and Tokens) would not show. I was getting "(error_21) Not a valid ERC-...
0
votes
1answer
17 views

Minted Crowdsale vs Non Minted Crowdsale

I am exploring openzeppelinr-solidity smart contracts for Initial Coin Offering(ICO). There are two options available for a token smart contract one is to have hardcoded total supply tokens or mint a ...
1
vote
0answers
16 views

Secuirty Token Escrow setllement

Is Esrcow could be applied in ST 20 tokens ? If yes, please guide for the same.
0
votes
1answer
28 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(...
0
votes
0answers
20 views

Approve/TransferFrom Methods

During an Audit I got a warning for this code lines: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval double-...
0
votes
1answer
24 views

How to pass arguments to token smart contract generator?

I'm trying to build a 'token generator' smart contract that accepts 3 arguments to then deploy a new token smart contract with those inputs ('strings' for symbol, name, 'address' for owner). I am a ...
1
vote
0answers
16 views

Ethereum based settlement engine

What do you meant by settlement engine in ethereum? I need a payment settlement engine that to be based on ethereum for cryptos and security tokens. Is the same as escrow ? Any open source link for ...
2
votes
1answer
28 views

ERC223 and ERC827 can receive erc20 tokens and call a function immediately?

As the title says, is that possible? For example on my ico contract, I accept USDT erc20 token and when I receive each transaction, call a function for that and send that address my tokens or eth.
0
votes
1answer
7 views

Function inside constructor is called from which address?

interface token { function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);} contract CampaignFactory{ token public token_instance; constructor()...
0
votes
1answer
39 views

Can we add conditiond in constructor?

I want to know, can we add conditional parameters in constructor. Just for example, in constructor if we have UINT for numberOfTimesAllowed = 1; EDIT I am trying to get balance of user msg.sender ...
0
votes
3answers
32 views

How to check tokenBalance of some other contract in my contract

I am looking to check token balance of some other contract into my own contract to see how many tokens of that contract are owned by my user. Is this possible? If yes how to achieve it? I tried this ...
0
votes
1answer
15 views

Ethereum Smart Contract with Custom Fee and Percentage of the collected Fee Distrusted token holder

I wanted to know is there a possibility to create a smart contract for a token wherein the transaction fee could be overridden with the network fee and the fee collected on the transaction can be ...