Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TLDR Summary:
PR Combo:
[UXD] Changes updates recap:
credix_treasury
->credix_treasury_pool
credix_multisig
->credix_treasury
treasury_pool
withcredix_treasury
which are now 2 completely different thingswithdraw_request
[CREDIX] Change Log:
Breaking:
feat: Membership fee calculations are not based on the yearly outstanding principal
For Integrators:
Required changes for integrators in there smart contract:
If any field example(is_active, is_investor) from the credix pass is used. Replace it with (is_active(), is_investor()...)
Remove withdraw Request accounts from the cpi calls.
Mark withdraw epoch mutable if it is already not when creating withdraw request or redeeming withdraw requests.
For Redeem withdraw request and withdraw funds. Change the credix_muiltisig -> credix_treasury. And Credix_muiltisig_token_account-> credix_treasury_token_account. The correct credix_treasury address is in program_state account of credix program.
To get the max amounts that can be withdrawn in the withdraw Epoch. We have provided a function in the rust client.
Changes required for there local setup: