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 BorrowRequest
s have the following states:
-
Pending
: the borrow request is just created and no lender has been found yet -
Executed
: the borrow request has been filled, that is a lender is found and has lent the fund -
Liquidatable
: the borrow request has expired and the borrower hasn't paid back the loan yet -
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