Crisp is an open-source structured liquidity protocol on the NEAR blockchain.
This repository contains the Rust smart contract.
There is also a frontend repository.
The smart contract implements an advanced DEX where you can:
- trade with existing liquidity
- place concentrated liquidity positions in a chosen price range to earn trading fees
- leverage your positions up to 5x
- lend your tokens for others to borrow for leverage and earn interest
- liquidate underwater leveraged positions to earn a premium
Read a more detailed overview here.
- NEAR 3.4.2
- Rust 1.64.0
-
Install near-cli using instructions found here.
-
Install rust using this.
-
Clone the repository and open it.
./deploy.sh
will build and deploy the smart contract
Interactions with the contract are documented here.
Run cargo test
to run Rust tests