jet-lab / jet-v2

A DeFi margin system with fixed-term lending markets

Home Page:https://jetprotocol.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jet V2

Build Discord License

Jet Protocol v2

This repository contains the source code for the implementation of Jet Protocol v2 to run on the Solana network, and associated tools for using the protocol (like a web frontend). The protocol allows for users to participate in non-custodial borrowing and lending marketplaces.

Status

The protocol is currently under active development, and all APIs are subject to change.

Documentation

Auto-generated API docs are available here

Getting Started

Install yarn, anchor and the Solana CLI (instructions)

Wasm Pack

To run the frontend web application also requires wasm-pack, which can be installed with cargo:

cargo install wasm-pack --locked

Test

Run the full test suite used by the github CI workflow. This requires all dependencies to be installed:

./check

Run it in a docker container that already contains all the solana and anchor dependencies. This only requires docker:

./check in-docker

Run a single job from the workflow:

./check [in-docker] [job-name (e.g. e2e-test)]

Web App

Ensure you have a /app/.env file with the required variables:

REACT_APP_RPC_TOKEN = <YOUR_RPC_TOKEN>
REACT_APP_RPC_DEV_TOKEN = <YOUR_DEV_RPC_TOKEN>
REACT_APP_IP_REGISTRY = <YOUR_IP_REGISTRY_TOKEN>
REACT_APP_LOGROCKET_PROJECT = ""

To run the app:

yarn
yarn --cwd packages build
yarn dev

About

A DeFi margin system with fixed-term lending markets

https://jetprotocol.io

License:GNU Affero General Public License v3.0


Languages

Language:Rust 66.2%Language:TypeScript 29.2%Language:Less 4.0%Language:Shell 0.4%Language:JavaScript 0.2%Language:HTML 0.0%Language:Dockerfile 0.0%Language:CSS 0.0%