solana-program-library/stake-pool/cli
Jon Cinque d336b8b714
stake-pool: Use checked_ceil_div for withdraw calc (#1482)
* stake-pool: Use checked_ceil_div for withdraw calc

When a stake account is totally removed from a stake pool by the
manager, there's a chance that the operation would not take enough of
the manager's pool tokens by 1 due to truncation.

Do a ceiling division instead, and refactor ceiling division into the
math library.

* Use new function name on CLI

* Cargo fmt
2021-03-23 00:33:51 +01:00
..
src stake-pool: Use checked_ceil_div for withdraw calc (#1482) 2021-03-23 00:33:51 +01:00
Cargo.toml Bump Solana version to 1.6.1 2021-03-18 04:07:16 +00:00
README.md Token stake pool (#493) 2020-10-16 19:38:12 +02:00

README.md

SPL Stake Pool program command-line utility

A basic command-line for creating and using SPL Stake Pools. See https://spl.solana.com/stake-pool for more details