Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bank: allow maint weights to change over time #780

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

ckamm
Copy link
Contributor

@ckamm ckamm commented Nov 14, 2023

  • token_edit can set it up to gradually scale to new target values
  • security admin can abort an ongoing change via token_edit
  • all health computations are now time dependent and get the weight based on it
  • when the change is done, the keeper "cleans up" and moves the new values into the default fields

- token_edit can set it up to gradually scale to new target values
- security admin can abort an ongoing change via token_edit
- all health computations are now time dependent and get the weight
  based on it
- when the change is done, the keeper "cleans up" and moves the new
  values into the default fields
@github-actions github-actions bot added the program On-chain program changes label Nov 14, 2023
)
} else {
let scale = I80F48::from(now_ts - self.maint_weight_shift_start)
* self.maint_weight_shift_duration_inv;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any arguments for non-linear movement?

@github-actions github-actions bot added the client TS client changes label Nov 14, 2023
@ckamm ckamm force-pushed the ckamm/maint-weight-shift branch from 4385230 to 8c27698 Compare November 14, 2023 13:18
@ckamm ckamm merged commit 93d85c3 into dev Nov 14, 2023
31 of 33 checks passed
@ckamm ckamm deleted the ckamm/maint-weight-shift branch November 14, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client TS client changes program On-chain program changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants