Skip to content

vecheslav/everlend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Everlend

Everlend is a lending aggregator and optimizer. Get the best rates on your liquidity loans, always.

Flow

diagram

Programs

Name Description
depositor Program responsible for rebalance - moving liquidity between General Pool and money markets.
liquidity oracle Oracle that stores token distribution data and is used by depositor for rebalance
registry Program that stores registry config - a data like program ids and some protocol-wise configs
universal liquidity pool A basic solana pool to deposit spl token and get minted a collateral token instead
general pool An extended ulp, used to deposit and withdraw liquidity by protocol users
income pools A pool to store income obtained from MM by the protocol

Running tests

RUST_LOG=solana=debug cargo test-bpf --test ...

Run individual test

cargo test-bpf ./general_pool -- test tests general_pool::deposit::success --exact
Create required accounts
RUST_LOG=solana=debug cargo run create --mints SOL
Run tests
RUST_LOG=solana=debug cargo run test full

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%