"+n.Name+"<\/div>(
"+n.Network+"<\/div>)<\/div>"}function validateAmount(){$(".wrap #warning").html("");AjaxCall("/api/AmountRange","GET",{fromCurrency:$(".from_currency #FromCurrency").val(),fromNetwork:$(".from_currency #FromNetwork").val(),toCurrency:$(".to_currency #ToCurrency").val(),toNetwork:$(".to_currency #ToNetwork").val()},function(n){$("#min_send").html("-");$("#max_send").html("-");n.Data.MinAmount!=null&&($("#min_send").html(n.Data.MinAmount),$(".from_currency #FromAmount").val()n.Data.MaxAmount&&($(".from_currency #FromAmount").val(n.Data.MaxAmount),$("#max_send").html(n.Data.MaxAmount)));n.Data.Message&&$(".wrap #warning").html(n.Data.Message);EstimatedAmount()},".loading","d-block")}function EstimatedAmount(){AjaxCall("/api/EstimatedAmount","GET",{fromCurrency:$(".from_currency #FromCurrency").val(),fromNetwork:$(".from_currency #FromNetwork").val(),toCurrency:$(".to_currency #ToCurrency").val(),toNetwork:$(".to_currency #ToNetwork").val(),fromAmount:$(".from_currency #FromAmount").val(),toAmount:$(".to_currency #to_amount").val()},function(n){$(".confirmswap #confirm").attr("disabled",!0);$(".swapbox #submit").attr("disabled",!0);$(".to_currency #to_amount").val(n.Data.ToAmount);n.Data.ToAmount>0&&($(".confirmswap #confirm").attr("disabled",!1),$(".swapbox #submit").attr("disabled",!1))},".loading","d-block")}InitialStartUP("usdt-trx","usdt-eth",1);$("#from_currency").select2({ajax:{url:"/api/ListOfAvailableCurrencies",dataType:"json",delay:250,data:function(n){return{q:n.term,page:n.page}},processResults:function(n,t){return t.page=t.page||1,{results:n.items,pagination:{more:t.page*30