Jon Cinque
b80c10f406
stake-pool: Add withdraw-sol command + CLI + docs ( #2475 )
...
* stake-pool: plumb sol withdraw fee and authority
* Add sol withdraw instruction and processor
* Cleanup sysvar usage
* Fix stack size violation
* Add tests
* Add CLI support
* Add docs for new command
* Integrate review feedback
2021-10-05 22:44:03 -04:00
Jon Cinque
fc0d6a2db7
stake-pool: Split from stake account during removal ( #2367 )
...
If the stake pool gives over the validator stake account to the staker,
they may keep it and make it impossible to re-add that validator in the
future.
Split the whole amount into a new stake account on removal.
2021-09-02 01:38:16 +02:00
Jon Cinque
7c8e65292a
stake-pool: Add seed for transient stake account ( #2304 )
...
* stake-pool: Add seed for transient stake account
* Use new functions in CLI
* Put back transient stake seed prefix
2021-08-20 14:15:02 -04:00
Han Yang
85f81ae45c
fix stake-pool: preferred validator can be set to validator not part of the pool ( #2272 )
...
* deny set preferred validator if validator is about to be removed, add tests
* fix copy paste error
* only allow Active validators to be set to preferred validator
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2021-08-17 16:02:02 -04:00
Jon Cinque
99a6e95106
stake-pool: Optimizations for 4k validators ( #2041 )
...
* In-place serde
* Add cleanup instruction
* Add BigVec tests, clarify lifetimes
2021-07-08 22:50:28 +02:00
Jon Cinque
a081c2859b
stake-pool: Wait to apply new fee ( #1922 )
...
* Add `next_epoch_fee` field and fix serde
* Only update fee after the epoch is passed
* Update docs
2021-06-15 23:40:14 +00:00
Jon Cinque
450b2d511a
stake-pool: Add preferred deposit / withdraw validator accounts ( #1831 )
...
* stake-pool: Add set preferred validator instruction
* Add functionality for using the preferred deposit / withdraw
* Add CLI support
2021-06-01 12:45:27 +02:00