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
1 answer
10 views

GoFundMe Contract: Minting "Thanks" over time vs all at once & "Thanks" token value

I was assigned to write a smart contract for class (to be deployed on a test-net), which, upon receiving ETH, returns to the sender some amount of tokens with symbol "Thanks". I want this ...
Alex Byard's user avatar
0 votes
0 answers
16 views

Smart contract question [closed]

Can you see some scam in this contract?Try to figure out what's gonna here.. // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; abstract contract Context { function _msgSender() internal ...
TonyPak's user avatar
0 votes
1 answer
22 views

I am experiencing issues when trying to transfer funds on the Polygon mainnet

When I use the Polygon testnet to transfer tokens, it works fine. However, when I use the mainnet, an error occurs. Upon checking the contract methods on the mainnet, I notice that it lacks transfer ...
Solider's user avatar
0 votes
1 answer
15 views

Trying to issue ERC 3475 tokens

I'm trying to issue ERC 3475 tokens from a relatively simple contract using Remix. The contract compiles and deploys when gas is optimized, but when I try to issue the tokens I get an error of "...
Xavier83's user avatar
0 votes
0 answers
20 views

Return the current ERC20 token holders and number of tokens held

Are there any free APIs available that can provide current data on ERC20 token holders and the number of tokens they hold ?
Alexander Paul's user avatar
0 votes
1 answer
14 views

Send selected token (the one you deployed) with web3js

How to send a transaction of a token that I have in my wallet other than the default one like ether in Ethereum without a contract method just with web3js?
seojunchian's user avatar
0 votes
1 answer
22 views

How to send a token other then eth with metamask without extension of course?

I wanted send token other than eth with metamask using code but I did a little bit of research couldnt find anything. Do you guys know anything about that? I checked metamask docs site too didnt find ...
seojunchian's user avatar
1 vote
0 answers
20 views

Calling Mint And Change Balance From Another Smart Contract

My Project is about a Token in which the Holder can disable their token at the Old Address and Receive a New Minted token. It uses 2 different contacts. I put the functions in the BBB contract and ...
Suka Kasu's user avatar
0 votes
0 answers
16 views

preventSwapBefore token contracts

I'm looking for a way to determine to determine tokens' contract private state variables such as _preventSwapBefore, or _reduceTaxAt, etc... Theese variables or often in token's contract, but in ...
Newly Sama's user avatar
0 votes
0 answers
13 views

How to add 5% buy and 5% sell fees to live-token?

I want to add 5% Sell and 5% Buy Fees to a token contract on Remix The Token is already live, so i just want to update it from 0% to 5%. But the numbers are all in uint256, what is the correct number ...
LoveAngel's user avatar
0 votes
0 answers
7 views

Tips for creating a liquidity pool in Pancake Swap

dear friends I need the advice of my dear professional friends on this site in several areas, please advise and guide me in all areas. The first part is, what is the best strategy for financing a ...
Ali's user avatar
  • 63
0 votes
0 answers
22 views

Token holdings I need help with the contract im the owner of both wallets the send and receiver

I sent my tokens to another wallet that I own and somehow a contract intercepted it and my tokens are in holding. I believe I can get them back it’s just really confusing to r we the contact and I don’...
Cat's user avatar
  • 1
0 votes
1 answer
60 views

Token with whitelist function, that would only whitelisted addresses to trade the token while trading is disabled

I want to create a token and add liquidity but only whitelisted addresses would able to trade the token while trading is disabled. If trading is enabled that means everyone can trade it but if it is ...
ccurves's user avatar
  • 133
0 votes
1 answer
34 views

Approve function called by an address in a smartcontract different from the token contract

I would like to know if an address can give approval to spend his tokens to another address or contract by calling the function approve in the same contract (not the token contract but another). Thank ...
biel Serrat's user avatar
0 votes
1 answer
33 views

I have problem with deploying my token to Goerli testnet

I have an issue with deploying smart contract on Goerli network. When I trying to run the contract I get Error Error HH100: Network goerli doesn't exist Here is example of my code // SPDX-License-...
Victor's user avatar
  • 13
0 votes
1 answer
14 views

BPT value underlying

In Balancer, and the type of pools that work with yield tokens like Stable WETH-rETH, when getRate() gets called for the value of BPT, which output is in WETH,... ...does that BPT's value comes with ...
dNyrM's user avatar
  • 711
0 votes
2 answers
42 views

Help needed: ERC20 token "BIGTIME" sent to ERC20 smart contract that accepts USDC, BTC, ETH, MANA

Recently there was a launch of a token called "BIGTIME" (ERC20) from Bigtime Studios (web3 game) listed on a DEX, which I bought tokens from and transferred to the games smart contract to be ...
Intermediate's user avatar
0 votes
2 answers
41 views

