Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleStaking

This application allows users to stake a specific token(SimpleToken is used here for exemplification) and earn rewards over time. Inspired by Synthetix staking algorithm, this contract ensures fair reward distribution by tracking staking timestamps and accumulated rewards. "Pull over push" pattern is used in order to shift the risk associated with transferring ether to the user. Functionalities are kept to a minimum as it is just intended to demonstrate how the alghoritm work.

The frontend uses wagmi + privy libraries in order to facilitate user interaction with the contract. User must first connect his wallet, then he can stake, withdraw or harvest the rewards.

image

The minimum working implementation of the frontend

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages