tx · 4b2vC33YRMMrztHeA8z9QPogCdU71g7HErUWcb22GAcm 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5: -0.01900000 Waves 2023.09.24 09:06 [2769102] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves
{ "type": 13, "id": "4b2vC33YRMMrztHeA8z9QPogCdU71g7HErUWcb22GAcm", "fee": 1900000, "feeAssetId": null, "timestamp": 1695535607126, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "2QNZDdKxwucb7RRd4ZVHyT9KRkCN3UFkrwgVp1qZ1qo6CJW7tRDx6ichzaA5CB8XhXJD85g5mcs8zb6y1oYUMuA3" ], "script": "base64:BgIgCAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgEAA5kQXBwU2luY2VTdGFydADA9/eMqjEAClhUTkFzc2V0SUQBIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkABFDb2xsZWN0RmVlQWRkcmVzcwkApwgBASBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAEJY291bnRkYXlzAAQHVFNfRGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQ5kQXBwU2luY2VTdGFydAQJZGF5bnVtYmVyCQBrAwABBQdUU19EaWZmAIC4mSkFCWRheW51bWJlcgYBaQEMUmVnaXN0ZXJQYWlyAQxFbnRlckFzc2V0SUQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQEcG10MgkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwABBApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEBVdBVkVTCQEBIQEJAQlpc0RlZmluZWQBCAUEcG10Mgdhc3N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FROLgMJAGYCAAEFEFVzZXJMUFdvcnRoQXNzZXQJAAIBAlxZb3VyIExQIFRva2VuIGNvbnZlcnNpb24gYW1vdW50IGlzIHZlcnkgbG93IHRvIGNvbnZlcnQgb3IgbGVzcyB0aGFuIGZyYWN0aW9uIHZhbHVlIG9mIFRva2VuLgkAzAgCCQEMSW50ZWdlckVudHJ5AgIWV2l0aGRyYXdfTFBfUGVyY2VudGFnZQUQVXNlckxQUGVyY2VudGFnZQkAzAgCCQEEQnVybgIFElJlaXNzdWVhYmxlYXNzZXRJZAgFA3BtdAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgIJVG90YWxfTFBfBQxFbnRlckFzc2V0SUQFEE5ld0xQVG9rZW5Jc3N1ZWQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICCQCsAgICC0JhbGFuY2Vfb2ZfBQxFbnRlckFzc2V0SUQCAV8JANgEAQUKWFROQXNzZXRJRAUTTmV3WFROSG9sZGluZ0luUGFpcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKwCAgILQmFsYW5jZV9vZl8JANgEAQUKWFROQXNzZXRJRAIBXwUMRW50ZXJBc3NldElEBRVOZXdBc3NldEhvbGRpbmdJblBhaXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ5Vc2VyTFBXb3J0aFhUTgUKWFROQXNzZXRJRAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEFVzZXJMUFdvcnRoQXNzZXQJANkEAQUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5ntrjJQ==", "height": 2769102, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6tBsoCiekpamy6FUxt23YJreLCpEoo4knSe9JtHhY6Xd Next: EM67v1Yd5kDKBxs4gRj8dJ2tSu6Z7Stb372YYKwS9arn Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | else if ((i.assetId != b)) | |
40 | 40 | then throw("Incorrect asset attached as payment[1], please attach XTN only.") | |
41 | 41 | else if ((100000 > i.amount)) | |
42 | - | then throw((((("You attached only " + toString(fraction(i.amount, 1, | |
42 | + | then throw((((("You attached only " + toString(fraction(i.amount, 1, 1000000))) + ".") + toString(fraction(i.amount, 1, 100000))) + " XTN for Listing in payment[1], please attach 0.1 XTN Minimum.")) | |
43 | 43 | else if ((j.assetId != n)) | |
44 | 44 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
45 | 45 | else if ((l == true)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1694928600000 | |
5 | 5 | ||
6 | 6 | let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR') | |
9 | 9 | ||
10 | 10 | func d () = { | |
11 | 11 | let e = (lastBlock.timestamp - a) | |
12 | 12 | let f = fraction(1, e, 86400000) | |
13 | 13 | f | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(g) | |
18 | 18 | func RegisterPair (h) = { | |
19 | 19 | let i = value(g.payments[0]) | |
20 | 20 | let j = value(g.payments[1]) | |
21 | 21 | let k = toBase58String(g.caller.bytes) | |
22 | 22 | let l = !(isDefined(j.assetId)) | |
23 | 23 | let m = getString(this, ("Pair_UV_" + h)) | |
24 | 24 | let n = fromBase58String(h) | |
25 | 25 | let o = d() | |
26 | 26 | let p = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist")) | |
27 | 27 | let q = p.name | |
28 | 28 | let r = p.decimals | |
29 | 29 | let s = fraction((r + 6), 1, 2) | |
30 | 30 | let t = (1 * pow(10, 0, s, 0, 0, CEILING)) | |
31 | 31 | let u = fraction(i.amount, j.amount, t) | |
32 | 32 | let v = sqrt(u, s, s, CEILING) | |
33 | 33 | let w = Issue((("LP-" + take(q, 8)) + "-XTN"), (((("LP-" + q) + "-XTN") + " is a Liquidity Provider Token Issued Against ") + h), v, s, true) | |
34 | 34 | let x = calculateAssetId(w) | |
35 | 35 | if ((m == h)) | |
36 | 36 | then throw("Pair Already Exist in List.") | |
37 | 37 | else if ((size(g.payments) != 2)) | |
38 | 38 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = XTN Token & payment2 = Token you want to List.") | |
39 | 39 | else if ((i.assetId != b)) | |
40 | 40 | then throw("Incorrect asset attached as payment[1], please attach XTN only.") | |
41 | 41 | else if ((100000 > i.amount)) | |
42 | - | then throw((((("You attached only " + toString(fraction(i.amount, 1, | |
42 | + | then throw((((("You attached only " + toString(fraction(i.amount, 1, 1000000))) + ".") + toString(fraction(i.amount, 1, 100000))) + " XTN for Listing in payment[1], please attach 0.1 XTN Minimum.")) | |
43 | 43 | else if ((j.assetId != n)) | |
44 | 44 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
45 | 45 | else if ((l == true)) | |
46 | 46 | then throw("You Attached WAVES Asset ID for Listing, please attach Tokens You want to list in payment[2].") | |
47 | 47 | else [StringEntry(("Pair_UV_" + h), h), IntegerEntry(("Listing_Fee_" + h), i.amount), 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, ScriptTransfer(g.caller, v, x), StringEntry(("LP_" + h), toBase58String(x)), IntegerEntry(("Total_LP_" + h), v)] | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(g) | |
53 | 53 | func SwapAssetToXTNPairEntry (h) = { | |
54 | 54 | let y = toBase58String(g.caller.bytes) | |
55 | 55 | let z = if ((size(g.payments) == 1)) | |
56 | 56 | then g.payments[0] | |
57 | 57 | else throw("Whitelisted Token is required as Attached payment[1].") | |
58 | 58 | let A = getString(this, ("Pair_UV_" + h)) | |
59 | 59 | let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
60 | 60 | let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
61 | 61 | let D = fraction(B, C, (C + z.amount)) | |
62 | 62 | let E = (B - D) | |
63 | 63 | let F = 3 | |
64 | 64 | let o = d() | |
65 | 65 | let G = ((E * F) / 1000) | |
66 | 66 | let H = ((E - G) - G) | |
67 | 67 | let I = { | |
68 | 68 | let J = getInteger(this, ((("Total_Swap_Fee_Collected_" + h) + "_") + toBase58String(b))) | |
69 | 69 | if ($isInstanceOf(J, "Int")) | |
70 | 70 | then { | |
71 | 71 | let K = J | |
72 | 72 | K | |
73 | 73 | } | |
74 | 74 | else 0 | |
75 | 75 | } | |
76 | 76 | let L = ((I + G) + G) | |
77 | 77 | let M = { | |
78 | 78 | let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
79 | 79 | if ($isInstanceOf(J, "Int")) | |
80 | 80 | then { | |
81 | 81 | let K = J | |
82 | 82 | K | |
83 | 83 | } | |
84 | 84 | else 0 | |
85 | 85 | } | |
86 | 86 | let N = (C + z.amount) | |
87 | 87 | let O = { | |
88 | 88 | let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
89 | 89 | if ($isInstanceOf(J, "Int")) | |
90 | 90 | then { | |
91 | 91 | let K = J | |
92 | 92 | K | |
93 | 93 | } | |
94 | 94 | else 0 | |
95 | 95 | } | |
96 | 96 | let P = ((B - E) + G) | |
97 | 97 | let Q = { | |
98 | 98 | let J = getIntegerValue(this, ("Total_of_Pair_Txns_" + h)) | |
99 | 99 | if ($isInstanceOf(J, "Int")) | |
100 | 100 | then { | |
101 | 101 | let K = J | |
102 | 102 | K | |
103 | 103 | } | |
104 | 104 | else 0 | |
105 | 105 | } | |
106 | 106 | let R = (Q + 1) | |
107 | 107 | if ((h == toBase58String(b))) | |
108 | 108 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].") | |
109 | 109 | else if ((A != h)) | |
110 | 110 | then throw("Pair is not available in Whitelisted Asset.") | |
111 | 111 | else if ((z.assetId == b)) | |
112 | 112 | then throw("You can't Attach XTN as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
113 | 113 | else if ((z.assetId != fromBase58String(h))) | |
114 | 114 | then throw(("Incorrect asset attached, please attach or send " + h)) | |
115 | 115 | else if ((B == 0)) | |
116 | 116 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
117 | 117 | else if ((C == 0)) | |
118 | 118 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
119 | 119 | else if ((100000 > E)) | |
120 | 120 | then throw((("Your Attached Asset Amount is very low. Attach More " + h) + " Tokens to Claim the minimum Amount of 0.1 dollar atleast.")) | |
121 | 121 | else if ((E > B)) | |
122 | 122 | then throw((("Pool Only has a Liquidity of " + toString((B / pow(10, 0, 6, 0, 0, CEILING)))) + " XTN. Add Liquidity into Pool.")) | |
123 | 123 | 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)] | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(g) | |
129 | 129 | func SwapXTNToAssetPairEntry (h) = { | |
130 | 130 | let y = toBase58String(g.caller.bytes) | |
131 | 131 | let z = if ((size(g.payments) == 1)) | |
132 | 132 | then g.payments[0] | |
133 | 133 | else throw((("Only " + toBase58String(b)) + " XTN Token is required as an Attached payment[1].")) | |
134 | 134 | let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
135 | 135 | let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
136 | 136 | let S = fraction(B, C, (B + z.amount)) | |
137 | 137 | let E = (C - S) | |
138 | 138 | let A = getString(this, ("Pair_UV_" + h)) | |
139 | 139 | let F = 3 | |
140 | 140 | let o = d() | |
141 | 141 | let G = ((E * F) / 1000) | |
142 | 142 | let H = ((E - G) - G) | |
143 | 143 | let T = { | |
144 | 144 | let J = getInteger(this, ("Total_Swap_Fee_Collected_" + h)) | |
145 | 145 | if ($isInstanceOf(J, "Int")) | |
146 | 146 | then { | |
147 | 147 | let K = J | |
148 | 148 | K | |
149 | 149 | } | |
150 | 150 | else 0 | |
151 | 151 | } | |
152 | 152 | let U = ((T + G) + G) | |
153 | 153 | let M = { | |
154 | 154 | let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
155 | 155 | if ($isInstanceOf(J, "Int")) | |
156 | 156 | then { | |
157 | 157 | let K = J | |
158 | 158 | K | |
159 | 159 | } | |
160 | 160 | else 0 | |
161 | 161 | } | |
162 | 162 | let N = ((C - E) + G) | |
163 | 163 | let O = { | |
164 | 164 | let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
165 | 165 | if ($isInstanceOf(J, "Int")) | |
166 | 166 | then { | |
167 | 167 | let K = J | |
168 | 168 | K | |
169 | 169 | } | |
170 | 170 | else 0 | |
171 | 171 | } | |
172 | 172 | let P = (B + z.amount) | |
173 | 173 | let Q = { | |
174 | 174 | let J = getIntegerValue(this, ("Total_of_Pair_Txns_" + h)) | |
175 | 175 | if ($isInstanceOf(J, "Int")) | |
176 | 176 | then { | |
177 | 177 | let K = J | |
178 | 178 | K | |
179 | 179 | } | |
180 | 180 | else 0 | |
181 | 181 | } | |
182 | 182 | let R = (Q + 1) | |
183 | 183 | if ((A != h)) | |
184 | 184 | then throw("Pair is not available in Whitelisted Asset.") | |
185 | 185 | else if ((h == toBase58String(b))) | |
186 | 186 | then throw("Input can Never be a XTN AssetID. Enter Whitelisted AssetID in input & Attach XTN as an attachment Token in payment[1].") | |
187 | 187 | else if ((z.assetId != b)) | |
188 | 188 | 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.") | |
189 | 189 | else if ((100000 > z.amount)) | |
190 | 190 | then throw("Your Attached XTN Amount is very low. Attach Atleast 0.1 XTN to Claim the minimum Tokens.") | |
191 | 191 | else if ((B == 0)) | |
192 | 192 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
193 | 193 | else if ((C == 0)) | |
194 | 194 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
195 | 195 | else if ((E > C)) | |
196 | 196 | then throw((("Pool Only has a Liquidity of " + toString(C)) + " Tokens. Add Liquidity into Pool.")) | |
197 | 197 | 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))] | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(g) | |
203 | 203 | func LatestAddLiquidity (h) = { | |
204 | 204 | let y = toBase58String(g.caller.bytes) | |
205 | 205 | let i = value(g.payments[0]) | |
206 | 206 | let j = value(g.payments[1]) | |
207 | 207 | let A = getString(this, ("Pair_UV_" + h)) | |
208 | 208 | let V = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or May be not Generated.")) | |
209 | 209 | let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
210 | 210 | let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
211 | 211 | let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist")) | |
212 | 212 | let r = W.decimals | |
213 | 213 | let s = fraction((r + 6), 1, 2) | |
214 | 214 | let t = (1 * pow(10, 0, s, 0, 0, CEILING)) | |
215 | 215 | let u = fraction(i.amount, j.amount, t) | |
216 | 216 | let v = sqrt(u, s, s, CEILING) | |
217 | 217 | let X = { | |
218 | 218 | let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
219 | 219 | if ($isInstanceOf(J, "Int")) | |
220 | 220 | then { | |
221 | 221 | let K = J | |
222 | 222 | K | |
223 | 223 | } | |
224 | 224 | else 0 | |
225 | 225 | } | |
226 | 226 | let Y = (X + j.amount) | |
227 | 227 | let Z = { | |
228 | 228 | let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
229 | 229 | if ($isInstanceOf(J, "Int")) | |
230 | 230 | then { | |
231 | 231 | let K = J | |
232 | 232 | K | |
233 | 233 | } | |
234 | 234 | else 0 | |
235 | 235 | } | |
236 | 236 | let aa = (Z + i.amount) | |
237 | 237 | let ab = { | |
238 | 238 | let J = getIntegerValue(this, ("Total_LP_" + h)) | |
239 | 239 | if ($isInstanceOf(J, "Int")) | |
240 | 240 | then { | |
241 | 241 | let K = J | |
242 | 242 | K | |
243 | 243 | } | |
244 | 244 | else 0 | |
245 | 245 | } | |
246 | 246 | let ac = (ab + v) | |
247 | 247 | if ((A != h)) | |
248 | 248 | then throw("Pair is not available in Whitelisted Asset.") | |
249 | 249 | else if ((h == toBase58String(b))) | |
250 | 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 | 251 | else if ((size(g.payments) != 2)) | |
252 | 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 | 253 | else if ((i.assetId == b)) | |
254 | 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 | 255 | else if ((i.assetId != fromBase58String(h))) | |
256 | 256 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
257 | 257 | else if ((j.assetId != b)) | |
258 | 258 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
259 | 259 | else if ((100000 > j.amount)) | |
260 | 260 | then throw("please attach atleast 0.1 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
261 | 261 | else if ((1 > v)) | |
262 | 262 | then throw("LP Token Outcome is going below 1 in Fractional. Please Attach more amount.") | |
263 | 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 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | 268 | @Callable(g) | |
269 | 269 | func AddLiquidity (h) = { | |
270 | 270 | let y = toBase58String(g.caller.bytes) | |
271 | 271 | let i = value(g.payments[0]) | |
272 | 272 | let j = value(g.payments[1]) | |
273 | 273 | let A = getString(this, ("Pair_UV_" + h)) | |
274 | 274 | let V = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or May be not Generated.")) | |
275 | 275 | let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
276 | 276 | let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
277 | 277 | let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist")) | |
278 | 278 | let r = W.decimals | |
279 | 279 | let ad = B | |
280 | 280 | let ae = C | |
281 | 281 | let af = pow((((ad * 1000000) / ae) * pow(10, 0, r, 0, 0, CEILING)), 0, 1, 0, 0, CEILING) | |
282 | 282 | let ag = (6 + r) | |
283 | 283 | let ah = (ag / 2) | |
284 | 284 | let ai = fraction(af, i.amount, pow(10, 0, ag, 0, 0, CEILING)) | |
285 | 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 | 286 | let X = { | |
287 | 287 | let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
288 | 288 | if ($isInstanceOf(J, "Int")) | |
289 | 289 | then { | |
290 | 290 | let K = J | |
291 | 291 | K | |
292 | 292 | } | |
293 | 293 | else 0 | |
294 | 294 | } | |
295 | 295 | let Y = (X + j.amount) | |
296 | 296 | let Z = { | |
297 | 297 | let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
298 | 298 | if ($isInstanceOf(J, "Int")) | |
299 | 299 | then { | |
300 | 300 | let K = J | |
301 | 301 | K | |
302 | 302 | } | |
303 | 303 | else 0 | |
304 | 304 | } | |
305 | 305 | let aa = (Z + i.amount) | |
306 | 306 | let ab = { | |
307 | 307 | let J = getIntegerValue(this, ("Total_LP_" + h)) | |
308 | 308 | if ($isInstanceOf(J, "Int")) | |
309 | 309 | then { | |
310 | 310 | let K = J | |
311 | 311 | K | |
312 | 312 | } | |
313 | 313 | else 0 | |
314 | 314 | } | |
315 | 315 | let ac = (ab + aj) | |
316 | 316 | if ((A != h)) | |
317 | 317 | then throw("Pair is not available in Whitelisted Asset.") | |
318 | 318 | else if ((h == toBase58String(b))) | |
319 | 319 | 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].") | |
320 | 320 | else if ((size(g.payments) != 2)) | |
321 | 321 | 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.") | |
322 | 322 | else if ((i.assetId == b)) | |
323 | 323 | then throw("You Attached XTN asset in payment[1], please attach only whitelisted Token in payment[1] along with XTN in payment[2].") | |
324 | 324 | else if ((i.assetId != fromBase58String(h))) | |
325 | 325 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
326 | 326 | else if ((j.assetId != b)) | |
327 | 327 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = XTN Token.") | |
328 | 328 | else if ((5000000 > j.amount)) | |
329 | 329 | then throw("please attach atleast 5 XTN in payment[2] & Equivalent worth of Token in payment[1]") | |
330 | 330 | else if ((j.amount != ai)) | |
331 | 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 | 332 | else if ((1 > aj)) | |
333 | 333 | then throw((("LP Token Outcome is going below " + toString(ah)) + " Decimals. Please Attach min. 1 LP token or 5 XTN Atleast.")) | |
334 | 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)] | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(g) | |
340 | 340 | func RemoveLiquidity (h) = { | |
341 | 341 | let y = toBase58String(g.caller.bytes) | |
342 | 342 | let z = if ((size(g.payments) == 1)) | |
343 | 343 | then g.payments[0] | |
344 | 344 | else throw("No payment attached, Please Attach LP Token as payment[1].") | |
345 | 345 | let A = getString(this, ("Pair_UV_" + h)) | |
346 | 346 | let ak = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + h)), "LP Token is Missing or not Generated.")) | |
347 | 347 | let W = valueOrErrorMessage(assetInfo(fromBase58String(h)), (("Asset " + h) + " doesn't exist")) | |
348 | 348 | let r = W.decimals | |
349 | 349 | let ag = (6 + r) | |
350 | 350 | let ah = (ag / 2) | |
351 | 351 | let al = getIntegerValue(this, ("Total_LP_" + h)) | |
352 | 352 | let am = pow(fraction(z.amount, pow(10, 0, 8, 0, 0, CEILING), al), 6, 1, 0, 6, CEILING) | |
353 | 353 | let B = getIntegerValue(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
354 | 354 | let C = getIntegerValue(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
355 | 355 | let an = fraction(B, am, pow(10, 0, 8, 0, 0, CEILING)) | |
356 | 356 | let ao = fraction(C, am, pow(10, 0, 8, 0, 0, CEILING)) | |
357 | 357 | let X = { | |
358 | 358 | let J = getInteger(this, ((("Balance_of_" + h) + "_") + toBase58String(b))) | |
359 | 359 | if ($isInstanceOf(J, "Int")) | |
360 | 360 | then { | |
361 | 361 | let K = J | |
362 | 362 | K | |
363 | 363 | } | |
364 | 364 | else 0 | |
365 | 365 | } | |
366 | 366 | let Y = (X - an) | |
367 | 367 | let Z = { | |
368 | 368 | let J = getInteger(this, ((("Balance_of_" + toBase58String(b)) + "_") + h)) | |
369 | 369 | if ($isInstanceOf(J, "Int")) | |
370 | 370 | then { | |
371 | 371 | let K = J | |
372 | 372 | K | |
373 | 373 | } | |
374 | 374 | else 0 | |
375 | 375 | } | |
376 | 376 | let aa = (Z - ao) | |
377 | 377 | let ab = { | |
378 | 378 | let J = getIntegerValue(this, ("Total_LP_" + h)) | |
379 | 379 | if ($isInstanceOf(J, "Int")) | |
380 | 380 | then { | |
381 | 381 | let K = J | |
382 | 382 | K | |
383 | 383 | } | |
384 | 384 | else 0 | |
385 | 385 | } | |
386 | 386 | let ac = (ab - z.amount) | |
387 | 387 | if ((A != h)) | |
388 | 388 | then throw("Pair is not available in Whitelist.") | |
389 | 389 | else if ((fromBase58String(h) == b)) | |
390 | 390 | then throw("Don't choose XTN AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]") | |
391 | 391 | else if ((z.assetId != ak)) | |
392 | 392 | then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.") | |
393 | 393 | else if ((1 > am)) | |
394 | 394 | then throw("Your LP Token amount % is very low to convert.") | |
395 | 395 | else if ((1 > an)) | |
396 | 396 | then throw("Your LP Token conversion amount is very low to convert or less than 0.000001 XTN.") | |
397 | 397 | else if ((1 > ao)) | |
398 | 398 | then throw("Your LP Token conversion amount is very low to convert or less than fraction value of Token.") | |
399 | 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))] | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | @Verifier(ap) | |
404 | 404 | func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
405 | 405 |
github/deemru/w8io/169f3d6 53.55 ms ◑