You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if destination denom, then we simply transfers cw20 to the receiver address.
539
539
if destination_denom.is_empty(){
540
540
returntrue;
541
541
}
542
-
// special case, if inital receiver asset info is native orai (fee denom in this case), and the destination is also orai => we just transfer instead of swapping
543
-
// the reason is that orai is the central asset info for swapping. There's no ORAI/ORAI pair
544
-
if initial_receive_asset_info.eq(&AssetInfo::NativeToken{
545
-
denom: fee_denom.to_string(),
546
-
}
547
-
.to_string())
548
-
&& destination_denom.eq(fee_denom)
549
-
{
550
-
returntrue;
551
-
}
552
542
false
553
543
}
554
544
@@ -563,6 +553,9 @@ pub fn build_swap_operations(
563
553
denom: fee_denom.to_string(),
564
554
};
565
555
letmut swap_operations = vec![];
556
+
if receiver_asset_info.eq(&initial_receive_asset_info){
557
+
returnvec![];
558
+
}
566
559
if initial_receive_asset_info.ne(&fee_denom_asset_info){
0 commit comments