Questions tagged [staking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 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
17 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
6 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
19 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
5 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
28 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
21 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
17 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
36 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
19 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
18 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
61 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
17 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
22 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
41 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 ...
3
votes
1answer
35 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
15 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
36 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
47 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
23 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
20 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
6 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
34 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
27 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
33 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
47 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
190 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
37 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
44 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
21 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?
1
vote
0answers
21 views

Is it Possible To Avoid Yield Farms That Use Leverage?

Are there any Yield Farms (YFs) that do not use leverage or is leverage worked into virtually every YF strategy? I'm concerned with the use of borrowing behind the scenes of Yield Farms (YFs) in order ...
0
votes
0answers
38 views

Pull-based reward distribution (Rewards Compounding) among stakeholders according to their shares in staking

In a naive implementation, the staking contract would push fractional payments to all the participants each time a reward gets distributed. However, in such an implementation the distribute function ...
0
votes
0answers
193 views

What is the emission rate in the context of STAKE and what is the source of emission

From this document: https://www.xdaichain.com/for-stakers/stake-token I read: STAKE is a new ERC20-type (implemented as an ERC677) token designed to secure the on-chain payment layer and provide a ...
0
votes
0answers
13 views

Gas estimation error in staking

When i deployed my contract in binanace Mainnet,it is deployed.But when i calling stake function it gives gas estimation error.can anyone suggest me some steps for staking contract.
0
votes
0answers
26 views

Ethereum Staking Pools Fee

I'm looking at https://stakingether.com/ for the list of staking pools with the possible earning and fees the pools are charging. As I understand it, a fee is charged by these pools to provide their ...
1
vote
1answer
70 views

Eth 2 staking - Required mainet recent blocks

How many recent ethereum 1 mainet blocks does ethereum 2 staking clients need? I am syncing eth 1 mainet with OpenEthereum (Parity) and saw that I could change the --warp-barrier to 11500000 which is ...
5
votes
2answers
591 views

Staking algorithm

Trying to get the gist of the staking Do I get it right? As a user I can stake assets (not clear yet would it be ETH or the token) The Reward inside the staking contract is updated from the Exchange ...
0
votes
2answers
457 views

Is it possible to temporarily transfer ownership of a staked token to another wallet address without unstaking, [closed]

Is it possible to temporarily transfer ownership of an ERC20 staked token to another wallet address without unstaking, for example if I have wallet address X, and I have staked my tokens with a ...
0
votes
1answer
53 views

Staking algorithms: are there any common grounds or each one develops per to it's own understanding?

Staking algorithms and rewards scheme If it needs to be developed, is there any common source of truth on how to implement this or everyone making their own one? If governance contract needs some ...
0
votes
1answer
124 views

Can a contract hold ERC1155 token?

I am curious if ERC1155 token is able to stake or something else with smart contracts? I know ERC721 is able but not sure about ERC1155. Thank you.
0
votes
1answer
281 views

Staking reward distribution in a month

I was just wondering, how would I be able to make a staking function that, after one month, distributes "x"% to the locked up stake holders? Is it something to do with now and ...
1
vote
0answers
65 views

How large network traffic is expected for Ethereum 2.0 Staking node?

Would be interested what can be rough estimated network costs of running full staking client. For staking it's currently required to run: Eth1 node (Not counting initial sync which require initial ...
0
votes
1answer
81 views

Withdraw function in my staking dapp not working as it should

I'm making a staking dApp (tutorial project) and my withdraw and reward function that is to be called when the msg.sender wants to stop staking doesn't work well. The function calls and returns a ...
0
votes
0answers
90 views

Ethereum 2.0 - how to avoid being penalised when moving to a new location - is it possible to move the validator to the cloud?

Of course, I can test on testnet and try for myself but maybe you'll know. In the spirit of decentralisation, I would like to run my full node. But things change, I may want to travel (change location)...
1
vote
1answer
35 views

Can I switch my Eth-1 node and Eth-2 node off while waiting for activation?

I setup a Medalla-Geth-Node and a Eth-2 node (Teku) and went through all the steps in the launch pad. My status went from "Deposited" to "Pending" and currently the beaconchain-...
0
votes
0answers
101 views

error while trying to deploy a SC on ropsten testnet

I want to test a staking Smart Contract on the ropsten testnet. The code compile successfully on Remix. However, when I try to deploy it, I get the following error: This contract may be abstract, not ...
1
vote
2answers
514 views

Does the amount of ETH in staking have to be exactly 32 ETH or only at least 32 ETH?

The amount of ETH to be put at stake in phase 0 of Ethereum 2.0 is at least 32ETH but, is it also a maximum? I know that the possibilities of being chosen to propose blocks depends in the amount of ...
1
vote
0answers
50 views

How are rewards commonly distributed to token holders without requiring too much gas?

There are various platforms and tokens which distributes some sort of reward either via staking or interest to token holders proportionally to their token holdings on a regular basis, what are general ...