Skip to content

Solana Anchor program integrating with Marinade Finance, enabling SOL staking, mSOL minting, liquid unstake, delayed unstake tickets, and claim operations.

Notifications You must be signed in to change notification settings

dappboris-dev/marinade

Repository files navigation

drox coding assessment

A Solana Anchor program for interacting with Marinade Finance, enabling users to:

  • Deposit SOL and receive mSOL
  • Liquid unstake mSOL for SOL
  • Order delayed unstake tickets
  • Claim SOL from completed tickets

Features

  • Deposit SOL: Stake SOL via Marinade and receive mSOL
  • Liquid Unstake: Instantly swap mSOL for SOL
  • Order Unstake: Start a delayed unstake (ticket-based)
  • Claim: Claim SOL from a completed unstake ticket

Getting Started

Prerequisites

Install Dependencies

yarn install

Build the Program

anchor build

Run Tests

anchor test

Example Transactions

Below are example transactions for each main function, executed on Solana devnet:

1. Deposit SOL

Function: deposit_sol
View Transaction on Solana Explorer

2. Liquid Unstake

Function: instant_unstake
View Transaction on Solana Explorer

3. Order Unstake

Function: order_unstake
View Transaction on Solana Explorer

4. Claim

Function: claim
View Transaction on Solana Explorer

This is the project I have built for hiring process.

License

MIT

About

Solana Anchor program integrating with Marinade Finance, enabling SOL staking, mSOL minting, liquid unstake, delayed unstake tickets, and claim operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •