Stakewithus ETH Staking
Launch App
  • Introduction
  • ETH Staking
    • Staking
    • Rewards
    • Unstaking
    • FAQs
    • Audits
    • Smart Contracts
Powered by GitBook
On this page
  • Staking
  • Privileged Roles
  • Functions
  • Fee Recipient
  • Functions
  • Addresses
  1. ETH Staking

Smart Contracts

PreviousAudits

Last updated 1 year ago

All deployed smart contracts can be found on . Stakewithus will only deploy user funds into smart contracts that have been .

Staking

The core contract of the ETH staking platform which manages all users, fees and deposits.

Privileged Roles

Operator

The operator is a bot-controlled EOA managed by the Stakewithus team. It listen to user deposits, generates validator signing keys and automatically submits them to the to create validators.

Owner

The owner of the Staking contract is a 2/3 multisig controlled by Stakewithus team members. It can access all operator functions and also has the authority to set fees for using the platform.

Functions

Name
Role
Description

deposit

users

deposit multiples of 32 ETH to create validators

refund

users

refund unstaked ETH

stake

operator

stake user ETH into the official Ethereum staking deposit contract

refundUser

operator

refund unstaked ETH to users

pause

operator

pause the contract, stopping new deposits

unpause

operator

unpause the contract

setOneTimeFee

owner

set one-time fee for depositing (currently disabled)

setPerformanceFee

owner

set Stakewithus's percentage share of block proposal rewards

setTreasury

owner

set the address which receives Stakewithus's share of block proposal rewards

setRefundDelay

owner

set the delay before users can initiate a refund of unstaked ETH

Fee Recipient

Functions

Name
Role
Description

claimRewards

user

claim user's share of block proposal rewards

treasuryClaim

treasury

claim Stakewithus's share of block proposal rewards

Addresses

Name
Address

Staking

Operator

Owner Multisig

Users should ensure that they are interacting with the official Stakewithus smart contracts deployed at the above addresses.

The Staking contract deploys individual contracts for each user upon their first deposit, which serve to collect and distribute their block proposal rewards. Only the user's address can access their rewards - this is set upon creation and cannot be changed.

GitHub
audited
Staking
official Ethereum staking deposit contract
Safe
Fee Recipient
0xFB4022E94460ae7bd4d65EcD8214fbf574740494
0x3B373F51cea611f92d1dEb2ADB354bF2c11E3C98
0x65f13A1A21271c106a60CBE954A53B5e553e4A9F