5 releases
0.1.4 | Sep 25, 2023 |
---|---|
0.1.3 | Sep 25, 2023 |
0.1.2 | Mar 16, 2023 |
0.1.1 | Feb 20, 2023 |
0.1.0 | Feb 20, 2023 |
#69 in #anchor
160KB
3K
SLoC
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.
Dependencies
~20–32MB
~550K SLoC