Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jet-lab/jet-v2

A DeFi margin system with fixed-term lending markets
https://github.com/jet-lab/jet-v2

defi jet margin protocol solana v2

Last synced: about 1 month ago
JSON representation

A DeFi margin system with fixed-term lending markets

Lists

README

        


Jet V2



Build


Discord


License


Webite
|
Docs


# 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](https://jet-lab.github.io/jet-v2/)

## Getting Started

Install yarn, anchor and the Solana CLI ([instructions](https://www.anchor-lang.com/docs/installation))

### Wasm Pack

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

```bash
cargo install wasm-pack --locked
```

### Test

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

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

Run a single job from the workflow:
```bash
./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 =
REACT_APP_RPC_DEV_TOKEN =
REACT_APP_IP_REGISTRY =
REACT_APP_LOGROCKET_PROJECT = ""
```

To run the app:

```bash
yarn
yarn --cwd packages build
yarn dev
```