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

Milestone 3 completion #390

Merged

Conversation

itsHaseebSaeed
Copy link

  • Added Query_auth

  • Updated lb_staking staking algorithm

  • Added Protections to disallow recovering the staked token

Copy link

codecov bot commented Jan 10, 2024

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (f20dcf7) 81.68% compared to head (2328cff) 82.05%.
Report is 2 commits behind head on liquidity-orderbook-develop.

Files Patch % Lines
contracts/liquidity_book/lb_staking/src/execute.rs 89.47% 16 Missing ⚠️
...ontracts/liquidity_book/lb_staking/src/contract.rs 82.22% 8 Missing ⚠️
contracts/liquidity_book/lb_token/src/contract.rs 12.50% 7 Missing ⚠️
contracts/liquidity_book/lb_token/src/execute.rs 91.42% 3 Missing ⚠️
packages/multi_test/src/interfaces/lb_pair.rs 0.00% 3 Missing ⚠️
...c/contract_interfaces/liquidity_book/lb_staking.rs 25.00% 3 Missing ⚠️
contracts/liquidity_book/lb_staking/src/query.rs 94.73% 2 Missing ⚠️
packages/multi_test/src/interfaces/lb_staking.rs 97.46% 2 Missing ⚠️
contracts/liquidity_book/lb_pair/src/state.rs 0.00% 1 Missing ⚠️
packages/multi_test/src/interfaces/lb_token.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           liquidity-orderbook-develop     #390      +/-   ##
===============================================================
+ Coverage                        81.68%   82.05%   +0.37%     
===============================================================
  Files                              198      200       +2     
  Lines                            29971    30067      +96     
===============================================================
+ Hits                             24481    24671     +190     
+ Misses                            5490     5396      -94     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Some(e) => Ok(e),
None => Err(StdError::generic_err("Reward token storage already exists")),
}?;

loop {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this loop is needed, if it is it should be reworked to a for loop or iterating an object/series

.may_load(deps.storage, state.epoch_index)?
.ok_or_else(|| StdError::generic_err("Reward token storage does not exist"))?;

loop {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

@itsHaseebSaeed itsHaseebSaeed merged commit 495b261 into liquidity-orderbook-develop Jan 24, 2024
10 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants