Skip to main content
8 votes

Defi-Staking is it 100% safe?

You are misunderstanding the returns. A return of "Est. APY" means the estimated return per year - APY means Annual Percentage Yield. So by staking you would gain that much per year, not per ...
Lauri Peltonen's user avatar
8 votes

Is there a penalty for having a ETH 2.0 Staking node go down?

Yes there are penalties for being offline. In "normal" (non-activity leak) circumstances, a validator loses approximately 15.8% of their stake per year they are offline. That's ~1.4% for being offline ...
paulhauner's user avatar
  • 1,248
5 votes
Accepted

Understanding `rewardRate` and `rewardPerToken` in Synthetix Staking contract

rewardRate is reward per second, this rate will be multiplied by token user staked / total staked rewardPerToken - math trick R = reward rate l(t) = amount user has staked at time t L(t) = total ...
tsknakamura's user avatar
4 votes
Accepted

Staking algorithm

It's up to you to decide from where the rewards are coming, I will share with you the concepts that I'm familiar with. Let's say we have ERC20 token X, here are few staking concepts that could work: ...
Miroslav Nedelchev's user avatar
4 votes
Accepted

Why some validator have 2x32eth deposit?

Yes this is likely a user mistake (due to a technical error or misunderstanding the instructions) as you only get rewards on the first 32 ETH of the validator. The extra ethers are stucked until ...
clement's user avatar
  • 4,352
4 votes
Accepted

Staking contract without minting

A contract such as staking rewards from Synthetix is usually a good example
Franfran's user avatar
  • 635
3 votes

Defi-Staking is it 100% safe?

"There is no risk in staking" If there is profit there is always risk. Non-risk yield, which beat inflation by visible margin, does not exist in this world, or it would be a money printer ...
Mikko Ohtamaa's user avatar
3 votes

Staking algorithm

Now don't quote me on this, but as I see it, most staking schemes are simply pyramid schemes. But, on the other hand, much of the entire DeFi is a pyramid scheme as many of the projects don't really ...
Lauri Peltonen's user avatar
3 votes
Accepted

How to express a negative power in Solidity?

To implement a decay formula: you should use int256 as signed integers for using negative exponent powers You can use exponents as hardcoded values if you're using ** which denotes exponents so you ...
Shahroz Khan's user avatar
3 votes

Does Ethereum staking have the guarantee that even if the validator goes down, our ETH stays with us?

There are basically three ways to stake: Staking through a centralized entity, such as Coinbase. You can stake also small amounts. Staking through a decentralized staking pool, such as RocketPool. ...
Lauri Peltonen's user avatar
3 votes

How to add new validators on ethereum private network?

Adding new validators to an Ethereum private network involves a few steps. Since you're using Geth and Prysm, I'll guide you through the process: 1 - Generate Keystore and Deposit Data Files: You've ...
brunovjk's user avatar
  • 125
3 votes
Accepted

Metamask computing real rewards of Lido

