This repository contains the core smart contracts for Egis Finance's shared security infrastructure. This MVP provides a staking pool and a reward distribution mechanism.
-
EgisPool.sol
: This contract manages the staking pool. Users can stake ETH to become operators and participate in securing the system. Operators can register EVEs (External Verification Entities) and claim rewards. -
EgisRewards.sol
: This library contains functions for calculating rewards based on operator stake and total staked amount. It ensures fair and precise reward distribution.
The contracts are built using Foundry. To get started:
- Clone the repository:
git clone <repository_url>
- Install Foundry: Follow the instructions at https://book.getfoundry.sh/
- Install dependencies:
forge install
- Build the contracts:
forge build
- Run the tests:
forge test
MIT License