tx · Gjv6hNZfH8Pbz3vNLYGLvTCaWRtbo1yfAM4pG4J6CeLj

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01900000 Waves

2023.09.24 11:05 [2769229] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "Gjv6hNZfH8Pbz3vNLYGLvTCaWRtbo1yfAM4pG4J6CeLj", "fee": 1900000, "feeAssetId": null, "timestamp": 1695542771703, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "YVyNYo7rG6V6xopNZpzWWziT7Ys9tNiGLALQbZnMB46pmoaATfZ2dZiCRDTak5ieN2bxTzcrNeAWoXTNbQFMdRi" ], "script": "base64:BgIbCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEICAAHVmVyc2lvbgIFMS4wLjAADmRBcHBTaW5jZVN0YXJ0AMD394yqMQALbGlzdGluZ19mZWUAgJzJmwUACWtleTFvd25lcgkApwgBASAvzCPQT5h3KYI4s+Qe/JTLJXp/XTmuUdmGhLVoxaamewAJa2V5Mm93bmVyCQCnCAEBAAAIVHJlYXN1cnkJAKcIAQEgzkjfc3pzZ3kooMBny03g4HEHbv5A+Wp5Ghfc7qG4JAEAClhUTkFzc2V0SUQBILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAQljb3VudGRheXMABAdUU19EaWZmCQBlAggFCWxhc3RCbG9jawl0aW1lc3RhbXAFDmRBcHBTaW5jZVN0YXJ0BAlkYXludW1iZXIJAGsDAAEFB1RTX0RpZmYAgLiZKQUJZGF5bnVtYmVyBQFpAQxSZWdpc3RlclBhaXIBDEVudGVyQXNzZXRJRAQEcG10MQkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwAABARwbXQyCQEFdmFsdWU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1keRYgn5mT4JkTmph1Buy1mnNepLbqFqS9d5wo58h18 Next: Em7dy7kUchD7ge8aJ6fUeQrMz2TFYiYSGVXsW2Zftxa9 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let Version = "1.0.0"
5+
46 let dAppSinceStart = 1694928600000
57
6-let listing_fee = 140000000
8+let listing_fee = 1400000000
79
8-let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
10+let key1owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
911
10-let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
12+let key2owner = addressFromPublicKey(base58'')
13+
14+let Treasury = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp')
15+
16+let XTNAssetID = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
1117
1218 func countdays () = {
1319 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
2531 let WAVES = !(isDefined(pmt2.assetId))
2632 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2733 let assetinfopmt2 = fromBase58String(EnterAssetID)
28- let Currentday = countdays()
2934 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
3035 let name = info.name
3136 let decimals = info.decimals
4954 then throw((("Attached payment[3] amount has to be exact [" + toString(listing_fee)) + "/10^8] WAVES."))
5055 else if ((WAVES == true))
5156 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
52- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
57+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), ScriptTransfer(key1owner, fraction(listing_fee, 1, 2), unit), ScriptTransfer(key2owner, fraction(listing_fee, 1, 2), unit), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
5358 }
5459
5560
6570 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
6671 let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
6772 let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
68- let SwapFee = 3
73+ let SwapFee = 5
6974 let Currentday = countdays()
7075 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
7176 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
113118 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
114119 else if ((quantityofpriceasset > CheckXTNBalance))
115120 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
116- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, XTNAssetID)]
121+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), XTNAssetID)]
117122 }
118123
119124
129134 let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
130135 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
131136 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
132- let SwapFee = 3
137+ let SwapFee = 5
133138 let Currentday = countdays()
134139 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
135140 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
175180 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
176181 else if ((quantityofpriceasset > CheckAssetBalance))
177182 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
178- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
183+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
179184 }
180185
181186
182187
183188 @Callable(i)
184-func LatestAddLiquidity (EnterAssetID) = {
189+func AddLiquidity (EnterAssetID) = {
185190 let calleraddress = toBase58String(i.caller.bytes)
186191 let pmt1 = value(i.payments[0])
187192 let pmt2 = value(i.payments[1])
233238 else if ((1 > getSqrt))
234239 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
235240 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)]
236- }
237-
238-
239-
240-@Callable(i)
241-func AddLiquidity (EnterAssetID) = {
242- let calleraddress = toBase58String(i.caller.bytes)
243- let pmt1 = value(i.payments[0])
244- let pmt2 = value(i.payments[1])
245- let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
246- let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
247- let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
248- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
249- let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
250- let decimals = decimalsinfo.decimals
251- let arg1 = CheckXTNBalance
252- let arg2 = CheckAssetBalance
253- let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
254- let bothassetsdecimals = (6 + decimals)
255- let sharedecimals = (bothassetsdecimals / 2)
256- let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
257- let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, CEILING)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, sharedecimals, DOWN)
258- let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
259- case a: Int =>
260- a
261- case _ =>
262- 0
263- }
264- let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
265- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
266- case a: Int =>
267- a
268- case _ =>
269- 0
270- }
271- let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
272- let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
273- case a: Int =>
274- a
275- case _ =>
276- 0
277- }
278- let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
279- if ((checkpairisavailableornot != EnterAssetID))
280- then throw("Pair is not available in Whitelisted Asset.")
281- else if ((EnterAssetID == toBase58String(XTNAssetID)))
282- then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].")
283- else if ((size(i.payments) != 2))
284- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of XTN Token.")
285- else if ((pmt1.assetId == XTNAssetID))
286- then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
287- else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
288- then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
289- else if ((pmt2.assetId != XTNAssetID))
290- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
291- else if ((5000000 > pmt2.amount))
292- then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
293- else if ((pmt2.amount != quantityofEnterAssetID))
294- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " XTN."))
295- else if ((1 > quantityofLPToken1))
296- then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
297- else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
298241 }
299242
300243
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let Version = "1.0.0"
5+
46 let dAppSinceStart = 1694928600000
57
6-let listing_fee = 140000000
8+let listing_fee = 1400000000
79
8-let XTNAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
10+let key1owner = addressFromPublicKey(base58'4Dahqn4MYNrieo9AX8qLWNCseBQNc9skQY81h4DFoote')
911
10-let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
12+let key2owner = addressFromPublicKey(base58'')
13+
14+let Treasury = addressFromPublicKey(base58'EtFSDsn89XfmXQvuQXPQMbLDbaAZ1YWYZHksptpQH4gp')
15+
16+let XTNAssetID = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
1117
1218 func countdays () = {
1319 let TS_Diff = (lastBlock.timestamp - dAppSinceStart)
1420 let daynumber = fraction(1, TS_Diff, 86400000)
1521 daynumber
1622 }
1723
1824
1925 @Callable(i)
2026 func RegisterPair (EnterAssetID) = {
2127 let pmt1 = value(i.payments[0])
2228 let pmt2 = value(i.payments[1])
2329 let pmt3 = value(i.payments[2])
2430 let currentKey = toBase58String(i.caller.bytes)
2531 let WAVES = !(isDefined(pmt2.assetId))
2632 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2733 let assetinfopmt2 = fromBase58String(EnterAssetID)
28- let Currentday = countdays()
2934 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
3035 let name = info.name
3136 let decimals = info.decimals
3237 let LPdecimals = fraction((decimals + 6), 1, 2)
3338 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
3439 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
3540 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
3641 let LPissue = Issue((("LP-" + take(name, 8)) + "-XTN"), (((("LP-" + name) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), getSqrt, LPdecimals, true)
3742 let LPid = calculateAssetId(LPissue)
3843 if ((fetchpair == EnterAssetID))
3944 then throw("Pair Already Exist in List.")
4045 else if ((size(i.payments) != 3))
4146 then throw((("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List & payment3 = [" + toString(listing_fee)) + "/10^8] Waves."))
4247 else if ((pmt1.assetId != XTNAssetID))
4348 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4449 else if ((100000 > pmt1.amount))
4550 then throw("Attached payment[1] amount is less than 0.1 XTN, please attach 0.1 XTN Minimum.")
4651 else if ((pmt2.assetId != assetinfopmt2))
4752 then throw("Input String & Attached AssetID in payment2 is not matching.")
4853 else if ((pmt3.amount != listing_fee))
4954 then throw((("Attached payment[3] amount has to be exact [" + toString(listing_fee)) + "/10^8] WAVES."))
5055 else if ((WAVES == true))
5156 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
52- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(((((toString(Currentday) + "_Day_Volume_") + toBase58String(XTNAssetID)) + "_") + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
57+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt3.amount), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), pmt1.amount), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), pmt2.amount), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), LPissue, ScriptTransfer(i.caller, getSqrt, LPid), ScriptTransfer(key1owner, fraction(listing_fee, 1, 2), unit), ScriptTransfer(key2owner, fraction(listing_fee, 1, 2), unit), StringEntry(("LP_" + EnterAssetID), toBase58String(LPid)), IntegerEntry(("Total_LP_" + EnterAssetID), getSqrt)]
5358 }
5459
5560
5661
5762 @Callable(i)
5863 func SwapAssetToXTNPairEntry (EnterAssetID) = {
5964 let calleraddress = toBase58String(i.caller.bytes)
6065 let pmt = if ((size(i.payments) == 1))
6166 then i.payments[0]
6267 else throw("Whitelisted Token is required as Attached payment[1].")
6368 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
6469 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
6570 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
6671 let newbalanceofXTN = fraction(CheckXTNBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
6772 let quantityofpriceasset = (CheckXTNBalance - newbalanceofXTN)
68- let SwapFee = 3
73+ let SwapFee = 5
6974 let Currentday = countdays()
7075 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
7176 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
7277 let SumupofAssetToXTNSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
7378 case a: Int =>
7479 a
7580 case _ =>
7681 0
7782 }
7883 let NewSumupofAssetToXTNSwapFee = ((SumupofAssetToXTNSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
7984 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
8085 case a: Int =>
8186 a
8287 case _ =>
8388 0
8489 }
8590 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
8691 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
8792 case a: Int =>
8893 a
8994 case _ =>
9095 0
9196 }
9297 let NewSumupofXTNBalance = ((CheckXTNBalance - quantityofpriceasset) + SwapFeetoreceive)
9398 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
9499 case a: Int =>
95100 a
96101 case _ =>
97102 0
98103 }
99104 let NewTPT = (TOPT + 1)
100105 if ((EnterAssetID == toBase58String(XTNAssetID)))
101106 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
102107 else if ((checkpairisavailableornot != EnterAssetID))
103108 then throw("Pair is not available in Whitelisted Asset.")
104109 else if ((pmt.assetId == XTNAssetID))
105110 then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
106111 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
107112 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
108113 else if ((CheckXTNBalance == 0))
109114 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
110115 else if ((CheckAssetBalance == 0))
111116 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
112117 else if ((100000 > quantityofpriceasset))
113118 then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
114119 else if ((quantityofpriceasset > CheckXTNBalance))
115120 then throw((("Pool Only has a Liquidity of " + toString((CheckXTNBalance / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
116- else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, XTNAssetID)]
121+ else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofAssetToXTNSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, XTNAssetID), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), XTNAssetID), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), XTNAssetID)]
117122 }
118123
119124
120125
121126 @Callable(i)
122127 func SwapXTNToAssetPairEntry (EnterAssetID) = {
123128 let calleraddress = toBase58String(i.caller.bytes)
124129 let pmt = if ((size(i.payments) == 1))
125130 then i.payments[0]
126131 else throw((("Only " + toBase58String(XTNAssetID)) + " XTN Token is required as an Attached payment[1]."))
127132 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
128133 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
129134 let newbalanceofAsset = fraction(CheckXTNBalance, CheckAssetBalance, (CheckXTNBalance + pmt.amount))
130135 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
131136 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
132- let SwapFee = 3
137+ let SwapFee = 5
133138 let Currentday = countdays()
134139 let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
135140 let userbalancetoreceive = ((quantityofpriceasset - SwapFeetoreceive) - SwapFeetoreceive)
136141 let SumupofXTNToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
137142 case a: Int =>
138143 a
139144 case _ =>
140145 0
141146 }
142147 let NewSumupofXTNToAssetSwapFee = ((SumupofXTNToAssetSwapFee + SwapFeetoreceive) + SwapFeetoreceive)
143148 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
144149 case a: Int =>
145150 a
146151 case _ =>
147152 0
148153 }
149154 let NewSumupofAssetBalance = ((CheckAssetBalance - quantityofpriceasset) + SwapFeetoreceive)
150155 let SumupXTNBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
151156 case a: Int =>
152157 a
153158 case _ =>
154159 0
155160 }
156161 let NewSumupofXTNBalance = (CheckXTNBalance + pmt.amount)
157162 let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
158163 case a: Int =>
159164 a
160165 case _ =>
161166 0
162167 }
163168 let NewTPT = (TOPT + 1)
164169 if ((checkpairisavailableornot != EnterAssetID))
165170 then throw("Pair is not available in Whitelisted Asset.")
166171 else if ((EnterAssetID == toBase58String(XTNAssetID)))
167172 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
168173 else if ((pmt.assetId != XTNAssetID))
169174 then throw("You can Attach XTN as an Attached Payment[1] to Swap XTN To Required Token. Any other asset else than XTN will be rejected.")
170175 else if ((100000 > pmt.amount))
171176 then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
172177 else if ((CheckXTNBalance == 0))
173178 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
174179 else if ((CheckAssetBalance == 0))
175180 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
176181 else if ((quantityofpriceasset > CheckAssetBalance))
177182 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
178- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))]
183+ else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofXTNToAssetSwapFee), IntegerEntry("Current_Day", Currentday), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewSumupofXTNBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(key1owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(key2owner, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID)), ScriptTransfer(Treasury, fraction(SwapFeetoreceive, 1, 3), fromBase58String(EnterAssetID))]
179184 }
180185
181186
182187
183188 @Callable(i)
184-func LatestAddLiquidity (EnterAssetID) = {
189+func AddLiquidity (EnterAssetID) = {
185190 let calleraddress = toBase58String(i.caller.bytes)
186191 let pmt1 = value(i.payments[0])
187192 let pmt2 = value(i.payments[1])
188193 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
189194 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
190195 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
191196 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
192197 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
193198 let decimals = decimalsinfo.decimals
194199 let LPdecimals = fraction((decimals + 6), 1, 2)
195200 let FirstLPQty = (1 * pow(10, 0, LPdecimals, 0, 0, CEILING))
196201 let multiply_amounts = fraction(pmt1.amount, pmt2.amount, FirstLPQty)
197202 let getSqrt = sqrt(multiply_amounts, LPdecimals, LPdecimals, CEILING)
198203 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
199204 case a: Int =>
200205 a
201206 case _ =>
202207 0
203208 }
204209 let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
205210 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
206211 case a: Int =>
207212 a
208213 case _ =>
209214 0
210215 }
211216 let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
212217 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
213218 case a: Int =>
214219 a
215220 case _ =>
216221 0
217222 }
218223 let NewLPTokenIssued = (LPTokenIssued + getSqrt)
219224 if ((checkpairisavailableornot != EnterAssetID))
220225 then throw("Pair is not available in Whitelisted Asset.")
221226 else if ((EnterAssetID == toBase58String(XTNAssetID)))
222227 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].")
223228 else if ((size(i.payments) != 2))
224229 then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.")
225230 else if ((pmt1.assetId == XTNAssetID))
226231 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
227232 else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
228233 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
229234 else if ((pmt2.assetId != XTNAssetID))
230235 then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
231236 else if ((100000 > pmt2.amount))
232237 then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]")
233238 else if ((1 > getSqrt))
234239 then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
235240 else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, getSqrt, true), ScriptTransfer(i.caller, getSqrt, ReissueassetId)]
236- }
237-
238-
239-
240-@Callable(i)
241-func AddLiquidity (EnterAssetID) = {
242- let calleraddress = toBase58String(i.caller.bytes)
243- let pmt1 = value(i.payments[0])
244- let pmt2 = value(i.payments[1])
245- let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
246- let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
247- let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
248- let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
249- let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
250- let decimals = decimalsinfo.decimals
251- let arg1 = CheckXTNBalance
252- let arg2 = CheckAssetBalance
253- let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
254- let bothassetsdecimals = (6 + decimals)
255- let sharedecimals = (bothassetsdecimals / 2)
256- let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, CEILING))
257- let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, CEILING)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, sharedecimals, DOWN)
258- let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
259- case a: Int =>
260- a
261- case _ =>
262- 0
263- }
264- let NewXTNHoldingInPair = (XTNHoldingInPair + pmt2.amount)
265- let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
266- case a: Int =>
267- a
268- case _ =>
269- 0
270- }
271- let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
272- let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
273- case a: Int =>
274- a
275- case _ =>
276- 0
277- }
278- let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
279- if ((checkpairisavailableornot != EnterAssetID))
280- then throw("Pair is not available in Whitelisted Asset.")
281- else if ((EnterAssetID == toBase58String(XTNAssetID)))
282- then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach XTN as an attachment Token in payment[2].")
283- else if ((size(i.payments) != 2))
284- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of XTN Token.")
285- else if ((pmt1.assetId == XTNAssetID))
286- then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
287- else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
288- then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
289- else if ((pmt2.assetId != XTNAssetID))
290- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
291- else if ((5000000 > pmt2.amount))
292- then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
293- else if ((pmt2.amount != quantityofEnterAssetID))
294- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(quantityofEnterAssetID)) + "] or ") + toString(fraction(quantityofEnterAssetID, 1, 1000000))) + ".") + takeRight(toString(quantityofEnterAssetID), 6)) + " XTN."))
295- else if ((1 > quantityofLPToken1))
296- then throw((("LP Token Outcome is going below " + toString(sharedecimals)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
297- else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)]
298241 }
299242
300243
301244
302245 @Callable(i)
303246 func RemoveLiquidity (EnterAssetID) = {
304247 let calleraddress = toBase58String(i.caller.bytes)
305248 let pmt = if ((size(i.payments) == 1))
306249 then i.payments[0]
307250 else throw("No payment attached, Please Attach LP Token as payment[1].")
308251 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
309252 let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
310253 let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
311254 let decimals = decimalsinfo.decimals
312255 let bothassetsdecimals = (6 + decimals)
313256 let sharedecimals = (bothassetsdecimals / 2)
314257 let CheckTotalLPAmount = getIntegerValue(this, ("Total_LP_" + EnterAssetID))
315258 let UserLPPercentage = pow(fraction(pmt.amount, pow(10, 0, 8, 0, 0, CEILING), CheckTotalLPAmount), 6, 1, 0, 6, CEILING)
316259 let CheckXTNBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)))
317260 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID))
318261 let UserLPWorthXTN = fraction(CheckXTNBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
319262 let UserLPWorthAsset = fraction(CheckAssetBalance, UserLPPercentage, pow(10, 0, 8, 0, 0, CEILING))
320263 let XTNHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID))) {
321264 case a: Int =>
322265 a
323266 case _ =>
324267 0
325268 }
326269 let NewXTNHoldingInPair = (XTNHoldingInPair - UserLPWorthXTN)
327270 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID)) {
328271 case a: Int =>
329272 a
330273 case _ =>
331274 0
332275 }
333276 let NewAssetHoldingInPair = (AssetHoldingInPair - UserLPWorthAsset)
334277 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
335278 case a: Int =>
336279 a
337280 case _ =>
338281 0
339282 }
340283 let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
341284 if ((checkpairisavailableornot != EnterAssetID))
342285 then throw("Pair is not available in Whitelist.")
343286 else if ((fromBase58String(EnterAssetID) == XTNAssetID))
344287 then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
345288 else if ((pmt.assetId != ReissueableassetId))
346289 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
347290 else if ((1 > UserLPPercentage))
348291 then throw("Your LP Token amount % is very low to convert.")
349292 else if ((1 > UserLPWorthXTN))
350293 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
351294 else if ((1 > UserLPWorthAsset))
352295 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
353296 else [IntegerEntry("Withdraw_LP_Percentage", UserLPPercentage), Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(XTNAssetID)), NewXTNHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(XTNAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorthXTN, XTNAssetID), ScriptTransfer(i.caller, UserLPWorthAsset, fromBase58String(EnterAssetID))]
354297 }
355298
356299
357300 @Verifier(tx)
358301 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
359302

github/deemru/w8io/169f3d6 
71.30 ms