* 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 |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
Xargo.toml |