Skip to content

Commit

Permalink
add storage of estimation in start_swap
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jun 12, 2024
1 parent c32c380 commit 11fd908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions move/squid/sources/squid/squid.move
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ module squid::squid {
ctx,
);
let mut swap_info = swap_info::new(data, ctx);
swap_info.coin_bag().store_estimate<T>(
coin.value(),
);
swap_info.coin_bag().store_balance(
coin.into_balance(),
);
Expand Down

0 comments on commit 11fd908

Please sign in to comment.