https://github.com/denizumutdereli/fully-managable-staking-contract
The `Staking` contract manages staking, unstaking, and reward claiming functionalities
https://github.com/denizumutdereli/fully-managable-staking-contract
blockchain smart-contracts staking staking-contract staking-pools
Last synced: 11 months ago
JSON representation
The `Staking` contract manages staking, unstaking, and reward claiming functionalities
- Host: GitHub
- URL: https://github.com/denizumutdereli/fully-managable-staking-contract
- Owner: denizumutdereli
- License: mit
- Created: 2024-06-18T21:07:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T21:08:21.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T02:43:21.757Z (over 1 year ago)
- Topics: blockchain, smart-contracts, staking, staking-contract, staking-pools
- Language: Solidity
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Staking Smart Contract
## Overview
The `Staking` contract manages staking, unstaking, and reward claiming functionalities. It allows users to participate in multiple staking schedules, each with its own parameters such as duration, rate, penalty, and allocation. The contract ensures secure token transfers and validates contract interactions. It also allows the owner to update configurations, manage schedules, and rescue tokens.
## Tech Stack
- **Solidity**
- **OpenZeppelin Contracts**
- `SafeERC20`
- `Pausable`
- `ReentrancyGuard`
- `EnumerableSet`
## Features
- **Staking and Unstaking**: Users can stake tokens into predefined schedules and unstake them with potential penalties.
- **Reward Claiming**: Users can claim rewards based on the staking schedule.
- **Multiple Schedules & Staking Agreements**: Supports multiple staking schedules with unique configurations.
- **Administrative Control**: Update configurations, manage staking schedules, and rescue tokens.
- **Event Notifications**: Emit events for key actions like staking, unstaking, and reward claiming.
## Events
- `VestingClaimContractUpdated`
- `ThresholdForDurationUpdated`
- `ThresholdForRatesUpdated`
- `MinimumStakeAmountUpdated`
- `VestingTokensClaimed`
- `StakingScheduleCreated`
- `StakingScheduleStarted`
- `Staked`
- `Unstaked`
- `ClaimRewards`
- `Withdrawal`
## Security
- **Pausable Functionality**: Allows pausing of contract operations in case of emergency.
- **Reentrancy Protection**: Prevents reentrancy attacks for secure contract interactions.
## Contributing
Contributions to expand or improve the repository are welcome!
[@denizumutdereli](https://www.linkedin.com/in/denizumutdereli)
And please have a check other series of contracts that I have built for [@lasmetaio](https://github.com/lasmetaio)