This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Commit 2cefc84
committed
single-pool: remove minimum delegation check
this check is an artifact of a previous design. we used to
include the minimum in our pool stake total and burned tokens
when initializing so that it could not be withdrawn. later we
changed to treating it as separate from pool stake entirely.
therefore a post_pool_stake below minimum_delegation is valid
in the case where the first deposit is below 1 sol. this fix
allows such a deposit instead of returning a very frightening
error message1 parent 919d563 commit 2cefc84
File tree
4 files changed
+3
-8
lines changed- single-pool/program
- src
4 files changed
+3
-8
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | 865 | | |
871 | 866 | | |
872 | 867 | | |
| |||
0 commit comments