Port Variable Rate Lending
Bug Bounty
We have partnered with Immunefi to offer bug bounty up to 500K: https://immunefi.com/bounty/portfinance/
Development
Environment Setup
- Install the latest Rust stable from https://rustup.rs/
- Install Solana v1.8.0 or later from https://docs.solana.com/cli/install-solana-cli-tools
- Install the
libudev
development package for your distribution (libudev-dev
on Debian-derived distros,libudev-devel
on Redhat-derived).
Build
The normal cargo build is available for building programs against your host machine:
$ cargo build
To build BPF Program:
$ cargo build-bpf
Test
Unit tests contained within all projects can be run with:
$ cargo test # <-- runs host-based tests
$ cargo test-bpf # <-- runs BPF program tests
Verify Build
Dump on-chain file to a local file
solana program dump <program-id> <file-name>
Compare the on-chain file with a local build using vbindiff