Calculate BPT price onchain

What's a safe way to calculate the onchain the price of a Balancer's BPT token? More specifically, from a Composable Stable Pool (if the clarification of the pool makes the calculation different). For ...
dNyrM's user avatar
  • 711
1 vote
1 answer
31 views

Is there a way that we can mint native coin more in ethereum?

I mean if i have my own private evm chain. the intial supply for it is, assumingly, 10000 coins. after starting the blockchain can I create more coins for that. Like minting and burning works for ...
Hammad Ali's user avatar
1 vote
1 answer
117 views

Identify if a token contract was deployed using Create2

Is there a way to analyze a token contract and determine if it was created using Create2?
ether_explorer11111's user avatar
0 votes
1 answer
31 views

Approval question

Beginner question: I have trusted wallet with 1000 LINK erc20. I want to swap it to get USDT erc 20. It ask to approve the LINK. How long approval takes? In some time after I got the USDT, I wish to ...
shem's user avatar
  • 3
0 votes
1 answer
30 views

Perplexing issue: Ownable: caller is not the owner'

i am a new developer and i am struggling with an issue since two weeks now and can't get to the bottom of it. Here is some context: I have two smart contracts, one minting an NFT and the other issuing ...
Brandas's user avatar
0 votes
2 answers
90 views

ERC20 token smart contract check

I updated my smart contract code according to the explanations you gave and the instructions you gave. Please, if possible, check the rewritten code again and give your general opinion, is this smart ...
Ali's user avatar
  • 63
0 votes
2 answers
23 views

Why there are few transaction before the Contract Creation txn?

Does anyone know in this smart contract (see screenshot below) why there are few transaction before the smart contract creation txn? It seem like this smart contract was previously a normal EVM wallet ...
jojo12's user avatar
  • 1
0 votes
2 answers
156 views

Batch Token Swap using 0x

I'm trying to make a telegram bot that sells all the tokens available on a wallet using Ox API. In order to automate the process with only command, I'm okay with adding the private key to the script. ...
Liju Thomas's user avatar
0 votes
1 answer
26 views

How should I integrate my ERC-20 Smart Contract into the existing cryptocurrency ecosystem?

I've created my own cryptocurrency based on the ERC-20 Smart Contract on the Ethereum blockchain. I want my currency to have the same functionality as Tether USDT, for example. To be more specific: I'...
Valentin's user avatar
0 votes
1 answer
19 views

Using the Freeze functionality as a user in the BNB contract

In the BNB contract there is the Freeze and UnFreeze functionality. As I have understood, this doesn't allow Binance to freeze users’ balances. Instead, it allows any user to freeze and unfreeze their ...
Bart DV's user avatar
0 votes
0 answers
18 views

Treating two assets as equal in a smart contract that aren't equal

I am auditing a protocol that creates a token yETH representing a basket of liquid staking tokens such as rETH and stETH. I noticed that the protocol treats yETH as if it is 1:1 with ETH when it's ...
auditor_chick's user avatar
0 votes
1 answer
26 views

I want use own ERC20 token to buy things

I create my own erc20 token and transfer into the metamask. Now I want to use for purchase things which i am listing on the website .For example ,i made a shop where different things are avaliable . ...
Rizwan Ali's user avatar
0 votes
2 answers
35 views

Can a function call itself?

Can a function call itself...specifically, I am looking at this code and I can't figure out how this could work properly...the parameter vault would be the first parameter in the line that calls ...
auditor_chick's user avatar
0 votes
1 answer
35 views

Why is there only one USDT which PoS?

In Polygon wheneer I deal with USDT, it's always PoS. There's no ordinary USDT - without PoS remark, though. Are all USDT in Polygon PoS ones? Or are there other types too? Or did there use to be ...
Nondi's user avatar
  • 49
0 votes
0 answers
12 views

How to find common address between certain tokens?

How do I find a common address between let's say COIN 1, COIN 2 or COIN 3 sellers and buyers? searching through Etherscan or similar explorer site can take hours and hours. Any tool where we can put ...
Sportsmanship's user avatar
0 votes
0 answers
33 views

smart contract obfuscation

Can anyone assist me in identifying the obfuscation method or tool used for this smart contract? I've searched everywhere, but I did not find any tool or method for smart contract source code ...
nomad's user avatar
  • 1
3 votes
2 answers
149 views

Why are the Aave V2 supply and borrow index rate calculations done differently?

I have a question about the math in Aave V2 that performs the update liquidity and borrow index. This question was also asked and unanswered in the Aave Governance Forum. I see calculateLinearInterest ...
Mike's user avatar
  • 101
0 votes
0 answers
37 views

