r007 / rust-test-assignment

This is a test assignment for job application to SFXDX company

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solana

Test Assignment for SFXDX

This project is written in Rust to showcase the very simple solana smart contract. In this demo store users can buy and sell SPL tokens for SOL (solana currency). The purchase/sale price is determined by the store itself and stored in the separate account in solana network.

One store can sell one SPL token at a fixed price. Smart contract should have the following instructions:

  • initialize_store initialization of the store's account.
  • update_price update the price of a token (TODO, needs to be done).
  • sell tokens for SOL.
  • buy tokens for SOL.

Deployed on

Cluster Address
Devnet ArK3BKiUg7dbU4pNQuWZ73arMp6uunSuuBjzm4gSwk8T

About

This is a test assignment for job application to SFXDX company

License:MIT License


Languages

Language:Rust 100.0%