Skip to content

Commit

Permalink
Merge pull request #4 from VolumeFi/bugfix/remaining_count
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
taariq authored Jan 5, 2024
2 parents 959c56d + 5d1d18b commit dc24ff7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ pub mod execute {
)))
}
tokens.push(Token::Array(tokens_callback_args));
tokens.push(Token::Uint(Uint::from_big_endian(
&remaining_count.to_be_bytes(),
)));
WITHDRAW_TIMESTAMP.save(
deps.storage,
(bot_id.to_string(), remaining_count.to_string()),
Expand All @@ -180,6 +183,9 @@ pub mod execute {
)))
}
tokens.push(Token::Array(tokens_callback_args));
tokens.push(Token::Uint(Uint::from_big_endian(
&remaining_count.to_be_bytes(),
)));
WITHDRAW_TIMESTAMP.save(
deps.storage,
(bot_id.to_string(), remaining_count.to_string()),
Expand Down

0 comments on commit dc24ff7

Please sign in to comment.