Skip to content

Commit

Permalink
refactor(profit): Local variable: state -> next_state
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Jun 7, 2023
1 parent e8207f1 commit 4903107
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/profit/src/state/buy_back.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ impl SwapTask for BuyBack {
let bank_response: PlatformResponse =
Profit::transfer_nls(account, self.config.treasury(), balance_nls, env);

let state: Idle = Idle::new(self.config, self.account);
let next_state: Idle = Idle::new(self.config, self.account);

Ok(DexResponse::<State> {
response: state
response: next_state
.enter(env.block.time, querier)
.map(PlatformResponse::messages_only)
.map(|state_response: PlatformResponse| state_response.merge_with(bank_response))?,
next_state: State(StateEnum::Idle(state)),
next_state: State(StateEnum::Idle(next_state)),
})
}
}
Expand Down

0 comments on commit 4903107

Please sign in to comment.