-
Notifications
You must be signed in to change notification settings - Fork 7
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
Stake: test for migrating the stake contract #432
Stake: test for migrating the stake contract #432
Conversation
some progress
contracts/stake/src/contract.rs
Outdated
fn unbond_deprecated(env: Env, sender: Address, stake_amount: i128, stake_timestamp: u64) { | ||
sender.require_auth(); | ||
env.storage() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is the new one, not the deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was a quick draft, I think I might be able to optimize both. Actually needed this because of how we check for pending rewards
fn withdraw_rewards_deprecated(env: Env, sender: Address) { | ||
env.storage() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old function were supposed to become a deprecated ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I understand is withdraw_rewards
from the current main branch is supposed to become withdraw_rewards_deprecated
and the function withdraw_rewards
is from the stake contract tag v1.0.0. Is it vice versa?
merging into the feature branch of the stake replacement |
No description provided.