tx · HRQE2tJ8bv3NBjnUEABuVAmG2GsqSUigivLj8HTLJa92

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01900000 Waves

2023.09.23 12:28 [2767843] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "HRQE2tJ8bv3NBjnUEABuVAmG2GsqSUigivLj8HTLJa92", "fee": 1900000, "feeAssetId": null, "timestamp": 1695461356282, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "2VsBYRGvnqRhmxZcBhJjzVzLwBjBDuMy5NJopWtK34FJPJCq4AhCtpjyNhazgkAmMekyeGW1JAuazAn16uQeBQ1F" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgEAA5kQXBwU2luY2VTdGFydADA9/eMqjEAClhUTkFzc2V0SUQBIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCAUEcG10Mgdhc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C4wMDAwMDEgWFROLgMJAGYCAAEFEFVzZXJMUFdvcnRoQXNzZXQJAAIBAlxZb3VyIExQIFRva2VuIGNvbnZlcnNpb24gYW1vdW50IGlzIHZlcnkgbG93IHRvIGNvbnZlcnQgb3IgbGVzcyB0aGFuIGZyYWN0aW9uIHZhbHVlIG9mIFRva2VuLgkAzAgCCQEMSW50ZWdlckVudHJ5AgIWV2l0aGRyYXdfTFBfUGVyY2VudGFnZQUQVXNlckxQUGVyY2VudGFnZQkAzAgCCQEEQnVybgIFElJlaXNzdWVhYmxlYXNzZXRJZAgFA3BtdAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgIJVG90YWxfTFBfBQxFbnRlckFzc2V0SUQFEE5ld0xQVG9rZW5Jc3N1ZWQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICCQCsAgICC0JhbGFuY2Vfb2ZfBQxFbnRlckFzc2V0SUQCAV8JANgEAQUKWFROQXNzZXRJRAUTTmV3WFROSG9sZGluZ0luUGFpcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKwCAgILQmFsYW5jZV9vZl8JANgEAQUKWFROQXNzZXRJRAIBXwUMRW50ZXJBc3NldElEBRVOZXdBc3NldEhvbGRpbmdJblBhaXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ5Vc2VyTFBXb3J0aFhUTgUKWFROQXNzZXRJRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5ZcDt9A==", "height": 2767843, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2kXCJQVH7Ba8hprJRjYidFkgvoyu8NjkQS5sNLbCJhwK Next: 7tMnrYKQVUQZRMhPaqDLPVohDd7jK1hasg4D6PQcgQ77 Diff:
OldNewDifferences
200200
201201
202202 @Callable(g)
203+func LatestAddLiquidity (h) = {
204+ let y = toBase58String(g.caller.bytes)
205+ let i = value(g.payments[0])
206+ let j = value(g.payments[1])
207+ let A = getString(this, ("Pair_UV_" + h))
208+ let V = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or May be not Generated."))
209+ let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
210+ let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
211+ let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
212+ let r = W.decimals
213+ let s = fraction((r + 6), 1, 2)
214+ let t = (1 * pow(10, 0, s, 0, 0, CEILING))
215+ let u = fraction(i.amount, j.amount, t)
216+ let v = sqrt(u, s, s, CEILING)
217+ let X = {
218+ let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
219+ if ($isInstanceOf(J, "Int"))
220+ then {
221+ let K = J
222+ K
223+ }
224+ else 0
225+ }
226+ let Y = (X + j.amount)
227+ let Z = {
228+ let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
229+ if ($isInstanceOf(J, "Int"))
230+ then {
231+ let K = J
232+ K
233+ }
234+ else 0
235+ }
236+ let aa = (Z + i.amount)
237+ let ab = {
238+ let J = getIntegerValue(this, ("Total_LP_" + h))
239+ if ($isInstanceOf(J, "Int"))
240+ then {
241+ let K = J
242+ K
243+ }
244+ else 0
245+ }
246+ let ac = (ab + v)
247+ if ((A != h))
248+ then throw("Pair is not available in Whitelisted Asset.")
249+ else if ((h == toBase58String(b)))
250+ 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].")
251+ else if ((size(g.payments) != 2))
252+ then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.")
253+ else if ((i.assetId == b))
254+ then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
255+ else if ((i.assetId != fromBase58String(h)))
256+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
257+ else if ((j.assetId != b))
258+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
259+ else if ((100000 > j.amount))
260+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
261+ else if ((1 > v))
262+ then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
263+ else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), IntegerEntry(("Total_LP_" + h), ac), Reissue(V, v, true), ScriptTransfer(g.caller, v, V)]
264+ }
265+
266+
267+
268+@Callable(g)
203269 func AddLiquidity (h) = {
204270 let y = toBase58String(g.caller.bytes)
205271 let i = value(g.payments[0])
210276 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
211277 let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
212278 let r = W.decimals
213- let X = B
214- let Y = C
215- let Z = pow((((X * 1000000) / Y) * pow(10, 0, r, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
216- let aa = (6 + r)
217- let ab = (aa / 2)
218- let ac = fraction(Z, i.amount, pow(10, 0, aa, 0, 0, CEILING))
219- let ad = pow((fraction(i.amount, 1, pow(10, 0, r, 0, 0, CEILING)) * fraction(j.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, ab, DOWN)
220- let ae = {
279+ let ad = B
280+ let ae = C
281+ let af = pow((((ad * 1000000) / ae) * pow(10, 0, r, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
282+ let ag = (6 + r)
283+ let ah = (ag / 2)
284+ let ai = fraction(af, i.amount, pow(10, 0, ag, 0, 0, CEILING))
285+ let aj = pow((fraction(i.amount, 1, pow(10, 0, r, 0, 0, CEILING)) * fraction(j.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, ah, DOWN)
286+ let X = {
221287 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
222288 if ($isInstanceOf(J, "Int"))
223289 then {
226292 }
227293 else 0
228294 }
229- let af = (ae + j.amount)
230- let ag = {
295+ let Y = (X + j.amount)
296+ let Z = {
231297 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
232298 if ($isInstanceOf(J, "Int"))
233299 then {
236302 }
237303 else 0
238304 }
239- let ah = (ag + i.amount)
240- let ai = {
305+ let aa = (Z + i.amount)
306+ let ab = {
241307 let J = getIntegerValue(this, ("Total_LP_" + h))
242308 if ($isInstanceOf(J, "Int"))
243309 then {
246312 }
247313 else 0
248314 }
249- let aj = (ai + ad)
315+ let ac = (ab + aj)
250316 if ((A != h))
251317 then throw("Pair is not available in Whitelisted Asset.")
252318 else if ((h == toBase58String(b)))
257323 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
258324 else if ((i.assetId != fromBase58String(h)))
259325 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
260- else if ((i.assetId != fromBase58String(h)))
261- then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
262- else if ((j.assetId != b))
263- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
264- else if ((5000000 > j.amount))
265- then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
266- else if ((j.amount != ac))
267- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(ac)) + "] or ") + toString(fraction(ac, 1, 1000000))) + ".") + takeRight(toString(ac), 6)) + " XTN."))
268- else if ((1 > ad))
269- then throw((("LP Token Outcome is going below " + toString(ab)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
270- else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), af), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), ah), IntegerEntry(("Total_LP_" + h), aj), Reissue(V, ad, true), ScriptTransfer(g.caller, ad, V)]
326+ else if ((j.assetId != b))
327+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
328+ else if ((5000000 > j.amount))
329+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
330+ else if ((j.amount != ai))
331+ then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(ai)) + "] or ") + toString(fraction(ai, 1, 1000000))) + ".") + takeRight(toString(ai), 6)) + " XTN."))
332+ else if ((1 > aj))
333+ then throw((("LP Token Outcome is going below " + toString(ah)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
334+ else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), IntegerEntry(("Total_LP_" + h), ac), Reissue(V, aj, true), ScriptTransfer(g.caller, aj, V)]
271335 }
272336
273337
282346 let ak = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or not Generated."))
283347 let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
284348 let r = W.decimals
285- let aa = (6 + r)
286- let ab = (aa / 2)
349+ let ag = (6 + r)
350+ let ah = (ag / 2)
287351 let al = getIntegerValue(this, ("Total_LP_" + h))
288352 let am = pow(fraction(z.amount, pow(10, 0, 8, 0, 0, CEILING), al), 6, 1, 0, 6, CEILING)
289353 let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
290354 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
291355 let an = fraction(B, am, pow(10, 0, 8, 0, 0, CEILING))
292356 let ao = fraction(C, am, pow(10, 0, 8, 0, 0, CEILING))
293- let ae = {
357+ let X = {
294358 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
295359 if ($isInstanceOf(J, "Int"))
296360 then {
299363 }
300364 else 0
301365 }
302- let af = (ae - an)
303- let ag = {
366+ let Y = (X - an)
367+ let Z = {
304368 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
305369 if ($isInstanceOf(J, "Int"))
306370 then {
309373 }
310374 else 0
311375 }
312- let ah = (ag - ao)
313- let ai = {
376+ let aa = (Z - ao)
377+ let ab = {
314378 let J = getIntegerValue(this, ("Total_LP_" + h))
315379 if ($isInstanceOf(J, "Int"))
316380 then {
319383 }
320384 else 0
321385 }
322- let aj = (ai - z.amount)
386+ let ac = (ab - z.amount)
323387 if ((A != h))
324388 then throw("Pair is not available in Whitelist.")
325389 else if ((fromBase58String(h) == b))
332396 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
333397 else if ((1 > ao))
334398 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
335- else [IntegerEntry("Withdraw_LP_Percentage", am), Burn(ak, z.amount), IntegerEntry(("Total_LP_" + h), aj), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), af), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), ah), ScriptTransfer(g.caller, an, b), ScriptTransfer(g.caller, ao, fromBase58String(h))]
399+ else [IntegerEntry("Withdraw_LP_Percentage", am), Burn(ak, z.amount), IntegerEntry(("Total_LP_" + h), ac), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), ScriptTransfer(g.caller, an, b), ScriptTransfer(g.caller, ao, fromBase58String(h))]
336400 }
337401
338402
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1694928600000
55
66 let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
77
88 let c = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
1010 func d () = {
1111 let e = (lastBlock.timestamp - a)
1212 let f = fraction(1, e, 86400000)
1313 f
1414 }
1515
1616
1717 @Callable(g)
1818 func RegisterPair (h) = {
1919 let i = value(g.payments[0])
2020 let j = value(g.payments[1])
2121 let k = toBase58String(g.caller.bytes)
2222 let l = !(isDefined(j.assetId))
2323 let m = getString(this, ("Pair_UV_" + h))
2424 let n = fromBase58String(h)
2525 let o = d()
2626 let p = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
2727 let q = p.name
2828 let r = p.decimals
2929 let s = fraction((r + 6), 1, 2)
3030 let t = (1 * pow(10, 0, s, 0, 0, CEILING))
3131 let u = fraction(i.amount, j.amount, t)
3232 let v = sqrt(u, s, s, CEILING)
3333 let w = Issue((("LP-" + take(q, 8)) + "-XTN"), (((("LP-" + q) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + h), v, s, true)
3434 let x = calculateAssetId(w)
3535 if ((m == h))
3636 then throw("Pair Already Exist in List.")
3737 else if ((size(g.payments) != 2))
3838 then throw("Two attached assets expected as payment. Kindly Attach payment1 = WAVES Token & payment2 = Token you want to List.")
3939 else if ((i.assetId != b))
4040 then throw("Incorrect asset attached as payment[1], please attach XTN only.")
4141 else if ((100000 > i.amount))
4242 then throw((((("You attached only " + toString(fraction(i.amount, 1, 100000000))) + ".") + toString(fraction(i.amount, 1, 10000000))) + " WAVES for Listing in payment[1], please attach 10 WAVES."))
4343 else if ((j.assetId != n))
4444 then throw("Input String & Attached AssetID in payment2 is not matching.")
4545 else if ((l == true))
4646 then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].")
4747 else [StringEntry(("Pair_UV_" + h), h), IntegerEntry(("Listing_Fee_" + h), i.amount), ScriptTransfer(g.caller, v, b), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), i.amount), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), j.amount), IntegerEntry(("Total_of_Pair_Txns_" + h), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + h) + "_") + toBase58String(b)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + h), 0), IntegerEntry(((((toString(o) + "_Day_Volume_") + h) + "_") + toBase58String(b)), 0), IntegerEntry(((((toString(o) + "_Day_Volume_") + toBase58String(b)) + "_") + h), 0), w, StringEntry(("LP_" + h), toBase58String(x)), IntegerEntry(("Total_LP_" + h), v)]
4848 }
4949
5050
5151
5252 @Callable(g)
5353 func SwapAssetToXTNPairEntry (h) = {
5454 let y = toBase58String(g.caller.bytes)
5555 let z = if ((size(g.payments) == 1))
5656 then g.payments[0]
5757 else throw("Whitelisted Token is required as Attached payment[1].")
5858 let A = getString(this, ("Pair_UV_" + h))
5959 let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
6060 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
6161 let D = fraction(B, C, (C + z.amount))
6262 let E = (B - D)
6363 let F = 3
6464 let o = d()
6565 let G = ((E * F) / 1000)
6666 let H = ((E - G) - G)
6767 let I = {
6868 let J = getInteger(this, ((("Total_Swap_Fee_Collected_" + h) + "_") + toBase58String(b)))
6969 if ($isInstanceOf(J, "Int"))
7070 then {
7171 let K = J
7272 K
7373 }
7474 else 0
7575 }
7676 let L = ((I + G) + G)
7777 let M = {
7878 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
7979 if ($isInstanceOf(J, "Int"))
8080 then {
8181 let K = J
8282 K
8383 }
8484 else 0
8585 }
8686 let N = (C + z.amount)
8787 let O = {
8888 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
8989 if ($isInstanceOf(J, "Int"))
9090 then {
9191 let K = J
9292 K
9393 }
9494 else 0
9595 }
9696 let P = ((B - E) + G)
9797 let Q = {
9898 let J = getIntegerValue(this, ("Total_of_Pair_Txns_" + h))
9999 if ($isInstanceOf(J, "Int"))
100100 then {
101101 let K = J
102102 K
103103 }
104104 else 0
105105 }
106106 let R = (Q + 1)
107107 if ((h == toBase58String(b)))
108108 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
109109 else if ((A != h))
110110 then throw("Pair is not available in Whitelisted Asset.")
111111 else if ((z.assetId == b))
112112 then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.")
113113 else if ((z.assetId != fromBase58String(h)))
114114 then throw(("Incorrect asset attached, please attach or send " + h))
115115 else if ((B == 0))
116116 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
117117 else if ((C == 0))
118118 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
119119 else if ((100000 > E))
120120 then throw((("Your Attached Asset Amount is very low. Attach More " + h) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast."))
121121 else if ((E > B))
122122 then throw((("Pool Only has a Liquidity of " + toString((B / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool."))
123123 else [IntegerEntry(((("Total_Swap_Fee_Collected_" + h) + "_") + toBase58String(b)), L), IntegerEntry("Current_Day", o), IntegerEntry(("Total_of_Pair_Txns_" + h), R), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), N), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), P), ScriptTransfer(g.caller, H, b), ScriptTransfer(c, G, b)]
124124 }
125125
126126
127127
128128 @Callable(g)
129129 func SwapXTNToAssetPairEntry (h) = {
130130 let y = toBase58String(g.caller.bytes)
131131 let z = if ((size(g.payments) == 1))
132132 then g.payments[0]
133133 else throw((("Only " + toBase58String(b)) + " XTN Token is required as an Attached payment[1]."))
134134 let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
135135 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
136136 let S = fraction(B, C, (B + z.amount))
137137 let E = (C - S)
138138 let A = getString(this, ("Pair_UV_" + h))
139139 let F = 3
140140 let o = d()
141141 let G = ((E * F) / 1000)
142142 let H = ((E - G) - G)
143143 let T = {
144144 let J = getInteger(this, ("Total_Swap_Fee_Collected_" + h))
145145 if ($isInstanceOf(J, "Int"))
146146 then {
147147 let K = J
148148 K
149149 }
150150 else 0
151151 }
152152 let U = ((T + G) + G)
153153 let M = {
154154 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
155155 if ($isInstanceOf(J, "Int"))
156156 then {
157157 let K = J
158158 K
159159 }
160160 else 0
161161 }
162162 let N = ((C - E) + G)
163163 let O = {
164164 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
165165 if ($isInstanceOf(J, "Int"))
166166 then {
167167 let K = J
168168 K
169169 }
170170 else 0
171171 }
172172 let P = (B + z.amount)
173173 let Q = {
174174 let J = getIntegerValue(this, ("Total_of_Pair_Txns_" + h))
175175 if ($isInstanceOf(J, "Int"))
176176 then {
177177 let K = J
178178 K
179179 }
180180 else 0
181181 }
182182 let R = (Q + 1)
183183 if ((A != h))
184184 then throw("Pair is not available in Whitelisted Asset.")
185185 else if ((h == toBase58String(b)))
186186 then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].")
187187 else if ((z.assetId != b))
188188 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.")
189189 else if ((100000 > z.amount))
190190 then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.")
191191 else if ((B == 0))
192192 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
193193 else if ((C == 0))
194194 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
195195 else if ((E > C))
196196 then throw((("Pool Only has a Liquidity of " + toString(C)) + " Tokens. Add Liquidity into Pool."))
197197 else [IntegerEntry(("Total_Swap_Fee_Collected_" + h), U), IntegerEntry("Current_Day", o), IntegerEntry(("Total_of_Pair_Txns_" + h), R), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), N), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), P), ScriptTransfer(g.caller, H, fromBase58String(h)), ScriptTransfer(c, G, fromBase58String(h))]
198198 }
199199
200200
201201
202202 @Callable(g)
203+func LatestAddLiquidity (h) = {
204+ let y = toBase58String(g.caller.bytes)
205+ let i = value(g.payments[0])
206+ let j = value(g.payments[1])
207+ let A = getString(this, ("Pair_UV_" + h))
208+ let V = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or May be not Generated."))
209+ let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
210+ let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
211+ let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
212+ let r = W.decimals
213+ let s = fraction((r + 6), 1, 2)
214+ let t = (1 * pow(10, 0, s, 0, 0, CEILING))
215+ let u = fraction(i.amount, j.amount, t)
216+ let v = sqrt(u, s, s, CEILING)
217+ let X = {
218+ let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
219+ if ($isInstanceOf(J, "Int"))
220+ then {
221+ let K = J
222+ K
223+ }
224+ else 0
225+ }
226+ let Y = (X + j.amount)
227+ let Z = {
228+ let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
229+ if ($isInstanceOf(J, "Int"))
230+ then {
231+ let K = J
232+ K
233+ }
234+ else 0
235+ }
236+ let aa = (Z + i.amount)
237+ let ab = {
238+ let J = getIntegerValue(this, ("Total_LP_" + h))
239+ if ($isInstanceOf(J, "Int"))
240+ then {
241+ let K = J
242+ K
243+ }
244+ else 0
245+ }
246+ let ac = (ab + v)
247+ if ((A != h))
248+ then throw("Pair is not available in Whitelisted Asset.")
249+ else if ((h == toBase58String(b)))
250+ 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].")
251+ else if ((size(g.payments) != 2))
252+ then throw("Two attached assets are expected in payment. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Amount of XTN Token.")
253+ else if ((i.assetId == b))
254+ then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
255+ else if ((i.assetId != fromBase58String(h)))
256+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
257+ else if ((j.assetId != b))
258+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
259+ else if ((100000 > j.amount))
260+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
261+ else if ((1 > v))
262+ then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.")
263+ else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), IntegerEntry(("Total_LP_" + h), ac), Reissue(V, v, true), ScriptTransfer(g.caller, v, V)]
264+ }
265+
266+
267+
268+@Callable(g)
203269 func AddLiquidity (h) = {
204270 let y = toBase58String(g.caller.bytes)
205271 let i = value(g.payments[0])
206272 let j = value(g.payments[1])
207273 let A = getString(this, ("Pair_UV_" + h))
208274 let V = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or May be not Generated."))
209275 let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
210276 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
211277 let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
212278 let r = W.decimals
213- let X = B
214- let Y = C
215- let Z = pow((((X * 1000000) / Y) * pow(10, 0, r, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
216- let aa = (6 + r)
217- let ab = (aa / 2)
218- let ac = fraction(Z, i.amount, pow(10, 0, aa, 0, 0, CEILING))
219- let ad = pow((fraction(i.amount, 1, pow(10, 0, r, 0, 0, CEILING)) * fraction(j.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, ab, DOWN)
220- let ae = {
279+ let ad = B
280+ let ae = C
281+ let af = pow((((ad * 1000000) / ae) * pow(10, 0, r, 0, 0, CEILING)), 0, 1, 0, 0, CEILING)
282+ let ag = (6 + r)
283+ let ah = (ag / 2)
284+ let ai = fraction(af, i.amount, pow(10, 0, ag, 0, 0, CEILING))
285+ let aj = pow((fraction(i.amount, 1, pow(10, 0, r, 0, 0, CEILING)) * fraction(j.amount, 1, pow(10, 0, 6, 0, 0, CEILING))), 0, 5, 1, ah, DOWN)
286+ let X = {
221287 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
222288 if ($isInstanceOf(J, "Int"))
223289 then {
224290 let K = J
225291 K
226292 }
227293 else 0
228294 }
229- let af = (ae + j.amount)
230- let ag = {
295+ let Y = (X + j.amount)
296+ let Z = {
231297 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
232298 if ($isInstanceOf(J, "Int"))
233299 then {
234300 let K = J
235301 K
236302 }
237303 else 0
238304 }
239- let ah = (ag + i.amount)
240- let ai = {
305+ let aa = (Z + i.amount)
306+ let ab = {
241307 let J = getIntegerValue(this, ("Total_LP_" + h))
242308 if ($isInstanceOf(J, "Int"))
243309 then {
244310 let K = J
245311 K
246312 }
247313 else 0
248314 }
249- let aj = (ai + ad)
315+ let ac = (ab + aj)
250316 if ((A != h))
251317 then throw("Pair is not available in Whitelisted Asset.")
252318 else if ((h == toBase58String(b)))
253319 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].")
254320 else if ((size(g.payments) != 2))
255321 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.")
256322 else if ((i.assetId == b))
257323 then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].")
258324 else if ((i.assetId != fromBase58String(h)))
259325 then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
260- else if ((i.assetId != fromBase58String(h)))
261- then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
262- else if ((j.assetId != b))
263- then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
264- else if ((5000000 > j.amount))
265- then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
266- else if ((j.amount != ac))
267- then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(ac)) + "] or ") + toString(fraction(ac, 1, 1000000))) + ".") + takeRight(toString(ac), 6)) + " XTN."))
268- else if ((1 > ad))
269- then throw((("LP Token Outcome is going below " + toString(ab)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
270- else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), af), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), ah), IntegerEntry(("Total_LP_" + h), aj), Reissue(V, ad, true), ScriptTransfer(g.caller, ad, V)]
326+ else if ((j.assetId != b))
327+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.")
328+ else if ((5000000 > j.amount))
329+ then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]")
330+ else if ((j.amount != ai))
331+ then throw((((((("Attached payment[2] qty is not matching as per attached payment[1].payment[2] must be as int [" + toString(ai)) + "] or ") + toString(fraction(ai, 1, 1000000))) + ".") + takeRight(toString(ai), 6)) + " XTN."))
332+ else if ((1 > aj))
333+ then throw((("LP Token Outcome is going below " + toString(ah)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast."))
334+ else [IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), IntegerEntry(("Total_LP_" + h), ac), Reissue(V, aj, true), ScriptTransfer(g.caller, aj, V)]
271335 }
272336
273337
274338
275339 @Callable(g)
276340 func RemoveLiquidity (h) = {
277341 let y = toBase58String(g.caller.bytes)
278342 let z = if ((size(g.payments) == 1))
279343 then g.payments[0]
280344 else throw("No payment attached, Please Attach LP Token as payment[1].")
281345 let A = getString(this, ("Pair_UV_" + h))
282346 let ak = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or not Generated."))
283347 let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist"))
284348 let r = W.decimals
285- let aa = (6 + r)
286- let ab = (aa / 2)
349+ let ag = (6 + r)
350+ let ah = (ag / 2)
287351 let al = getIntegerValue(this, ("Total_LP_" + h))
288352 let am = pow(fraction(z.amount, pow(10, 0, 8, 0, 0, CEILING), al), 6, 1, 0, 6, CEILING)
289353 let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
290354 let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
291355 let an = fraction(B, am, pow(10, 0, 8, 0, 0, CEILING))
292356 let ao = fraction(C, am, pow(10, 0, 8, 0, 0, CEILING))
293- let ae = {
357+ let X = {
294358 let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b)))
295359 if ($isInstanceOf(J, "Int"))
296360 then {
297361 let K = J
298362 K
299363 }
300364 else 0
301365 }
302- let af = (ae - an)
303- let ag = {
366+ let Y = (X - an)
367+ let Z = {
304368 let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h))
305369 if ($isInstanceOf(J, "Int"))
306370 then {
307371 let K = J
308372 K
309373 }
310374 else 0
311375 }
312- let ah = (ag - ao)
313- let ai = {
376+ let aa = (Z - ao)
377+ let ab = {
314378 let J = getIntegerValue(this, ("Total_LP_" + h))
315379 if ($isInstanceOf(J, "Int"))
316380 then {
317381 let K = J
318382 K
319383 }
320384 else 0
321385 }
322- let aj = (ai - z.amount)
386+ let ac = (ab - z.amount)
323387 if ((A != h))
324388 then throw("Pair is not available in Whitelist.")
325389 else if ((fromBase58String(h) == b))
326390 then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
327391 else if ((z.assetId != ak))
328392 then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
329393 else if ((1 > am))
330394 then throw("Your LP Token amount % is very low to convert.")
331395 else if ((1 > an))
332396 then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.")
333397 else if ((1 > ao))
334398 then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.")
335- else [IntegerEntry("Withdraw_LP_Percentage", am), Burn(ak, z.amount), IntegerEntry(("Total_LP_" + h), aj), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), af), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), ah), ScriptTransfer(g.caller, an, b), ScriptTransfer(g.caller, ao, fromBase58String(h))]
399+ else [IntegerEntry("Withdraw_LP_Percentage", am), Burn(ak, z.amount), IntegerEntry(("Total_LP_" + h), ac), IntegerEntry(((("Balance_of_" + h) + "_") + toBase58String(b)), Y), IntegerEntry(((("Balance_of_" + toBase58String(b)) + "_") + h), aa), ScriptTransfer(g.caller, an, b), ScriptTransfer(g.caller, ao, fromBase58String(h))]
336400 }
337401
338402
339403 @Verifier(ap)
340404 func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey)
341405

github/deemru/w8io/169f3d6 
62.00 ms