0.2.1 • Published 3 years ago

@akita.finance/akita v0.2.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

Akita

Akita is a peer-to-peer borrowing and lending protocol.

Overview

Akita enables users to do peer-to-peer multicollateral lending, this is mostly useful for NFTs. The holders of the NFTs can start a new BorrowRequest which is a request for borrowing tokens against their not so liquid NFTs (Technically, it is also possible to use fungible tokens).

The BorrowRequests have the following states: 1. Pending: the borrow request is just created and no lender has been found yet 2. Executed: the borrow request has been filled, that is a lender is found and has lent the fund 3. Liquidatable: the borrow request has expired and the borrower hasn't paid back the loan yet 4. Successful: the borrower has return the fund on time

Development

Version Requirements

  • Nodejs v17.0
  • Anchor v0.23.0
  • Solana v1.9.5

To start a front-end test environment

npm install -g ts-node
anchor localnet

In a separate terminal run the following command to set up all the on-chain program:

anchor migrate

To run the tests locally

yarn idl:generate
yarn test:e2e

Mac users need to install GNU Sed for yarn idl:generate to work properly.

brew install gnu-sed