Questions tagged [staking]

The tag has no usage guidance.

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

Stake / Unstake ZRX

In August last year I staked about 1500 ZRX and received a little ETH, Attached is activity log. But since October I've received no rewards and I can't un-stake / re-stake. When I click move / ...
0
votes
0answers
20 views

I need guidance on building a staking smart contract for my ERC 721 NFTs

I have written a smart contract in solidity using remix that will mint ERC721 NFTs. I now want to write another smart contract that will stake the NFTs. My code for the minting contract is below, any ...
1
vote
1answer
23 views

How are contracts allowed to transfer ERC20 tokens from a different contract?

Sorry if my question sounds a bit vague, but I'm looking at writing an NFT staking contract that will allow holders of the ERC721 token to transfer those tokens in return for our ERC20 token. There ...
1
vote
0answers
6 views

How does POS protocol handle the case where Staking node is offline

How does POS protocol handle the case where Staking node is offline and was chosen by consensus algorithm as the next block creator. Will the task be delegated to some other node? Let's say the node ...
0
votes
0answers
20 views

ERC20 : problem with transferFrom

I am trying to make a staking application DApp and I am facing this problem when I launch the DApp: Obviously, it's a problem of balance, this one is not enough big. I red this link too: https://...
0
votes
1answer
33 views

Can an ERC-20 token's contract be modified after initial offering?

If a custom ERC-20 token is initially issued, can its solidity code be modified for all existing holders and circulating supply to include a new function? For example, you issue ERC-20 token in ...
0
votes
0answers
20 views

Governance Voting Power based on staking

I am using openzeppelin Governance contract i want to made some changes in terms of "how to calculate the voting power" I want to calculate voting power like that VP = T * M Where: ● VP is ...
1
vote
1answer
33 views

How are transfer prevented of a token?

Was read through Solidity staking source codes, something left me quite puzzled. dappToken.transfer(recipient, getUserTotalValue(recipient)); The code above is the line of code to transfer the reward ...
0
votes
0answers
8 views

What if the unstaking time is shortened to several minutes?

I am wondering What if the unstaking time is shortened to several minutes? not several days or weeks? Is there any problem with it?
0
votes
0answers
27 views

Is there any trustable contracts on bsc that I can stake or invest the the stable coin?

I'm developing a smart contract with solidity that users send a stable coin (for example usdt) to it and get other tokens. This stable coin would be held in contract for the time user wants to ...
0
votes
0answers
257 views

Staking ERC20 Token: external contract and burn function

I’m trying to understand how to create a staking token. My purpose is to create a token, in which the user can stake the token and earn interest in the token itself. We can have two ways to implement ...
1
vote
1answer
39 views

Code for staking Ethereum

Ethereum enabled staking for anyone with a minimum of 32 ETH. Where can I see the code of their staking protocol? Is it a .sol file? Is it a contract address whose code is viewable on Etherscan? ...
0
votes
1answer
68 views

ERC20 Unstaking function not working

