From 11fd9081784e256aaabf49285105253c4e3d6b13 Mon Sep 17 00:00:00 2001 From: Foivos Date: Wed, 12 Jun 2024 14:50:09 +0300 Subject: [PATCH] add storage of estimation in start_swap --- move/squid/sources/squid/squid.move | 3 +++ 1 file changed, 3 insertions(+) diff --git a/move/squid/sources/squid/squid.move b/move/squid/sources/squid/squid.move index 3bd524a3..ca8de3af 100644 --- a/move/squid/sources/squid/squid.move +++ b/move/squid/sources/squid/squid.move @@ -33,6 +33,9 @@ module squid::squid { ctx, ); let mut swap_info = swap_info::new(data, ctx); + swap_info.coin_bag().store_estimate( + coin.value(), + ); swap_info.coin_bag().store_balance( coin.into_balance(), );