Skip to content

jusdy/staking-test

Repository files navigation

task

Using Anchor, we'd like you to build a basic xToken staking program. A user should be able to deposit a specific token into a program-controlled vault and receive a proof of staking (PoS) token 1:1, and conversely redeem the PoS token for the locked tokens. Tests must be included.

Implementation

  1. Unit tests are done already but there is a simple bug that we made for this test. Fix it.
  2. complete events(TreasuryCreated, Deposited, Claimed) and trigger it in the unit tests

coding & testing time: within 30~50 minutes

how to run local tests:

yarn install anchor build anchor test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors