Questions tagged [tokens]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Checking if address previously sent token to adddress

I am developing a function that allows a user to mark another one as a scammer, this will be later displayed in a webapp. To do this, i need to know if the user (address) previously interacted (sent ...
0
votes
1answer
104 views

WETH solidity smart contract for use as address in other contract

In the constructor of the Solidity contract given in the link below https://github.com/pancakeswap/pancake-swap-periphery/blob/master/contracts/PancakeRouter.sol receives a second arg which is address ...
0
votes
1answer
27 views

I accidentally sent all my tokens to a token contract. Can I get them back?

I accidentally sent my tokens to this token contract, is it possible to get them back? 0x33E6Ad33255890e79cE1431FE142e1F3bC1fbEc3 Thanks!
1
vote
0answers
90 views

How would I collect fees from an liquidity pool on pancake swap?

I understand that to start collecting fees you need to add liquidity to a pool e.g. BNB/BUSD Liquidity pool. So I have a smart contract that uses the uniswapv2 interface to add liquidity to the BNB/...
0
votes
1answer
603 views

Token Price from pancakeswap

Actually i was wondering how to retrive the price of a low cap token from pancakeswap without having to use sites like poocoin/dextools directly. I understood this, U can use the pancakeswap api here,...
0
votes
1answer
45 views

How to get amount of token0 and token1 deposited by me using uniswap v2 API?

Using uniswap, I want to check the amount of token0 and token1 deposited by user. For instance, user created pair Token0/Token1 in Uniswap. First, user input amount of Token0 and Token1. When start ...
0
votes
1answer
176 views

Understanding BSC, BEP-20 and ERC-20 tokens

I would like to ask a few questions. If we have an ERC-20 smart contract deployed on Ethereum and if we want to move it to binance smart chain because of high transaction fee, what is the best move ...
1
vote
0answers
15 views

Minimum transaction value on token in solidity

Is there a way of setting a minimum transaction value on token in solidity? The point is that for transaction (purchase) to happen, the value has to be of some equivalent of ETH (say 0.2). Always. ...
0
votes
0answers
34 views

How much does it cost to send all tokens to a liquidity pool?

I'm creating a token, and will create a liquidity pool on pancakeswap with a BNB pairing. If I have 20 billion tokens, and send them all to the pool with a price of $0.0000001/token. How much would it ...
1
vote
1answer
205 views

A Lottery Solidity Smart Contract that accept erc20/bep20 token instead of ether to enter the lottery

function enter() public payable { require(msg.value > .01 ether); players.push(msg.sender); } Change this function to accept erc20/bep20 token to enter the lottery
1
vote
0answers
35 views

Creating an openzeppelin-contracts-upgradeable Smart Contract

I have created a smart contract with the "standard" openzeppelin library for an ERC721 token (It has not been deployed yet). I would like to make my contract upgradeable. Can I simply ...
0
votes
1answer
53 views

Should I limit the amount of tokens a person can buy/sell per transaction/per 24 hours

I'm creating a token and want to solve the big whale issue of pump and dump, or just the dump problem. As such, I thought about limiting how much an address can sell per transaction or per 24 hours. ...
0
votes
1answer
26 views

How to access already deployed Smart Contract using Java?

I would like to get information about token. For example total supply and so on. For this I need the contract. However what is the way to actually load it/access it from Java? Checking examples in ...
1
vote
1answer
2k views

Scam input token cannot be transferred on Uniswap

I've been seeing this pop up quite a bit recently. Scammer creates a ERC token with the name of something popular - Shiba or Kishu. Adds alot of liquidity to the pool but once you buy the token you ...
1
vote
1answer
19 views

Could Ethereum support decentralized and not-for-profit stock markets, futures markets, etc?

A lot of the discussion I've heard around crypto seems to fixate on the currency aspect. However, to truly decentralize the global economy, it seems to me like you'd have to also decentralize the ...
0
votes
0answers
157 views

How to transfer ERC721 token to address from the smart contract?

I am working on a smart contract (OpenZeppelin ERC721), where trades can be created by only the owner of smart contract, and then regular users can buy them. When owner creates a trade, a new ERC721 ...
1
vote
1answer
33 views

Would it be possible to create a token that you can mint on-demand?

Is it possible to create a token that you can mint on demand? Some possibilities might be to allow a specific wallet to execute the minting command, or to set the price ahead of time, or to use other ...
1
vote
1answer
73 views

How to Add a Function to an Already Deployed Smart Contract

I have already deployed a contract on Binance Smart Chain. I now would like to add time lock functionality to this contract to lock some of the tokens for a time period. I know that smart contracts ...
0
votes
1answer
25 views

Adding token image into smart contract [duplicate]

can we directly add the token logo to the token smart-contract so that we can visualize it in Wallets and Exchanges and so that we don’t have to register it in another way Please help erc20 token ...
2
votes
2answers
179 views

How to set custom icon to custom token?

👋 I had created a bep20 token contract and deployed it on the BSC testnet. But as it is a new custom token, so it has no icon. I had a hard time finding a way to set the custom icon to the custom ...
0
votes
0answers
114 views

Fail with error 'TransferHelper: TRANSFER_FROM_FAILED' when transfer to other wallet

I was able to make a first transaction since I needed to send my tokens to DxSale, I need to send a small amount to DxSale, I am trying from Metamask but now it does not allow me to make any ...
0
votes
0answers
116 views

Emergency Metamask Withdrawal - Fastest & Easiest Way to Withdraw Tokens From Metamask (You're Being Hacked)

I recently was hacked and had all of my tokens stolen, from a variety of chains (ERC20, BEP20, Matic, Wanchain). This made me realize how poor of a system I had in place, because I had realized that ...
1
vote
1answer
112 views

Save Tokens from Metamask with Stolen Seed Phrase

I got phished into sending my Seed Words to a hacker. I already lost some ETH I had there. I will be getting some tokens on the 29th of May, and I fear the hacker might also steal them. I was thinking ...
1
vote
1answer
148 views

What is the difference between Pegged token and Wrapped tokens?

As the question in the title: is the pegged token and wrapped token the same thing? From my understanding - it is? Both are tied to a particular cryptocurrency in order to maintain its value across ...
1
vote
1answer
29 views

Help with Error generated creating Token. I posted a screenshot of error

I took a screenshot of the error that was generated. Someone please help me resolve this. Thank you. Code: 1 pragma solidity ^0.8.0; 2 3 import "https://github.com/OpenZeppelin/openzeppelin- 4 ...
2
votes
0answers
21 views

How the price of a token is defined?

Already read this How is the price of a token determined on Etherscan? but still not understand how a new fresh token is priced. I mean .. I just create a token named "ABCD" with 1.000 of ...
1
vote
1answer
38 views

What was the first coin to offer “reflex” and auto-adding liquidity?

Who was first? I see these features being forked on a massive scale. I would like to know who was first and where to find GitHub repo (ideally with tests) so I can play with it. SafeMoon SafeMoon ...
0
votes
1answer
20 views

How to increase balance constantly?

I'm trying to create a token that holders can earn some amount contantly by a certain rate. Don't want to depend on transactions to give tokens to holders. An idle contract must constantly do it. Is ...
0
votes
0answers
46 views

How can I interact with smart contract

So I found scam smart contract which allows to approve only when you are owner. function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "...
1
vote
1answer
24 views

Can someone explain me this part of White Paper?

I want to know what this para means, more clearly and with more detail. " Theoretically, Ethereum-based token systems acting as sub-currencies can potentially include another important feature ...
0
votes
2answers
53 views

Bridge between Ethereum networks

I’m interested in building a bridge between Ethereum Mainnet and Ropsten testnet. The user will send USDT/ETH to the mainnet contract and will receive tokens on Ropsten(and the other way around). What ...
3
votes
0answers
84 views

What are the mechanics of token reflection? [duplicate]

I'm trying to understand the mechanics behind token reflection. This bit here seems to be what most of the ERC20 Tokens having the reflection mechanic are using: https://github.com/reflectfinance/...
1
vote
0answers
41 views

Need advice on creating an nft smart contract which hatches/changes into a new final image after some time!

So I want an egg hatching nft, imagine a pokemongo egg and after some time has passed, the egg hatches into a new image which will be the final image of the nft. Does anyone know of any ideas of how ...
0
votes
0answers
21 views

Storing custom data in an ethereum based token?

I have an idea for a cryptocurrency with features that require storing and entering custom data related to accounts into the network. So the network would need potential to store balances/currency ...
2
votes
1answer
33 views

Transaction with multiple contract “send” requests

Recently we were trying to create an application that allows the user to buy an NFT using an ERC-20 token (let's say for these purposes it's a stablecoin like DAI or USDC). So from figuring everything ...
0
votes
0answers
41 views

How to get liquidity Address on panckswape

Im trying to learn about create token in BSC. Now Im trying to add liquidity by contract, but i dont know the address of my liquidity pool that I created in panckeswap. Where can i take it? Thanks
0
votes
2answers
48 views

Can an ERC20 Smart Contract prevent a wallet from holding more than a certain amount?

I'm looking into a bit of functionality for an ERC20 smart contract token that would prevent any one wallet to hold more than X percent of the token. Couple of questions: Is it possible? Is it ...
1
vote
0answers
63 views

Uniswap WETH_WBTC price is orders of magnitude off when using constant product market maker formula

I am trying to calculate the value of an exchange on Uniswap using Web3js and methods from the Uniswap smart contract. This is the Uniswap contract address for the WETH (Wrapped Ether) : WBTC (Wrapped ...
1
vote
1answer
25 views

If i can deploy an ERC 20 to an exchange and sell it is it technically free money?

Can you deploy an erc 20 token to an exchange? Can you sell your own erc 20 for money? Is this free money because when you deploy it, it gives you all the erc 20 to your address.
2
votes
0answers
27 views

Why is my rebasing token balance changing over time?

I bought some tokens for my wallet and noticed the quantity changes very slightly over time. I’ve seen this happen with several tokens, Im not sure why. Is this related to the way the getbalance ...
0
votes
0answers
12 views

EIP20 Token creation error in REMIX :Error encoding arguments: Error: invalid address

Im new to creating tokens and I'm having a problem with this code of EIP20 :
1
vote
0answers
28 views

parsererror source file requires different compiler version (current compiler is how to fix this error

I am new to this and was able to successfully compile and deploy a token onto the BSC mainnet using the following code but now I am trying to make some adjustments and re deploy but now I am not even ...
0
votes
1answer
28 views

Update Account Balances ERC20

Are there are any design patterns or gas efficient methods of mass updating user balances (for ERC20 tokens)? For instance, say I wanted to run a casino where, after Block number X, all of the ...
0
votes
1answer
27 views

Maximum allowed amount of tokens

I would like to create a token which any wallet cannot hold more than 100 of. Is this possible while this token, also is mintable?
1
vote
1answer
20 views

What happens to the ERC-20 tokens that are “migrated” (e.g. to VeChain); do the ERC-20 tokens remain at the original address?

I'm asking for the mechanical explanation of what happens to the ERC-20 token data at the original address; post migration to a new chain. For example, if I had 100 LivePeer (LPT) ERC-20 tokens at ...
2
votes
1answer
395 views

approve + safeTransferFrom ERC721 from existing smart contract

I am trying to call ERC721 from another smart contract, while calling function approveAndTransfer ,I am getting "ERC721: transfer caller is not owner nor approved", not sure reason behind it,...
0
votes
1answer
30 views

Tokens transferred to contract by mistake

I transferred some tokens to this contract 0xd0507b66A2d4C4593a54B0fa45cBAaAC2Bb04CEA and the creator of this contract is 0x102f8471d87d3Ef344af9Bd5c0845ca0A7a1d397, and I was wondering how to get my ...
0
votes
0answers
9 views

How to search for event in when an input should be the 5th topic in event

I want to query an ERC1155 token event where I know the token Id, there only can be 4 topics and tokenId would be the fifth,which means it's not an indexed input and goes to the data part. How can I ...
7
votes
1answer
1k views

Binance Smart Chain tokens: What are tTotal, rTotal, tSupply, rSupply, rOwned, tOwned which I see everywhere?

Looking at all the latest shitcoins' Smart Contract code on Binance Smart Chain, there's a lot of common,recurring themes because most of each project's code is mostly copy-pasted. The code is also ...
0
votes
0answers
11 views

Use ERC165Checker library function in web3

As I understand the ERC165Checker library provides the _supportsInterface function which takes a contract address and an interfaceId and returns whether that contract has the specific functions. How ...

1 2
3
4 5
37