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
- Host: GitHub
- URL: https://github.com/jet-lab/jet-v2
- Owner: jet-lab
- License: agpl-3.0
- Created: 2022-05-17T19:29:31.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T05:38:53.000Z (6 months ago)
- Last Synced: 2024-01-14T07:54:15.185Z (6 months ago)
- Topics: defi, jet, margin, protocol, solana, v2
- Language: Rust
- Homepage: https://jetprotocol.io
- Size: 23.5 MB
- Stars: 66
- Watchers: 2
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audit_reports/2022-08-halborn.pdf
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Lists
- awesome-solana - Jet Protocol V2 - lab/jet-v2.svg?style=social) Implementation of the Jet Protocol V2 programs for Solana (Code / Defi)
README
# 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
```