We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello guys! Found issue in my Staking contract (that was copypasted from yours): Nexus-Protocol/services-contracts#17
Your code here:
anchor-token-contracts/contracts/staking/src/contract.rs
Line 289 in cac5a72
If you pass block_height from the past this part:
block_height
let passed_blocks = std::cmp::min(s.1, block_height) - std::cmp::max(s.0, state.last_distributed);
will fail
The text was updated successfully, but these errors were encountered:
@pronvis Thanks for the report, yes that causes a problem in the query. We will reflect this in our new update.
Sorry, something went wrong.
No branches or pull requests
Hello guys!
Found issue in my Staking contract (that was copypasted from yours): Nexus-Protocol/services-contracts#17
Your code here:
anchor-token-contracts/contracts/staking/src/contract.rs
Line 289 in cac5a72
have the same issue
If you pass
block_height
from the past this part:will fail
The text was updated successfully, but these errors were encountered: