Skip to content

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

License

Notifications You must be signed in to change notification settings

gnosischain/deposit-contract

Repository files navigation

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