-
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: pay rewards during unbond #170
Conversation
…ltihop: formatting
56af681
to
aa5de26
Compare
Also you did nothing on multihop, so the title is misleading. |
contracts/stake/src/tests/bond.rs
Outdated
staking.fund_distribution(&owner, &0u64, &10_000u64, &lp_token.address, &AMOUNT); | ||
|
||
env.ledger().with_mut(|li| { | ||
li.timestamp = WITHDRAW_TIMESTAMP; | ||
}); |
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.
You created a distribution ranging from timestamp 0 to timestamp 10_000, and you immediately jump 2000 seconds ahead. Why?
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.
I chose numbers based on other places in our code where we change the ledger().timestamp. Do the numbers we use matter?
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.
LGTM
Add this to the changelog please.
No description provided.