* 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 |
||
---|---|---|
.. | ||
approximations.rs | ||
checked_ceil_div.rs | ||
entrypoint.rs | ||
error.rs | ||
instruction.rs | ||
lib.rs | ||
precise_number.rs | ||
processor.rs | ||
uint.rs |