psylend-cpi

Crates.iopsylend-cpi
lib.rspsylend-cpi
version0.1.4
sourcesrc
created_at2023-02-20 18:48:28.297686
updated_at2023-09-25 22:49:41.595218
descriptionPsyLend CPI Examples. Borrow-lending protocol on Solana. View source at https://github.com/mithraiclabs/PsyLendCPIExamples.
homepage
repository
max_upload_size
id790067
size158,405
(jgur-psyops)

documentation

README

PsyLend Protocol CPI Examples (for Integrators)

Website

Avoid scammers: PsyLend does not have a public crate. The CPI crate (this code) is available here

Developers

See the complete guide to common terms, states, structs, and instructions in our Architecture Docs. Still have questions? Try our Discord.

Rust Integrators

Check out common CPI examples in this repo, and see example front-end usage in the corresponding test suite.

Front End Developers and Liquidators

Want to integrate with PsyLend? Looking for Typescript utilities to interact with the program? Check out our npm package: psylend-utils

White Hats and Bug Bounty Hunters

See our bug bounty policy. Note that the PsyLend protocol is in scope, however the CPI library is not, as this is only a set of examples. Feel free to use the CPI library to look for vulnerabilities in PsyLend.

Running Tests

Tests run on devnet using pre-made PsyLend markets and reserves. Use anchor test -- --features devnet. Your wallet must have some SOL and USDC for all tests to pass, you can get these at our faucet. You may also want to skip deployment with anchor test --skip-deploy -- --features devnet.

This Program was originally compiled with Solana tools 1.14.20 and Anchor 0.26.0, you may experience compatability issues with 1.16.x or later and Anchor 0.28.0 or later.

Commit count: 0

cargo fmt