WIP TODO:
- Spec 5
- Owner can fund with an ERC20 reward token and define a total reward rate.
- Users can stake an ERC20 staking token at any time.
- Users receive rewards in the reward token, proportional to their stake vs total staked.
- Users can withdraw at any time.
- Upgradeable (T)
12 passing (1s)
------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Lines |
---|---|---|---|---|---|
contracts/ | 84.51 | 54.17 | 84.21 | 87.14 | |
RewardToken.sol | 100 | 50 | 100 | 100 | |
StakedToken.sol | 100 | 100 | 100 | 100 | |
Staking.sol | 83.08 | 54.55 | 78.57 | 85.94 | ... 81,90,91,95 |
------------------ | ---------- | ---------- | ---------- | ---------- | ---------------- |
All files | 84.51 | 54.17 | 84.21 | 87.14 | |
------------------ | ---------- | ---------- | ---------- | ---------- | ---------------- |