Questions tagged [staking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Very High gas fee in my staking contract

I am trying to implement my staking contract, for some reason calling stake() or claimRewards() costs 2MATIC ~ 4MATIC. I know my code is kind of complex since I loop and use data structures but still ...
Mohamed Wael's user avatar
1 vote
0 answers
22 views
+50

Metamask computing real rewards of Lido

How does Metamask calculate the rewards on a LIDO wallet? After depositing some ETH, the user receives an amount on stETH as a blockchain transaction. After this, LIDO assign daily rewards for users, ...
Suzana Maranhão Moreno's user avatar
1 vote
0 answers
18 views

How to retrieve a validator Fields and Index from the Beacon Chain?

I'm working on a stacking / restacking project where I need to call that function: function verifyWithdrawalCredentials( uint64 oracleTimestamp, BeaconChainProofs.StateRootProof calldata ...
ASANSON's user avatar
  • 11
0 votes
0 answers
31 views

How to make a smart contract/ a third party pay for transaction fees?

I'm trying to create a LiquidStacking smart contract where it would be possible to deposit any amount of ETH. Every time the smart contract's balance reach 32 ETH, it creates a BeaconChainDepositor ...
ASANSON's user avatar
  • 11
0 votes
0 answers
17 views

Does removing liquidity from a staked pancakeswap lp unstake it?

If I remove all the liquidity from a PancakeSwap V3 LP, I know it also collect the fees earned. But if that LP is staked in a farm, will removing the liquidity automatically unstake it and harvest the ...
sharip's user avatar
  • 1
1 vote
1 answer
17 views

How to query balance and lock duration of staked tokens across multiple protocols

I would like to query the stake/LP balances across multiple defi protocols for a given account address. debank.com does something similar and can show the LP balance for a DEX, the stake balance and ...
degen872's user avatar
0 votes
0 answers
30 views

Can my ETH be frozen by Metamask's Validator Staking Contract?

Does MetaMask have the power to freeze my assets? I'm not an expert but Validator Staking looks to me like a contract interacting with the beacon chain contract. Does me investing/interacting into ...
user23507422's user avatar
0 votes
0 answers
17 views

Dividend paying with Erc20Votes

I want to implement dividends in my platform working with an erc20votes token from Openzeppelin. The platform works with holders delegating their balance as votes to a representative. The elected ...
wolf dun's user avatar
2 votes
1 answer
36 views

Regenerating validation keys with ethereum staking

I am not in this situation but I want to understand what happens if: I have generated Ethereum validation keys. I have transferred this validations keys to a server (validation node), without keeping ...
Bob5421's user avatar
  • 1,467
0 votes
1 answer
25 views

Possible to update validator keys for ETH on Allnodes?

i used https://github.com/ethereum/staking-deposit-cli to generate validator keys. i realized i wasnt offline when i generated them.My validator node on Allnodes is still pending. Just for peace of ...
jasan's user avatar
  • 111
0 votes
1 answer
53 views

What is "GENESIS_FORK_VERSION", "GENESIS_VALIDATORS_ROOT"?

When we make a deposit_data, we use staking-deposit-cli. There's option called "--chain" that we can choose a network like mainnet, goerli, prater, sepolia, zhejiang, holesky~ not the ...
Beginner-K's user avatar
0 votes
1 answer
77 views

How to add validator to private network

I made a PoS private testnet with 2 machine(node) at the moment. But I can't find any reference for staking, adding validators. I saw some questions:How to use prysm add validator for private network, ...
Beginner-K's user avatar
0 votes
0 answers
8 views

Ethereum Staking node without having to synchronize the entire blockchain

I'm trying to set up an Ethereum staking node on the Goerli testnet. My goal is to understand how it works. Is it possible to avoid downloading the entire Ethereum blockchain to set up a staking node? ...
Bob5421's user avatar
  • 1,467
0 votes
0 answers
16 views

How to perform a beacon deposit for a new validator in a Custom Testnet?

I am trying to add a validator to an already running testnet How can i make a beacon deposit, to allow that validator to start staking / validating blocks on the same testnet ? Help appreciated!
Muhammad Yasir's user avatar
1 vote
1 answer
51 views

SNX's Staking rewards contract

Could someone explain to me like I'm 5 the purpose of the notifyRewardAmount() function on the Synthetix's StakingRewards contract please? I think it's connected to modifying the rewards campaign's ...
dNyrM's user avatar
  • 936
0 votes
0 answers
232 views

Does the boosted staking feature of Coinbase One apply to Ethereum?

Coinbase sells the Coinbase One service which costs $30 / month. This provides 'boosted' staking which "reduc[es] the commission that Coinbase takes from the relevant protocol payout." The &...
Brian Schack's user avatar
0 votes
0 answers
26 views

How can I distribute rewards to stakers proportionally?

I am creating a smart contract where users can stake tokens and a reward is distributed proportional to the amounts users have staked. I can use simple division to keep track of the reward when the ...
vrwim's user avatar
  • 198
1 vote
1 answer
23 views

What are the risks in staking through my MM address?

Long story short my MM address is eligible for the Chainlink staking program that would lock my tokens into a smart contract on Ethereum for 1 year. The concern I'm having is, because the address has ...
BornOfZalmoxis's user avatar
2 votes
1 answer
38 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
35 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
62 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
87 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
24 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
46 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
292 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
157 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
  • 166
0 votes
1 answer
27 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
2 votes
0 answers
128 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
  • 21
1 vote
2 answers
51 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
60 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
1 vote
0 answers
24 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
50 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
34 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
17 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
33 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
2k 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
759 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
519 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,245
1 vote
1 answer
31 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
225 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
38 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
455 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
446 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
2 votes
1 answer
314 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
593 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
16 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 ...
Julius Hamilton's user avatar
1 vote
3 answers
328 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,518
0 votes
1 answer
221 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
33 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
22 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
  • 561