Skip to content

yieldz.cc is a decentralized staking infrastructure designed to provide seamless, flexible, and secure staking solutions for token projects.

Notifications You must be signed in to change notification settings

web3-creator/yieldzcc-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

yieldz.cc Staking Contracts

Welcome to the official repository of yieldz.cc's Staking Contracts. This project provides a collection of smart contracts that enable various staking mechanisms. The contracts are modular and can be customized for different reward and locking mechanisms.

Overview of Smart Contracts

This repository contains the following key components:

1. StakingFactory.sol

  • Main contract for creating new staking instances.
  • Manages different staking templates.

2. Staking Templates (located in contracts/templates/)

  • StakingCustomReward.sol: Flexible reward mechanisms.
  • StakingTimeLock.sol: Tokens can only be withdrawn after a certain period.
  • StakingActionFees.sol: Implements fees for specific staking actions.
  • StakingSimple.sol: Basic staking logic without complex reward mechanisms.
  • StakingOverTimeReward.sol: Rewards increase over time.

3. Base Contracts & Interfaces

  • StakingBase.sol: Core functionalities for all staking templates.
  • IStakingFactory.sol: Interface for the staking factory.

Using Foundry

To integrate these smart contracts into your Foundry project, follow these steps:

1. Install Foundry (if not already installed):

curl -L https://foundry.paradigm.xyz | bash
foundryup

2. Install the Contracts using Forge

forge install https://github.com/your-github/web3creator-staking-contracts.git

License

This project is licensed under the MIT License

Contact

If you have any questions or suggestions, feel free to reach out:

About

yieldz.cc is a decentralized staking infrastructure designed to provide seamless, flexible, and secure staking solutions for token projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published