why can't use Apostrophe( ' ) in token Name,

Polygon explorer/ etherscan explorer why can't use Apostrophe( ' ) in token Name, And if I did the explorer shows "&#39"; instead Apostrophe. eg.(cat's = cat+ "&#39"+ s) ...
Jayasurya J's user avatar
1 vote
1 answer
16 views

VM Exception while processing transaction: revert while buy token

I built a token based on ERC20, when I try to buy tokens I get this error In the truffle console Quinn.deployed().then(function(ins){token=ins}) QuinnSale.deployed().then(function(ins){tokenSale = ins}...
Mizanur Rahman Sohan's user avatar
2 votes
1 answer
106 views

Best practices for staking contract which redistributes variable stablecoin input (cash flow)

I need to develop an Staking contract which allows users to: Stake their tokens Claim rewards Unstake their tokens (no more rewards afterwards) I have been researching about different examples like ...
Alexander Herranz's user avatar
0 votes
2 answers
102 views

Get multiple ETH transactions

I'm a little new to Web3, and in NodeJS I'm trying to create a deposit-aware system. Today I'm doing the following: ETH Transactions: Get it through getBlock, and check whether the "to" of ...
Alison Silva's user avatar
0 votes
2 answers
18 views

What are the standard solutions to enable new users to interact with a DApp contract for free without gas fees?

I'm developing a decentralized application (Dapp) where new users receive a free NFT upon registration. I want to allow these users to list their NFTs for sale without requiring them to have any ...
kat N's user avatar
  • 1
0 votes
1 answer
34 views

Gas cost on mapping

I'm reading docs on Venom and they said that the problem on using mapping in ERC20 contract is "Now let's imagine that we have an erc-20 like mem-token contract with one large hashmap of token ...
dang.pm.IT's user avatar
0 votes
2 answers
39 views

How to transfer push tokens from mainnet to goerli?

I swapped my Eth in mainnet to get push tokens in Mainnet. I need to use these tokens to create a channel in staging app of PushProtocol. However, when I switch to Goerli network on Metamask on which ...
Ferda-Ozdemir-Sonmez's user avatar
2 votes
1 answer
34 views

Transfer tokens to and from smart contract [closed]

I would like to have a new ERC20 token and one or two smart contracts to do automatic trade with specific cryptos. Example: I can buy 1 token from the contract in exchange for 1 USDT. I can sell a ...
Roger that's user avatar
2 votes
1 answer
457 views

How to sign a transaction using metamask or other wallets in nethereum

I searched a lot on the internet and in the documentation, but I still haven't found the answer to my question. I want to know how to sign a transaction through an external wallet using the nethereum ...
Ali's user avatar
  • 63
1 vote
1 answer
25 views

Is this method technically and logically correct?

I am implementing a practice project on the topic of token pre-sale. Currently, I have created the project in such a way that, for example, a user who is going to participate in the token pre-sale ...
Ali's user avatar
  • 63
0 votes
2 answers
52 views

I bought a token the amount appear in bscscan but not in pancakeswap

0 I bought a token; the token amount appears on bscscan.com but not in the pancakeswap. The token has a 100/100 rate on the token sniffer website. this link is the token contract: https://bscscan.com/...
mrcoet's user avatar
  • 15
1 vote
2 answers
357 views

How to get address of deployed smart contract in hardhat

I have two files, Token.sol and Token.js for Testing:- Token.sol // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; import "hardhat/console.sol"; contract Token{ string ...
Shubham's user avatar
  • 13
1 vote
0 answers
47 views

Airdrop Contract with Merkletree for Addresses

I am trying to create a simple airdrop contract that handles a batch transfer of ERC20 tokens from one address to a list of address in a merkletree. I am struggling to figure out whether or not the ...
OhItsPM's user avatar
  • 75
0 votes
0 answers
16 views

Multible Transactions right after opening Trade or Method 0x110bbd8d

I've been looking at the latest pairs on dextools.io lately and I've noticed that it's becoming more and more common that even when the trading pair is only a few minutes old, there are already ...
krop42o's user avatar
0 votes
2 answers
38 views

Does anyone know why this still reverts?

So, I'm trying to test an underflow of test ERC20 tokens, but even if I remove all the require checks of the EIP20 (ERC20) file, when I transfer 1 test token from the contract to an address (the ...
AndyCrypto's user avatar
1 vote
0 answers
165 views

How to track ERC20 token creations on Ethereum blockhain with web3.js using Infura API?

I'm trying to fetch new ERC20 tokens from the blockchain transactions, my code is scanning the blocks and when I tried to log transactions it works well, (dumping bunch of logs). However I don't know ...
RasmonT's user avatar
  • 131

1
2 3 4 5
49