As mentioned in this LIDO blog: When staking Ethereum with Lido, you no longer need to “lock” your tokens away, as is the case with many other staking providers. When you stake, you receive an stETH (...
SYED ASAD KAZMI's user avatar
2 votes
Accepted

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

From the Validator Submit deposit specs: A validator can only be activated when total deposits for the validator pubkey meet or exceed MAX_EFFECTIVE_BALANCE. You can find this variable in the Beacon ...
alberto's user avatar
  • 3,353
2 votes
Accepted

How will one stake Ether?

After moving to Casper POS, To become a validator (mine new ethers) you will need locking up an amount of your ethers (to be bonded) by sending them to the Casper contract. If i remember they will ...
Badr Bellaj's user avatar
  • 18.8k
2 votes

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

Good question. In fact it can even be less than 32 eth; in the Eth2 Deposit Contract the conditions to enable a deposit are the following : // Check deposit amount require(msg.value >= 1 ether, &...
upavloff's user avatar
  • 1,210
2 votes
Accepted

How many validators can run with single Consensus client?

There is no hard limit to the number of validators you can run on a single machine. With any modern hardware, you can easily run hundreds if not thousands of validators. The additional resources usage ...
Rémy Roy's user avatar
  • 723
2 votes

Does Ethereum staking have the guarantee that even if the validator goes down, our ETH stays with us?

There's no way to withdraw/unstake from a specific validator if they're offline like on Solana and choose not to withdraw. Lauri mentioned that solo staking is the most sure way to ensure that you ...
Wmm's user avatar
  • 41
2 votes

What are the events that mint new ETH?

In Ethereum's proof-of-stake (POS) consensus mechanism, new ETH is minted through the process of block validation, also known as staking. Validators, also known as stakers, are chosen to create new ...
VX3's user avatar
  • 686
2 votes

What is difference between masterchef and smartchef contracts

They have similar functionalities, there are key differences between the two contracts. The MasterChef contract supports multiple pools, native token rewards, and allocation point management for ...
Saxtheowl's user avatar
  • 698
2 votes
Accepted

What happens when a validator's withdrawal address is a smart contract with a fallback function?

If a validator do that the rewards are indeed sent to that smart contract but the process of validator sweeping does not interact with the contract's fallback function. The rewards are just directly ...
Saxtheowl's user avatar
  • 698
2 votes

What happens when a validator's withdrawal address is a smart contract with a fallback function?

EIP-4895 has a couple explanations to @Saxtheowl's good answer. Why only balance updates? No general EVM execution? More general processing introduces the risk of failures, which complicates ...
eth's user avatar
  • 86.5k
2 votes

Two people calling this function at exactly the same time

Even if two transactions are created at virtually the same exact time, there will be a definite order decided upon by the miner/validator of the block where the transactions took place. This means ...
Rohan Nero's user avatar
  • 1,725
1 vote

Where does the yield for staked eth before the merge come from?

Currently on the beacon chain, each validator is rewarded to conduct actions helping the protocol to reach consensus. Duing an epoch (32 slots or 6min24sec) each validator can receive a reward up to 0....
upavloff's user avatar
  • 1,210
1 vote

How do you create a staking contract?

Well you have two main ways to go about it. Custodial and non custodial. NON CUSTODIAL: The way to write a non custodial staking is simply to incorporate it in the same contract as your NFT. something ...
Torof's user avatar
  • 818
1 vote
Accepted

Eth2 Client Teku missing proposals: MissingDepositsException

This error suggests that at some point the eth1 node has lost or failed to provide the logs for a deposit event when queried. That's pretty unusual for Geth but might be possible if it was still ...
ajsutton's user avatar
  • 221
1 vote

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

Ok so to answer my own question in case of someone asking the same in the future: There is something called slashing protection history which needs to be migrated from machine to machine as well, ...
mppub's user avatar
  • 21
1 vote
Accepted

What will PR-2149 offer?

Quoting an answer from the ethstaker Discord channel: This PR allows a contract to be the recipient of the withdrawn ETH instead of a person who could potentially take the ETH and run away. Staking ...
user1506104's user avatar
1 vote
Accepted

Eth 2 staking - Required mainet recent blocks

From what I gathered I can say: Warp syncing became to complex so it is no longer made after ~1,000,000 blocks I think Warp syncing takes the same amount of storage as normal syncing, only warp ...
Hoyt's user avatar
  • 85
1 vote

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

When you look at current validators, all of them have either exactly 32 ETH or little more than that - https://ethscan.org/validators
ETHStaker870's user avatar
1 vote

Erc20 staking but with variable reward rate

You could have a struct (timestamp, reward rate) and an array of those structs. Then when users calculate their rewards they'll go find the reward rate at the time of their deposit, multiply that by ...
Meriadoc's user avatar
  • 427

Only top scored, non community-wiki answers of a minimum length are eligible