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