Skip to content

mithraiclabs/PsyLendCPIExamples

Repository files navigation

PsyLend Protocol CPI Examples (for Integrators)

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.

About

PsyLend Protocol CPI Examples (for Integrators)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published