Fixed Staking

The Finity Staking smart contract allows users to stake a specified ERC-20 token and earn interest based on the selected staking plan. The contract supports four staking plans with varying APYs and durations. It incorporates key functionalities for staking, interest calculation, and administrative controls.

Key Features:

Flexible Staking Plans: Four predefined plans with adjustable APYs and durations.

Interest Calculation: Calculates interest using the specified APY and staking duration.

Admin Controls: Allows administrators to manage APYs, durations, and contract balances.

Security: Protects against reentrancy attacks using OpenZeppelin's ReentrancyGuard.

User Transparency: Emits events for every significant action (staking, unstaking, deposits, withdrawals).

Staking Plans:

Plan
APY%
Duration

Plan 1

8.97%

90 days

Plan 2

14.35% 

365 days

Plan 3

21.52%

730 days

Plan 4

28.69% 

1460 days

Last updated