Tyera Eulberg
f4c5fdcfcf
Bump solana to v1.9.9 ( #2902 )
2022-02-23 16:20:55 -07:00
Jon Cinque
58c1226a51
stake-pool: Bump version, add to Anchor ( #2921 )
2022-02-16 17:03:39 +01:00
Jon Cinque
1411d8b4fd
stake-pool: Option to use transfer + allocate + assign for PDA ( #2920 )
2022-02-16 16:22:46 +01:00
Tyera Eulberg
83c3ffad25
Bump solana crates to v1.9.5 ( #2780 )
...
* Bump solana crates to v1.9.5
* Update sol_set_return_data type signature and un-ignore test
2022-01-21 22:52:10 -07:00
Jon Cinque
81f50127f1
token: Bump version to 3.3.0 ( #2765 )
2022-01-21 01:47:02 +01:00
Tyera Eulberg
f4e0cae144
Fix up helper to create rent-exempt accounts ( #2720 )
2022-01-08 15:51:17 -07:00
Dmitri Makarov
65b49073f4
Decrease the stake pool size due to the new mem op syscall base cost ( #2705 )
2022-01-05 14:26:13 -08:00
Jon Cinque
6ee008d256
Update SDK to 1.9.2, fix warnings ( #2674 )
...
* Update SDK to 1.9.2, fix warnings
* Upgrade honggfuzz
* Use `get_latest_blockhash` correctly
2021-12-28 23:02:47 -05:00
Jon Cinque
1f4b65153f
Update tests to prepare for `BanksClientError` ( #2657 )
...
* Update tests to prepare for `BanksClientError`
* Remove import from record tests
2021-12-23 13:08:06 -05:00
Jon Cinque
8c9f8a0088
stake-pool: Reduce maximum pool size ( #2654 )
...
* stake-pool: Reduce huge pool size in tests
* stake-pool: Reduce supported maximum size
2021-12-21 13:10:12 +01:00
Jon Cinque
ba08b6e662
stake-pool: Mint extra reserve lamports as pool tokens on init ( #2636 )
...
* stake-pool: Mint extra reserve lamports as pool tokens on init
* Wait more aggressively in py test
* Simplify test
2021-12-14 18:45:15 +01:00
Jon Cinque
d5ac6b883b
stake-pool-py: Add simple rebalance bot ( #2630 )
...
* stake-pool-py: Add simple rebalance bot
* Fixup test
* Refactor flaky tests
* Create vote earlier in test
* Duplicate create_vote call causes stall
* Wait more aggressively
2021-12-13 13:17:07 +01:00
Michael Vines
1a0155e34b
Update to Rust 1.57.0
2021-12-09 23:56:47 -08:00
Jon Cinque
8aef395901
stake-pool: Bump CLI and program version to 0.6.3 ( #2555 )
2021-11-02 22:15:33 +01:00
Jon Cinque
01765b9953
stake-pool: Reduce wait for active stake merges ( #2553 )
...
* stake-pool: Reduce wait to one epoch for active merges
* Remove stake_program references
* Remove credits observed point from docs
2021-11-01 15:14:49 +01:00
Jon Cinque
cd3f5ae9fe
stake-pool: Add test for withdrawing all, with fee ( #2550 )
2021-10-26 22:50:16 +02:00
Michael Vines
9acb082dc3
Upgrade to Solana v1.8.1
2021-10-20 22:52:19 -07:00
Jon Cinque
4ab60e6794
stake-pool: Also set the sol deposit authority on init ( #2532 )
2021-10-20 01:45:00 +02:00
Jon Cinque
c5e7ae736e
stake-pool: Add comment to validator stake info field ( #2527 )
2021-10-19 17:19:10 +02:00
Jon Cinque
1a48523a80
stake-pool: Remove copied stake program code (mostly) ( #2526 )
...
* stake-pool: Remove (mostly) the copied stake program
* Remove references to stake_program in CLI
2021-10-19 16:48:56 +02:00
Jon Cinque
f95e390dd4
stake-pool: Clarify stake deposit fee ( #2520 )
2021-10-19 12:26:50 +02:00
Jon Cinque
3b48fa09d3
stake-pool: Cleanup documentation in code ( #2525 )
2021-10-19 01:50:35 +02:00
Jon Cinque
4658815e9f
stake-pool: Force pools to only use the SPL token program ( #2521 )
2021-10-19 01:39:57 +02:00
Jon Cinque
7f0278caa8
stake-pool: Add checked math to big vec calc ( #2524 )
2021-10-19 00:46:49 +02:00
Jon Cinque
f97c61a9ed
stake-pool: Initialize all pool fields explicitly ( #2523 )
2021-10-19 00:46:39 +02:00
Jon Cinque
50b5597fcf
stake-pool: Improve error when overdrawing on decrease ( #2522 )
2021-10-19 00:45:46 +02:00
Michael Vines
12732f8d5a
Upgrade to Solana 1.8.0
2021-10-12 09:40:06 -07:00
Jon Cinque
13375afff2
stake-pool: Add last epoch values for APR calculation ( #2491 )
...
* stake-pool: Add last epoch values for APR calculation
* Bump versions for release
2021-10-07 00:01:15 -04:00
Jon Cinque
3d52925865
stake-pool: Bump version for 0.6.0 release ( #2487 )
2021-10-06 00:11:20 -04:00
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
5337a4f17f
stake-pool: Use `matches!` to allow for fix in underlying error ( #2453 )
2021-09-26 23:58:30 +02:00
Jon Cinque
562fd6d97f
stake-pool: Bump versions and update id for deployment ( #2384 )
2021-09-08 13:00:32 +02:00
Jon Cinque
87a5c79347
stake-pool: Reduce minimum stake per validator to 0.001 SOL ( #2373 )
...
* stake-pool: Reduce minimum stake per validator to 0.01 SOL
* Lower the limit to 0.001 SOL
2021-09-08 02:10:31 +02:00
Jon Cinque
87b74cfa4c
stake-pool: Combine create stake and add validator ( #2371 )
2021-09-03 00:54:51 +02: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
dependabot[bot]
3fcfb999d1
build(deps): bump serde from 1.0.129 to 1.0.130 ( #2361 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.129 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.129...v1.0.130 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 11:13:17 +00:00
Michael Vines
4406265d4a
Upgrade to Solana 1.7.11
2021-08-30 12:41:08 -07:00
dependabot[bot]
1f97833cdd
build(deps): bump serde from 1.0.128 to 1.0.129 ( #2322 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.128 to 1.0.129.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.129 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-24 11:17:42 +00:00
dependabot[bot]
4b7898cb2b
build(deps): bump serde from 1.0.127 to 1.0.128 ( #2318 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.127 to 1.0.128.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 11:29:51 +00: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
jon-chuang
25cc0cffc5
stake-pool: seed suffix to allow creating & discarding multiple transient stake accs ( #2298 )
...
* seed suffix to allow creating & discarding multiple transient stake accs
* "suffix"
* fix tests, memcmp and len, reorder struct fields
* remove proptest
2021-08-20 01:14:42 -04:00
jon-chuang
4b0f59e9c6
Use stake pool's declared token ID rather than hard-coded ( #2286 )
...
* fix
* tests use hard-coded `&spl_token::id()` - fine since we need a baseline
* use spl_token::id
2021-08-17 16:36:32 -04:00
jon-chuang
e168a5db92
stake-pool: skip manager fee if invalid account, check new manager fee owned by `spl_token` ( #2277 )
...
* fix
* add check if new manager fee is spl token program
* Convert manager fee info check to fail only inside `Result` box
* update also checks validity of manager fee info
* clippy
2021-08-17 16:32:47 -04:00
jon-chuang
494ef1d54e
stake-pool: `DepositStake` only issues tokens for `delegation.stake` + `min(undelegated_stake_rent, additional_lamports)` ( #2270 )
...
* charge fees for `sol_deposit_lamports` in `DepositStake` separately
* do not add extra lamports beyond rent
* change name: `additional_lamports`
* fix: put `meta_exempt_reserve` limit on additional lamports instead
* debugging tools
* saturating_add
* make rent quota conditional
* eagerly update total_stake_lamports
* fix tests to reflect increase in `total_staked_lamports`
2021-08-17 16:27:50 -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
dependabot[bot]
6900c7815f
build(deps): bump num_enum from 0.5.3 to 0.5.4 ( #2293 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.3...0.5.4 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-17 11:15:31 +00:00
Jon Cinque
b4b9763a00
stake-pool: Cleanup comments and rename functions ( #2283 )
2021-08-14 01:15:50 -04:00
jon-chuang
05325a511d
fix ( #2278 )
2021-08-14 00:30:37 -04:00
Han Yang
11a5551446
fix: stake-pool require signature in SetManager ( #2273 )
...
* add check for new_manager's signature in SetManager
* cli arg edit
2021-08-14 00:16:43 -04:00
jon-chuang
974541c158
stake-pool: Update fee changes only once per epoch ( #2269 )
...
* fix
* test for withdrawal fee
* merge conflict changes
2021-08-14 00:09:33 -04:00