Questions tagged [staking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
25 views

Used Goerli instead of mainnet launchpad

i accidentally used the goerli.launchpad webpage instead of mainlaunchpad page to generate keys and stake. it looks like the validator was still created. does it make a difference if the keys were ...
bradleystir9's user avatar
0 votes
0 answers
9 views

Trezor Support for Staked Ethereum Withdrawals?

Trezor Firmware: v2.6 Trezor App: updated 2023-09-18 Since automatic withdrawals started for staked ethereum, I can see on beaconcha.in that they're being credited to my address which is managed by a ...
Brian White's user avatar
1 vote
1 answer
52 views

Two people calling this function at exactly the same time

I was looking at Rocket Pool's docs on interacting with other contracts and they included a simple example function that another protocol could use to accept deposits of ETH, forward it to RP, and get ...
auditor_chick's user avatar
0 votes
0 answers
11 views

Geth+Teku Nodes Randomly Stop Communicating

newbie staker here. I’ve been trying to set up my Geth/Teku nodes for the past week, but I keep running into a persistent issue – After starting both nodes, everything runs well for between 5-30 ...
Onchain Idiot's user avatar
1 vote
0 answers
13 views

Query total rewards per validator

Sites like beaconcha.in are listing the total rewards per validator (split into EL and CL values). How can I query this information on-chain using something like ethers.js or maybe ethdo?
no1dea's user avatar
  • 88
0 votes
2 answers
31 views

Hey is that ETH.Capitalseo.com is part of Stalking process of ETH organizations

I been investing Capitalseo.com where they say it's part of ETH organization. Please tell me they are real or scams. I invested so far 118k NZ dollar and they asking me more deposit into my wallet for ...
Honey's user avatar
  • 1
2 votes
1 answer
46 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
1 answer
33 views

BASE_REWARD Formula Enquiry

Reading about Ethereum 2.0, I note the formula for the BASE_REWARD, which is "the base unit that other rewards are calculated from" is given as following: base_reward = effective_balance * ...
Peter's user avatar
  • 121
0 votes
1 answer
24 views

I need 1000 Ethereum wallets for load testing of my project, is there a way i can get that?

I have to test out the functionality of auto reinvest in my smart contract in staking, therefore I need about 1000 Ethereum wallets to test out my code! Please help me out here if there is any ...
Talha Sajid Chaudhary's user avatar
0 votes
0 answers
43 views

How to query the ethereum network to get Validator status, balance and validator reward history

Is there a way to query the ethereum network with a json rpc call to get the current balance, the status and the reward history of a validator? thanks very much!
mazi's user avatar
  • 1
1 vote
2 answers
32 views

Ways to earn ETH passive income

I have a decent amount of ETH in my cold wallet (<32 ETH). These bag of ETH is my HODL bag, meaning that I don't want to spend it and I am planning to hold it for the next 10-20 years. What are my ...
Chunior's user avatar
  • 11
0 votes
1 answer
37 views

Trying to Create a Staking Smart Contract, but when I call the Mine function from ERC20 contract. The transaction Reverts

I am writing the below code for a staking smart contract. pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; interface Token { function transfer(address _To, ...
Pratik Jussal's user avatar
0 votes
0 answers
13 views

why does the staking.sol contract have permissions on the notifyReward function?

In both this example and this example the notifyReward function has a modifier that only allows the owner to distribute rewards. function notifyRewardAmount( uint _amount ) external ...
Dylan Kerler's user avatar
0 votes
0 answers
24 views

Front-running attack for staking deposit is not a concern?

The front-running attack for Eth staking deposit is a widely known issue. The delegated staking protocols have their own remedy to mitigate the issue. As a solo home staker, I am still vulnerable to ...
anon's user avatar
  • 1
1 vote
0 answers
21 views

How to fetch Lido current Staking APR

I am building a project in which I need Lido current APR to show in the frontend. Is there any API from them that can provide me their current APR? I am not able to find such API in their docs.
Rishabh Raghwendra's user avatar
0 votes
0 answers
16 views

Calculating number of validators on dune

to find total validators on eth , i am using below logics >> SELECT sum(amount_staked) FROM staking_ethereum.deposits as a, SELECT sum(amount)/1e9 FROM ethereum.withdrawals as b , and my output ...
Divyanshu Chahal's user avatar
1 vote
0 answers
27 views

Can a single set of validator keys for staking be signed with multiple Ethereum accounts?

I am setting up solo staking on Sepolia with a local Nimbus client. I want to test a setup where my eth funds are spread out across two ledger devices. Can I generate a single set of validator keys ...
tezette's user avatar
  • 13
0 votes
1 answer
617 views

How to get enough Sepolia eth to test staking?

The Sepolia faucets prescribed here dispense a limited amount of eth each day. However, in order to test solo staking, one needs a non-trivial amount of eth. What is the most efficient way to procure ...
tezette's user avatar
  • 13
2 votes
1 answer
242 views

How to add new validators on ethereum private network?

I am trying to setup a local devnet in my computer by using geth and prysm using https://docs.prylabs.network/docs/advanced/proof-of-stake-devnet. I can able to setup network with three execution ...
user_go's user avatar
  • 21
3 votes
2 answers
273 views

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

Ethereum validators set a withdrawal address to automatically receive their staking rewards. These rewards are distributed gas free at the protocol level through a process called "validator ...
CBobRobison's user avatar
  • 1,235
1 vote
1 answer
21 views

Failing to Demonstrate a Re-entrancy attack on withdraw function?

I am constantly getting a revert error while trying to demonstrate a Re-entrancy attack on a staking contract Here is the staking contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; ...
k191114 Muhammad Mansoor Butt's user avatar
2 votes
1 answer
103 views

What is difference between masterchef and smartchef contracts

I was going through masterchef contract. But later I saw Pancake uses smartchef contract for pools. I am confused which one to use, as both have almost same functionality.
Manav Notnani's user avatar
0 votes
2 answers
35 views

How will you give NFT as reward after Staking?

I'm working on a smart contract for a staking dApp. I have two ERC20 tokens S and R. Let's say S is a staking token, and R is a reward token. I also have one ERC721 token. It is called NFT Token. So ...
Umar Raza's user avatar
3 votes
1 answer
286 views

Multi sig solutions for validator withdrawal key

Validators for ETH2.0 have a pair of keys: 1 for validation (hot wallet) and another one for withdrawal (cold wallet). It looks like the tx data for depositing the stake requires both public keys for ...
Oscar Serna's user avatar
0 votes
1 answer
244 views

How can I get a list of all blocks proposed by a validator?

I would like to get all blocks proposed by a given validator. It looks like this functionality is not available in the standard Beaconchain API. Is there any other API available, probably by a a third ...
TripleSpeeder's user avatar
0 votes
0 answers
26 views

Are there any examples of audited and tested Masterchef V1 contracts that allow for the staked tokens to be the same as the reward token?

I know this question is rather specific and it's a bit of a long shot, but is anyone aware of an audited and tested Masterchef V1 fork where you can stake the reward token whilst avoiding reward ...
Jimmy Andrews's user avatar
0 votes
0 answers
51 views

ZRX staking was my goal on this website: https://www.0x.org/zrx/vote and from my Metamask wallet

I have question! I just wanted to stake my ZRX tokens on ETH chain from my Metamask and went to this website: https://www.0x.org/zrx/vote sent some little fee and now I can not see anymore my tokens ...
Ivicagrozni's user avatar
1 vote
1 answer
136 views

What are the events that mint new ETH?

I’m trying to better understand the rewards and minting processes for ETH POS so I can potentially apply the logic to a protocol I’m building. My question is what events lead to minting new ETH? My ...
Manuelmaccou's user avatar
2 votes
4 answers
251 views

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

It seems that we can use one of the staking platforms for ETH: https://ethereum.org/en/staking/pools/ For Solana (SOL), there is a feature which is, even if a validator goes down (or the owner of the ...
Stefanie Gauss's user avatar
0 votes
1 answer
14 views

Is there any example of pooling Ethereum to invest in a company’s operations?

I was wondering if there is some structure that bridges the gap between pooling or collective staking of a cryptocurrency, and traditional investment in which you and others fund the operation of a ...
hmltn's user avatar
  • 131
0 votes
0 answers
35 views

How to programmatically get a list of current stakers, their delegates, and the amount of ETH staked?

🙏 I'm coming from mostly Substrate background, so apologies if I'm missing something obvious. 🙏 Since Ethereum is now proof-of-stake, I'd like to know who has staked in the network, and how much. ...
Lisa's user avatar
  • 1
1 vote
3 answers
169 views

Why do we still pay gas in proof-of-stake?

When Ethereum was on a proof-of-work business model, gas had to be paid to miners to execute transactions. Now that the miners are gone in the new proof-of-stake system, why are we still paying gas on ...
user610620's user avatar
  • 1,446
0 votes
1 answer
142 views

How to express a negative power in Solidity?

Trying to express y=2^x where x is a negative number. As Solidity does not support negative powers, is there another way to express this? Thanks for any tips! We are trying to create a decay formula
Alex's user avatar
  • 3
0 votes
0 answers
43 views

Why isn't Lido and Curve paying me hourly or weekly staking rewards?

Lido Finance + Curve is a DeFi liquid staking platform where you receive wstETH (wrapped staked ETH) when making a deposit of ETH in the ether staking pool. Upon depositing 1 ETH to Lido/Curve, ...
user610620's user avatar
  • 1,446
0 votes
0 answers
31 views

Staking contract where APY depends on user pariticipation in pool

I'm trying to build a staking contract. The contract has following constarints: the APY from the staking pool will depend on users participation. i.e, more users, less rewards. The total awards to be ...
Shubham Kumar's user avatar
0 votes
1 answer
18 views

Creating a test blockchain that can sync with other nodes

I'd like to create a test Blockchain to experiment on Liquid staking. It would require to have several nodes to be able to sync together and have several validators on this testnet. However the only ...
Torof's user avatar
  • 533
0 votes
0 answers
50 views

Wrap LP tokens + Rewards Yield in One Token

My question is whether there's any contracts out there currently that will allow you to wrap LP tokens + Reward (incentives) yield in the same token contract. Essentially, we have an LP token + ...
Cryptoman's user avatar
0 votes
0 answers
23 views

Calculate TVL with Web3.py

tell me how to calculate TVL, knowing the events in the contract? The required event is called StakeConfirmed Here is a link to the event contract https://etherscan.io/address/...
Vladimir's user avatar
1 vote
1 answer
186 views

Discrete staking rewards with linearly increasing stake

Description I am implementing a Staking Pool of ERC20 tokens. Users can deposit any number of tokens, but only until a predefined block number when the staking actually starts. They do not earn any ...
Aurélien's user avatar
0 votes
1 answer
71 views

Staking beginner guide for writing smart contract (binance smart chain)

I have some confusions related to staking anyone can explain these little points. I want to give staking feature of ERC20 tokens at binance smart chain i have also created a staking contract that is ...
Jahanzaib Rashid's user avatar
0 votes
0 answers
33 views

PoS quantum migration

I have a slightly futuristic question. If there were QCs capable of breaking EC signatures (incl. BLS) and there were safe alternatives (ie ZK-STARKS), would it be possible to migrate staked ETH on ...
user110054's user avatar
0 votes
0 answers
38 views

a year of staking 0x on 0x.org and no rewards, can't remove or rebalance... help!

Metamask does not respond after I hit remove stake. I have received no rewards in about a year on two accounts as well. Getting multiple people on discord asking me to hit links where I would enter ...
flycryptoguy's user avatar
0 votes
0 answers
18 views

How to show number of tokens you are claiming on wallet while processing?

I'm wokring on a staking page. Everything works fine, but I was wondering if I can manage to show the tokens they are claming on the wallet. Currently, it only shows the gas fee that user has to pay ...
justanotherdev89's user avatar
0 votes
1 answer
127 views

Calculating staking rewards based on other users activity (fees)

I'm implementing a smart contract that allows users to stake one ERC20 token and receive rewards in another ERC20 token from a pool that is funded by accumulated transaction fees by the protocol. What'...
PitaHat's user avatar
0 votes
1 answer
45 views

APR calculator on Ethereum staking

my question is - how to get actual APR on Ethereum for delegators? So, knowing the APR we'll be able to estimate the reward for users.
Ilya's user avatar
  • 1
0 votes
0 answers
26 views

Verify on Rinkeby doesnt work for my contract eventho all parameters are right

Hello the following code has been succesfully compiled and deployed to rinkeby(0x2e38e76bc1bf67483e5c79dfa7adb8aa66667daf) but I cant verify it. I have quadruple checked the compiler version, if ...
CheeseMcBurger's user avatar
1 vote
1 answer
77 views

Staking contract without minting

I would like to create a staking contract for my token. I found many examples of the staking contracts, but all of them were using a _burn and _mint token methods. Because I want my token to have a ...
Sayaki's user avatar
  • 139
1 vote
1 answer
46 views

Eth 2.0 Will Pay 5% Staking Rewards - Is ETH really deflationary?

I am struggling to understand a key concept of the new Ethereum. I understand that some ETH rewards are burnt, but clearly the 5% rewards need to be created first and they are given to stakers as ...
noto77's user avatar
  • 13
0 votes
1 answer
56 views

Is there a more standardized, Gas-Efficient way of updating the pending dividend rewards of multiple addresses at once?

I am currently working on a dividend-paying smart contract, and am wondering if there is a more gas-efficient way of performing the action that I require on-chain. The concept of the function is to ...
user3430084's user avatar
0 votes
1 answer
252 views

Help understanding the data in a validator deposit file

I want to understand how the data in a validator deposit file is generated. Below is an example. [{ "pubkey": "...
ieatpizza's user avatar
  • 111