I am building a staking contract that accepts an ERC20 token set by the owner. contract ECommerce { IERC20 token; .... token = IERC20(**"I insert the token address here"**); Here ...
0
votes
0answers
16 views

Staking (and farming yield) with small amount ETH - where to?

I'm a simple hodler with a small amount of ETH (~4) and I wanted to earn some via staking. I did my research and came to the conclusion the most profitable options would be: to stake via Lido (or ...
0
votes
0answers
9 views

Basic difference among time lock, staking, hodling, liquidity pooling?

Can some one make me to clear with this keywords in short. In the process of learning block chain technology I got stuck and confused among this terminology. I got some basic understanding between ...
0
votes
0answers
26 views

How do i allow our users to stake their NFTs for our EC20 utility token

Sorry if this question has already been asked somewhere, but I’ve been searching for some time now and still can’t get a straight answer about this. Basically I’m looking to allow the users who ...
0
votes
0answers
14 views

Had Coinbase directly connected to 0x staking and I think I lost all my accumulated ZRX and ETH

Apologies if this is not the right place to ask, but I'm at my wits end. I had started staking my ZRX about 10 months ago by directly linking it to my coinbase account (I did not install the coinbase ...
0
votes
1answer
58 views

Issues removing stake from 0x

When on the 0x website in the staking portion, I can see all my data. When I click the remove button, I get the modal popup asking if I'm sure. I click the "I understand, remove my stake" ...
0
votes
1answer
267 views

How does contracts with staking mechanism work?

I'm building a dapp where users must stake x amount of my token to use the dapp, but I'm stuck. Do I have to create LP TOKEN and get LP pair address so all the staked token on my dapp will go to that ...
0
votes
1answer
21 views

Operator == not compatible with types address and function () view returns (address)

So i have this code that im debugging and so far i managed to get rid of all the errors but this one persists no matter what i do,maybe someone with more experience can see the problem clearly because ...
0
votes
0answers
10 views

Staking an ERC20 with another value associated

I'm working on something and I already have an ERC20 pattern token with staking capabilities. I need to make a contract that activates this staking function and associates the staked value from that ...
0
votes
0answers
35 views

can I change loop logic to an alternative logic in this staking contract?

I built a staking contract that allows users to enroll in auto compounding through a function that is basically adding the user address to an array UserList Now for auto compounding I have these ...
0
votes
0answers
9 views

hardware requirements to run 2000 validators

I plan to take part in ETH 2.0 staking. What could be HW requirements for server running TEKU node with 2000 validators.
0
votes
0answers
64 views

Ethereum TX not sender - Returned error: invalid sender

I want to create a DApp by staking pools of Stake BNB Earn MyToken tokens. I've been looking for some references but I'm still confused, that's why I decided to ask. I have the following lines of code ...
0
votes
1answer
59 views

Update rewards per second

I'm currently working on a staking contract and would like to get EVERY SECOND the updated number of rewards the user gets for staking tokens. Are there any technical limitations to get the updated ...
0
votes
1answer
31 views

Harvest yield farming - how do some assets have 10k+ APY?

Currently there are some assets on harvest.finance with crazy apy rates. How is this possible? Are these scams?
0
votes
0answers
49 views

What happens if the slashing protection history/database is a little outdated?

When a machine (machine A) with a validator running on it is dying for some reason, I would start it on another machine (machine B). To avoid slashing, I have to copy the slashing protection history (...
0
votes
0answers
30 views

Calculating daily compound interest without loops

I have a staking contract where the APY rate gradually increases over time. e.g. 1st day earns 1% second day earns 1.1%, third 1.2% etc. It stores the start rate at the time of stake (amount of tokens ...
0
votes
0answers
22 views

Deposited more than 32ETH into deposit contract. Anything to retrieve the 32 - additional eth deposited?

Good day, I have deposited accidently 64 ETH into the deposit contract twice (Same validator key provided by mistake). Is there anyway I can retrieve this additional ETH deposited? Or assign it to ...
0
votes
1answer
109 views

Staking contract based on time: we're trying to avoid looping on all the stakeholders

we are building a staking smart contract on the ethereum mainnet. All the stakes will need to have a timestamp attached to it, so our logic relies on time. The logic is at the end of the month each ...
0
votes
1answer
19 views

smart contract information issue

Hi I was scammed by troncase, I want to know how to get my original staking out of the smart contract. it is asking me for a userAddress_address, last_uint256, first_uint256 What do i type in those ...
0
votes
1answer
28 views

Initialize a blockchain based on PoS

How a blockchain based on PoS could be initialized if nobody has the coins to become a Validator?
2
votes
2answers
44 views

Staking when you have 0 ETH

I was wondering how could you become a validator (and get ETH reward) if it is required to have 32 ETH? Is it supposed that you bought 32ETH already? Or will there be another way to get ETH? Couldn't ...
4
votes
1answer
41 views

Why some validator have 2x32eth deposit?

I see some validators on beaconcha.in, for instance 0xae0a59afa484054a4960ee3699d7e518d9273ff65bab932d3217f69770a48ddfbe646d970a422c88adcff8117ce30f47 that have 2x 32eth deposit. The max active stake ...
0
votes
1answer
20 views

Locked Staking - when can I cash out?

I'm trying to understand how locked staking works. Per my understanding, there's a staking period during which it is impossible to withdraw the staked coins. My question is: what happens after this ...
0
votes
1answer
53 views

Eth2 Client Teku missing proposals: MissingDepositsException

My Eth2 validator occasionally encounters a MissingDepositsException. For the second time now my validator missed a block proposal with the exception: tech.pegasys.teku.validator.coordinator....
1
vote
0answers
69 views

Uniswap V3's Position NFTS "positions()" returning irregular results for tokensOwed

I'm messing around with web3py and I ran into something that I haven't been able to understand; when I call positions() on a tokenid, I get odd results for the tokensOwed values. The results don't ...
0
votes
2answers
24 views

Make Caller Pay Gas fee, but enforce certain arguments

I am designing a simple contract that doles out staking rewards. The claimant need only call a claim function specifying the amount to be claimed. However, the amount is calculated off-chain on a ...
0
votes
0answers
27 views

Developing staking coin

I want to make a coin which can stake on Ethereum most of the functionality is done but I want to see some reference to see that if I'm missing anything. I can't find anything direct on google. Can ...
0
votes
0answers
8 views

Is there a card which I can have stablecoin on the backend but use for fiat purchases?

Is there a pre-paid card, which stakes stablecoin in order to ear interest, but the user can also spend the stablecoin on daily purchases like a regular debit card? I guess similar to this https://...
1
vote
1answer
41 views

What will happen to my ETH share when POS goes live?

I have been seeing that ETH will be moving to a PoS validation framework. These validators will be paid in ETH. It seems to me that this means if I do not stake, my ETH portion will be continuously ...
1
vote
0answers
35 views

What is the Probability of being chosen in Proof of Stake?

I'm trying to solidify my understanding of Proof-Of-Stake consensus, and one thing I've been left wondering is how to figure the probability of being chosen to be a validator. Are the chances of being ...
0
votes
0answers
40 views

What is the difference between liquidity mining and farming?

I have seen both terms being used in the DeFi space a lot. I understand that liquidity mining is: when people receive tokens as rewards for participating in a certain protocol in a given way. I ...
0
votes
0answers
58 views

How can I accept already deployed ERC20 token in my staking contract

Got this question, I have an ERC20 staking contract (it will be deployed on Binance smart chain), that can accept itself to eventually mint itself, but I want to accept other, already deployed (on BSC ...
0
votes
2answers
391 views

How can I import an existing ERC20 token into my contract?

I'm trying to develop a staking contract. All of the guides I've seen utilize either payable (ETH) or a newly created token. How can I import an existing token (presumably via address) into my ...
1
vote
1answer
47 views

Migrating ETH 2.0 staking stack from one machine to another on the go

I was reading through the eth docs but could not see any info about following: What can be the possible problems of migrating my ETH2.0 staking stack infrastructure from one machine to another. I ...
4
votes
2answers
6k views

Defi-Staking is it 100% safe?

I was reading on crypto staking, more precisely Defi-Staking on Binance: https://www.binance.com/en/defi-staking While I am not a native english speaker I could understand that there is no risk in ...
2
votes
0answers
55 views

Is it possible to stake ETH and automatically send the rewards to another wallet?

I'm wondering if there is an established way for me to stake ETH from one address and have a different address earn the staking rewards?
0
votes
0answers
22 views

erc20 staking analytics

I am trying to analyze if/how staking affects the price of an ERC-20. Is there a way to find the total number of a specific ERC20 token staked each day? Does the transaction hash or input provide any ...
4
votes
1answer
74 views

What will PR-2149 offer?

I've seen this PR-2149 quite a few times already and people are saying this is big for Ethereum 2.0. Can someone explain in simpler terms what will it offer?