Skip to content

Commit

Permalink
fix: clippy warnings about docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Aug 7, 2024
1 parent 4cd9f35 commit b005765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions contracts/hub-tf/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,10 @@ pub fn harvest(deps: DepsMut, env: Env) -> StdResult<Response> {

/// NOTE:
/// 1. When delegation Native denom here, we don't need to use a `SubMsg` to handle the received
/// coins,
/// because we have already withdrawn all claimable staking rewards previously in the same atomic
/// execution.
/// coins, because we have already withdrawn all claimable staking rewards previously in the same
/// atomic execution.
/// 2. Same as with `bond`, in the latest implementation we only delegate staking rewards with the
/// validator that has the smallest delegation amount.
/// validator that has the smallest delegation amount.
pub fn reinvest(deps: DepsMut, env: Env) -> StdResult<Response> {
let state = State::default();
let denom = state.denom.load(deps.storage)?;
Expand Down
7 changes: 3 additions & 4 deletions contracts/hub/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,10 @@ pub fn harvest(deps: DepsMut, env: Env) -> StdResult<Response> {

/// NOTE:
/// 1. When delegation Native denom here, we don't need to use a `SubMsg` to handle the received
/// coins,
/// because we have already withdrawn all claimable staking rewards previously in the same atomic
/// execution.
/// coins, because we have already withdrawn all claimable staking rewards previously in the same
/// atomic execution.
/// 2. Same as with `bond`, in the latest implementation we only delegate staking rewards with the
/// validator that has the smallest delegation amount.
/// validator that has the smallest delegation amount.
pub fn reinvest(deps: DepsMut, env: Env) -> StdResult<Response> {
let state = State::default();
let denom = state.denom.load(deps.storage)?;
Expand Down

0 comments on commit b005765

Please sign in to comment.