* lending: Update JS tests to solana-test-validator * Add solana tools install * Fix oopsie on the path * Move where deployed programs go * stake-pool: Add borsh support and size on creation We can't specify the size in the instruction unfortunately, since we'd only have 10kb max for the validator list. At roughly 50 bytes per validator, that only gives us 200 validators. On the flip side, using Borsh means we can allow the validator stake list to be any size! * Add AccountType enum * Remove V1 everywhere * Add max validators as parameter and get_instance_packed_len * Add test for adding too many validators * Clippy |
||
---|---|---|
.. | ||
cli | ||
program | ||
README.md |
README.md
stake-pool program
A work-in-progress program for pooling together SOL to be staked by an off-chain agent running SoM (Stake-o-Matic).
Each SoM needs at least one pool. Users deposit stakes into the SoM pool and receives a pool token minus the fee. The SoM redistributes the stakes across the network and tries to maximize censorship resistance and rewards.
Full documentation is available at https://spl.solana.com/stake-pool
Javascript bindings are available in the ./js
directory.