Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 692 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 692 Bytes

Stake Beacon Chain Deposit Contract

This is a rewrite of the official beacon chain deposit contract. Eth 2.0 deposit contract.

The following things were changed:

  • Upgraded to Solidity 0.8.9
  • Deposit is made via ERC20 tokens instead of native ETH
  • Deposits can be done in batches
  • Contract can be made upgradeable
  • Contract can be made claimable (allowing to claim mistakenly sent third-party tokens back)
  • Contract can be made pausable
  • Withdrawals functionality was added

Compiling solidity deposit contract

yarn compile

Running web3 tests

yarn test