tx · DY7dLcNsgeZddD8yuk4VHuiiGxAqEe7rjA7jNXLohqV3 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.01.12 19:15 [1875959] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "DY7dLcNsgeZddD8yuk4VHuiiGxAqEe7rjA7jNXLohqV3", "fee": 1400000, "feeAssetId": null, "timestamp": 1642004186896, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "2hvrLQxzkhMZ66SeWCsRYXPs32PMAHcYNfxDQZS6zqMKifreZJJKvVhNprmPBg6WKPgrzGuD9YcjqL1Wx6To7Lqe", "H9CfGbvkoQwyuMTNHbBarJqsbUZ61h6Zp69dDYfygkjT1qRvecCVFoaXgKX1y73BezFXbL5d4tD5RTQkBENdipC", "2QX739BeSJaSNy4eTaqtK9A2VrCMhu3nDFLytqgJgYGaKxTuVr2HxWD9Acdr86gFuRfE9rsjBfeZd9TqSTe1zvj1" ], "script": "base64:AAIFAAAAAAAAB5AIAhIGCgQYGBgREgMKARgSBgoECAgBARIAEgMKAQgSAwoBCBIECgIYFBoVCgFBEhBkQXBwU3Rha2VkVG9rZW5zGhQKAUISD2Fzc2V0SWRRdWFudGl0eRoKCgFDEgVhc3NldBoGCgFEEgFpGgoKAUUSBXBvb2xzGhQKAUYSD2xpcXVpZGl0eVRva2VucxoSCgFHEg1zZXJ2aWNlVG9rZW5zGhsKAUgSFmxpcXVpZGl0eVRva2VuRGVjaW1hbHMaFQoBSRIQZ2VuZXJhdGVQb29sS2V5cxoQCgFKEgthY2N1bXVsYXRlZBojCgFLEh5nZW5lcmF0ZVBvb2xMaXF1aWRpdHlUb2tlbktleXMaDgoBTBIJcG9vbEluZGV4GhMKAU0SDmxpcXVpZGl0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AgFAAAAAmFNAAAAD3NlbmRlclB1YmxpY0tleQMDBQAAAAJhUAYFAAAAAmFUBQAAAAJhVQcEAAAAAmFWAwkAAfQAAAADCAUAAAACYU0AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAWQAAAAAAAAAAAEAAAAAAAAAAAAEAAAAAmFXAwkAAfQAAAADCAUAAAACYU0AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTQAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAAWUAAAAAAAAAAAEAAAAAAAAAAAAEAAAAAmFYAwkAAfQAAAADCAUAAAACYU0AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhTQAAAAZwcm9vZnMAAAAAAAAAAAIFAAAAAWYAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAAmFWBQAAAAJhVwUAAAACYVgAAAAAAAAAAAKIQAy4", "height": 1875959, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DvzhaZFW6vDaCuMw9xrT1px3HMRPF8kXYjutroGjrdJC Next: HaDtci8T7KLDnfwuvpRTJZLuZjutpSAJBftQGpMcE5PE Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | ||
77 | 77 | func x (y,z,v) = { | |
78 | 78 | let A = u(v) | |
79 | - | let B = value(assetInfo(z)).quantity | |
79 | + | let B = { | |
80 | + | let q = assetInfo(z) | |
81 | + | if ($isInstanceOf(q, "Asset")) | |
82 | + | then { | |
83 | + | let C = q | |
84 | + | C.quantity | |
85 | + | } | |
86 | + | else throw("Can't find asset") | |
87 | + | } | |
80 | 88 | fraction(y, A, B) | |
81 | 89 | } | |
82 | 90 | ||
83 | 91 | ||
84 | - | @Callable( | |
85 | - | func addPools ( | |
92 | + | @Callable(D) | |
93 | + | func addPools (E,F,G,H) = if (containsElement([d, e, f], D.callerPublicKey)) | |
86 | 94 | then { | |
87 | - | func | |
95 | + | func I (J,m) = IntegerEntry((m + "_asset_balance"), 0) :: J | |
88 | 96 | ||
89 | - | func | |
90 | - | let | |
91 | - | let | |
92 | - | StringEntry((m + "_liquidity_token"), | |
97 | + | func K (J,m) = { | |
98 | + | let L = value(indexOf(E, m)) | |
99 | + | let M = F[L] | |
100 | + | StringEntry((m + "_liquidity_token"), M) :: J | |
93 | 101 | } | |
94 | 102 | ||
95 | - | func | |
96 | - | let | |
97 | - | let | |
98 | - | StringEntry((m + "_service_token"), | |
103 | + | func N (J,m) = { | |
104 | + | let L = value(indexOf(E, m)) | |
105 | + | let M = G[L] | |
106 | + | StringEntry((m + "_service_token"), M) :: J | |
99 | 107 | } | |
100 | 108 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | IntegerEntry((m + "_service_token_decimal"), | |
109 | + | func O (J,m) = { | |
110 | + | let L = value(indexOf(E, m)) | |
111 | + | let M = H[L] | |
112 | + | IntegerEntry((m + "_service_token_decimal"), M) :: J | |
105 | 113 | } | |
106 | 114 | ||
107 | - | func | |
115 | + | func P (J,m) = BooleanEntry((m + "_active"), true) :: J | |
108 | 116 | ||
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | let | |
113 | - | func | |
114 | - | then | |
115 | - | else | |
117 | + | let Q = { | |
118 | + | let R = E | |
119 | + | let S = size(R) | |
120 | + | let T = nil | |
121 | + | func U (V,W) = if ((W >= S)) | |
122 | + | then V | |
123 | + | else I(V, R[W]) | |
116 | 124 | ||
117 | - | func | |
118 | - | then | |
125 | + | func X (V,W) = if ((W >= S)) | |
126 | + | then V | |
119 | 127 | else throw("List size exceeds 20") | |
120 | 128 | ||
121 | - | | |
129 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
122 | 130 | } | |
123 | - | let | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | func | |
128 | - | then | |
129 | - | else | |
131 | + | let Y = { | |
132 | + | let R = E | |
133 | + | let S = size(R) | |
134 | + | let T = nil | |
135 | + | func Z (V,W) = if ((W >= S)) | |
136 | + | then V | |
137 | + | else K(V, R[W]) | |
130 | 138 | ||
131 | - | func | |
132 | - | then | |
139 | + | func aa (V,W) = if ((W >= S)) | |
140 | + | then V | |
133 | 141 | else throw("List size exceeds 20") | |
134 | 142 | ||
135 | - | Z( | |
143 | + | aa(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
136 | 144 | } | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | func | |
142 | - | then | |
143 | - | else | |
145 | + | let ab = { | |
146 | + | let R = E | |
147 | + | let S = size(R) | |
148 | + | let T = nil | |
149 | + | func ac (V,W) = if ((W >= S)) | |
150 | + | then V | |
151 | + | else N(V, R[W]) | |
144 | 152 | ||
145 | - | func | |
146 | - | then | |
153 | + | func ad (V,W) = if ((W >= S)) | |
154 | + | then V | |
147 | 155 | else throw("List size exceeds 20") | |
148 | 156 | ||
149 | - | ac( | |
157 | + | ad(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
150 | 158 | } | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | func | |
156 | - | then | |
157 | - | else | |
159 | + | let ae = { | |
160 | + | let R = E | |
161 | + | let S = size(R) | |
162 | + | let T = nil | |
163 | + | func af (V,W) = if ((W >= S)) | |
164 | + | then V | |
165 | + | else O(V, R[W]) | |
158 | 166 | ||
159 | - | func | |
160 | - | then | |
167 | + | func ag (V,W) = if ((W >= S)) | |
168 | + | then V | |
161 | 169 | else throw("List size exceeds 20") | |
162 | 170 | ||
163 | - | af( | |
171 | + | ag(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
164 | 172 | } | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | func | |
170 | - | then | |
171 | - | else | |
173 | + | let ah = { | |
174 | + | let R = E | |
175 | + | let S = size(R) | |
176 | + | let T = nil | |
177 | + | func ai (V,W) = if ((W >= S)) | |
178 | + | then V | |
179 | + | else P(V, R[W]) | |
172 | 180 | ||
173 | - | func | |
174 | - | then | |
181 | + | func aj (V,W) = if ((W >= S)) | |
182 | + | then V | |
175 | 183 | else throw("List size exceeds 20") | |
176 | 184 | ||
177 | - | ai( | |
185 | + | aj(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
178 | 186 | } | |
179 | - | (((( | |
187 | + | ((((Q ++ Y) ++ ab) ++ ae) ++ ah) | |
180 | 188 | } | |
181 | 189 | else throw("Only admin can call this function") | |
182 | 190 | ||
183 | 191 | ||
184 | 192 | ||
185 | - | @Callable( | |
186 | - | func deleteDepositLockRecords ( | |
193 | + | @Callable(D) | |
194 | + | func deleteDepositLockRecords (ak) = if (containsElement([d, e, f], D.callerPublicKey)) | |
187 | 195 | then { | |
188 | - | func | |
196 | + | func al (J,am) = DeleteEntry((am + "_locked")) :: J | |
189 | 197 | ||
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | func | |
195 | - | then | |
196 | - | else | |
198 | + | let an = { | |
199 | + | let R = ak | |
200 | + | let S = size(R) | |
201 | + | let T = nil | |
202 | + | func U (V,W) = if ((W >= S)) | |
203 | + | then V | |
204 | + | else al(V, R[W]) | |
197 | 205 | ||
198 | - | func | |
199 | - | then | |
206 | + | func X (V,W) = if ((W >= S)) | |
207 | + | then V | |
200 | 208 | else throw("List size exceeds 100") | |
201 | 209 | ||
202 | - | | |
210 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
203 | 211 | } | |
204 | - | | |
212 | + | an | |
205 | 213 | } | |
206 | 214 | else throw("Only admin can call this function") | |
207 | 215 | ||
208 | 216 | ||
209 | 217 | ||
210 | - | @Callable( | |
211 | - | func issueToken ( | |
212 | - | then [Issue( | |
218 | + | @Callable(D) | |
219 | + | func issueToken (ao,ap,aq,ar) = if (containsElement([d, e, f], D.callerPublicKey)) | |
220 | + | then [Issue(ao, ap, aq, ar, true, unit, 0)] | |
213 | 221 | else throw("Only admin can call this function") | |
214 | 222 | ||
215 | 223 | ||
216 | 224 | ||
217 | - | @Callable( | |
225 | + | @Callable(as) | |
218 | 226 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
219 | 227 | ||
220 | 228 | ||
221 | 229 | ||
222 | - | @Callable( | |
223 | - | func deposit (m) = if ((size( | |
230 | + | @Callable(D) | |
231 | + | func deposit (m) = if ((size(D.payments) != 1)) | |
224 | 232 | then throw("One attached payment expected") | |
225 | 233 | else { | |
226 | - | let y = | |
227 | - | let z = | |
228 | - | let | |
234 | + | let y = D.payments[0].amount | |
235 | + | let z = D.payments[0].assetId | |
236 | + | let at = { | |
229 | 237 | let q = z | |
230 | 238 | if ($isInstanceOf(q, "ByteVector")) | |
231 | 239 | then { | |
232 | - | let | |
233 | - | toBase58String( | |
240 | + | let au = q | |
241 | + | toBase58String(au) | |
234 | 242 | } | |
235 | 243 | else throw("Match error") | |
236 | 244 | } | |
237 | 245 | if ((0 >= y)) | |
238 | 246 | then throw(("Deposit amount must be positive. Actual: " + toString(y))) | |
239 | 247 | else { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
248 | + | let av = (m + "_asset_balance") | |
249 | + | let aw = toString(D.caller) | |
250 | + | let ax = (((m + "_") + aw) + "_asset_balance") | |
251 | + | let ay = p(m) | |
252 | + | let az = { | |
245 | 253 | let q = getString((m + "_liquidity_token")) | |
246 | 254 | if ($isInstanceOf(q, "String")) | |
247 | 255 | then { | |
255 | 263 | } | |
256 | 264 | if (l(m)) | |
257 | 265 | then { | |
258 | - | let | |
259 | - | let q = assetInfo(fromBase58String( | |
266 | + | let aA = { | |
267 | + | let q = assetInfo(fromBase58String(az)) | |
260 | 268 | if ($isInstanceOf(q, "Asset")) | |
261 | 269 | then { | |
262 | - | let | |
263 | - | | |
270 | + | let C = q | |
271 | + | C.decimals | |
264 | 272 | } | |
265 | 273 | else throw("Can't find asset") | |
266 | 274 | } | |
267 | - | if (( | |
275 | + | if ((az != at)) | |
268 | 276 | then throw("You attached wrong liquidity token from Swop.fi") | |
269 | 277 | else { | |
270 | - | let aB = getIntegerValue(this, | |
278 | + | let aB = getIntegerValue(this, av) | |
271 | 279 | let aC = { | |
272 | - | let q = getInteger( | |
280 | + | let q = getInteger(ax) | |
273 | 281 | if ($isInstanceOf(q, "Int")) | |
274 | 282 | then { | |
275 | 283 | let aD = q | |
281 | 289 | } | |
282 | 290 | } | |
283 | 291 | let aE = ((y - fraction(y, 1, a, HALFUP)) - fraction(y, 1, b, HALFUP)) | |
284 | - | let aF = x(aE, fromBase58String( | |
292 | + | let aF = x(aE, fromBase58String(at), m) | |
285 | 293 | let aG = (y - aE) | |
286 | 294 | let aH = ((aB + y) - aG) | |
287 | 295 | let aI = (aC + aF) | |
288 | - | let aJ = (((((m + "_") + | |
289 | - | [Reissue(fromBase58String( | |
296 | + | let aJ = (((((m + "_") + aw) + "_") + toBase58String(D.transactionId)) + "_locked") | |
297 | + | [Reissue(fromBase58String(ay), aF, true), ScriptTransfer(D.caller, aE, fromBase58String(ay)), ScriptTransfer(h, aG, fromBase58String(az)), IntegerEntry(aJ, aE), IntegerEntry(av, aH), IntegerEntry(ax, aI)] | |
290 | 298 | } | |
291 | 299 | } | |
292 | 300 | else throw("Pool is not active!") | |
295 | 303 | ||
296 | 304 | ||
297 | 305 | ||
298 | - | @Callable( | |
299 | - | func withdraw (m) = if ((size( | |
306 | + | @Callable(D) | |
307 | + | func withdraw (m) = if ((size(D.payments) != 1)) | |
300 | 308 | then throw("One attached payment expected") | |
301 | 309 | else { | |
302 | - | let y = | |
303 | - | let z = | |
304 | - | let | |
310 | + | let y = D.payments[0].amount | |
311 | + | let z = D.payments[0].assetId | |
312 | + | let at = { | |
305 | 313 | let q = z | |
306 | 314 | if ($isInstanceOf(q, "ByteVector")) | |
307 | 315 | then { | |
308 | - | let | |
309 | - | toBase58String( | |
316 | + | let au = q | |
317 | + | toBase58String(au) | |
310 | 318 | } | |
311 | 319 | else throw("Match error") | |
312 | 320 | } | |
314 | 322 | then throw(("Deposit amount must be positive. Actual: " + toString(y))) | |
315 | 323 | else if (l(m)) | |
316 | 324 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
325 | + | let av = (m + "_asset_balance") | |
326 | + | let aw = toString(D.caller) | |
327 | + | let ax = (((m + "_") + aw) + "_asset_balance") | |
320 | 328 | let aC = { | |
321 | - | let q = getInteger( | |
329 | + | let q = getInteger(ax) | |
322 | 330 | if ($isInstanceOf(q, "Int")) | |
323 | 331 | then { | |
324 | 332 | let aD = q | |
329 | 337 | 0 | |
330 | 338 | } | |
331 | 339 | } | |
332 | - | let | |
333 | - | let | |
334 | - | let aB = getIntegerValue(this, | |
340 | + | let ay = p(m) | |
341 | + | let az = t(m) | |
342 | + | let aB = getIntegerValue(this, av) | |
335 | 343 | let aE = ((y - fraction(y, 1, c, HALFUP)) - fraction(y, 1, b, HALFUP)) | |
336 | - | let aF = x(aE, fromBase58String( | |
344 | + | let aF = x(aE, fromBase58String(at), m) | |
337 | 345 | let aH = (aB - aE) | |
338 | 346 | let aG = (y - aE) | |
339 | 347 | let aI = (aC - y) | |
340 | - | [Burn(fromBase58String( | |
348 | + | [Burn(fromBase58String(ay), aF), ScriptTransfer(D.caller, aF, fromBase58String(az)), ScriptTransfer(h, aG, fromBase58String(az)), IntegerEntry(av, aH), IntegerEntry(ax, aI)] | |
341 | 349 | } | |
342 | 350 | else throw("Pool is not active!") | |
343 | 351 | } | |
344 | 352 | ||
345 | 353 | ||
346 | 354 | ||
347 | - | @Callable( | |
348 | - | func poolActivating ( | |
355 | + | @Callable(D) | |
356 | + | func poolActivating (E,aK) = if (containsElement([d, e, f], D.callerPublicKey)) | |
349 | 357 | then { | |
350 | - | func | |
351 | - | let | |
352 | - | let aL = aK[ | |
353 | - | BooleanEntry((m + "_active"), aL) :: | |
358 | + | func P (J,m) = { | |
359 | + | let L = value(indexOf(E, m)) | |
360 | + | let aL = aK[L] | |
361 | + | BooleanEntry((m + "_active"), aL) :: J | |
354 | 362 | } | |
355 | 363 | ||
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | func | |
361 | - | then | |
362 | - | else | |
364 | + | let ah = { | |
365 | + | let R = E | |
366 | + | let S = size(R) | |
367 | + | let T = nil | |
368 | + | func U (V,W) = if ((W >= S)) | |
369 | + | then V | |
370 | + | else P(V, R[W]) | |
363 | 371 | ||
364 | - | func | |
365 | - | then | |
372 | + | func X (V,W) = if ((W >= S)) | |
373 | + | then V | |
366 | 374 | else throw("List size exceeds 100") | |
367 | 375 | ||
368 | - | | |
376 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
369 | 377 | } | |
370 | - | | |
378 | + | ah | |
371 | 379 | } | |
372 | 380 | else throw("Only admin can call this function") | |
373 | 381 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | let c = 10000 | |
9 | 9 | ||
10 | 10 | let d = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
11 | 11 | ||
12 | 12 | let e = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt' | |
13 | 13 | ||
14 | 14 | let f = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | 16 | let g = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3PKoJ7GHwmidFPX6NiqKZdq8Zj2auPMNPnE') | |
19 | 19 | ||
20 | 20 | let i = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
21 | 21 | ||
22 | 22 | let j = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
23 | 23 | ||
24 | 24 | let k = ["replenishWithTwoTokens", "exchange"] | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = (m + "_active") | |
28 | 28 | let o = getBooleanValue(this, n) | |
29 | 29 | o | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (m) = { | |
34 | 34 | let q = getString((m + "_service_token")) | |
35 | 35 | if ($isInstanceOf(q, "String")) | |
36 | 36 | then { | |
37 | 37 | let r = q | |
38 | 38 | r | |
39 | 39 | } | |
40 | 40 | else { | |
41 | 41 | let s = q | |
42 | 42 | throw("You try to deposit on unsupported pool") | |
43 | 43 | } | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t (m) = { | |
48 | 48 | let q = getString((m + "_liquidity_token")) | |
49 | 49 | if ($isInstanceOf(q, "String")) | |
50 | 50 | then { | |
51 | 51 | let r = q | |
52 | 52 | r | |
53 | 53 | } | |
54 | 54 | else { | |
55 | 55 | let s = q | |
56 | 56 | throw("You try to withdraw from unsupported pool") | |
57 | 57 | } | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func u (v) = { | |
62 | 62 | let q = getInteger(i, (((v + "_") + toString(this)) + "_share_tokens_locked")) | |
63 | 63 | if ($isInstanceOf(q, "Int")) | |
64 | 64 | then { | |
65 | 65 | let w = q | |
66 | 66 | w | |
67 | 67 | } | |
68 | 68 | else if ($isInstanceOf(q, "Unit")) | |
69 | 69 | then { | |
70 | 70 | let s = q | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | else throw("Match error") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func x (y,z,v) = { | |
78 | 78 | let A = u(v) | |
79 | - | let B = value(assetInfo(z)).quantity | |
79 | + | let B = { | |
80 | + | let q = assetInfo(z) | |
81 | + | if ($isInstanceOf(q, "Asset")) | |
82 | + | then { | |
83 | + | let C = q | |
84 | + | C.quantity | |
85 | + | } | |
86 | + | else throw("Can't find asset") | |
87 | + | } | |
80 | 88 | fraction(y, A, B) | |
81 | 89 | } | |
82 | 90 | ||
83 | 91 | ||
84 | - | @Callable( | |
85 | - | func addPools ( | |
92 | + | @Callable(D) | |
93 | + | func addPools (E,F,G,H) = if (containsElement([d, e, f], D.callerPublicKey)) | |
86 | 94 | then { | |
87 | - | func | |
95 | + | func I (J,m) = IntegerEntry((m + "_asset_balance"), 0) :: J | |
88 | 96 | ||
89 | - | func | |
90 | - | let | |
91 | - | let | |
92 | - | StringEntry((m + "_liquidity_token"), | |
97 | + | func K (J,m) = { | |
98 | + | let L = value(indexOf(E, m)) | |
99 | + | let M = F[L] | |
100 | + | StringEntry((m + "_liquidity_token"), M) :: J | |
93 | 101 | } | |
94 | 102 | ||
95 | - | func | |
96 | - | let | |
97 | - | let | |
98 | - | StringEntry((m + "_service_token"), | |
103 | + | func N (J,m) = { | |
104 | + | let L = value(indexOf(E, m)) | |
105 | + | let M = G[L] | |
106 | + | StringEntry((m + "_service_token"), M) :: J | |
99 | 107 | } | |
100 | 108 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | IntegerEntry((m + "_service_token_decimal"), | |
109 | + | func O (J,m) = { | |
110 | + | let L = value(indexOf(E, m)) | |
111 | + | let M = H[L] | |
112 | + | IntegerEntry((m + "_service_token_decimal"), M) :: J | |
105 | 113 | } | |
106 | 114 | ||
107 | - | func | |
115 | + | func P (J,m) = BooleanEntry((m + "_active"), true) :: J | |
108 | 116 | ||
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | let | |
113 | - | func | |
114 | - | then | |
115 | - | else | |
117 | + | let Q = { | |
118 | + | let R = E | |
119 | + | let S = size(R) | |
120 | + | let T = nil | |
121 | + | func U (V,W) = if ((W >= S)) | |
122 | + | then V | |
123 | + | else I(V, R[W]) | |
116 | 124 | ||
117 | - | func | |
118 | - | then | |
125 | + | func X (V,W) = if ((W >= S)) | |
126 | + | then V | |
119 | 127 | else throw("List size exceeds 20") | |
120 | 128 | ||
121 | - | | |
129 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
122 | 130 | } | |
123 | - | let | |
124 | - | let | |
125 | - | let | |
126 | - | let | |
127 | - | func | |
128 | - | then | |
129 | - | else | |
131 | + | let Y = { | |
132 | + | let R = E | |
133 | + | let S = size(R) | |
134 | + | let T = nil | |
135 | + | func Z (V,W) = if ((W >= S)) | |
136 | + | then V | |
137 | + | else K(V, R[W]) | |
130 | 138 | ||
131 | - | func | |
132 | - | then | |
139 | + | func aa (V,W) = if ((W >= S)) | |
140 | + | then V | |
133 | 141 | else throw("List size exceeds 20") | |
134 | 142 | ||
135 | - | Z( | |
143 | + | aa(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
136 | 144 | } | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | func | |
142 | - | then | |
143 | - | else | |
145 | + | let ab = { | |
146 | + | let R = E | |
147 | + | let S = size(R) | |
148 | + | let T = nil | |
149 | + | func ac (V,W) = if ((W >= S)) | |
150 | + | then V | |
151 | + | else N(V, R[W]) | |
144 | 152 | ||
145 | - | func | |
146 | - | then | |
153 | + | func ad (V,W) = if ((W >= S)) | |
154 | + | then V | |
147 | 155 | else throw("List size exceeds 20") | |
148 | 156 | ||
149 | - | ac( | |
157 | + | ad(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
150 | 158 | } | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | func | |
156 | - | then | |
157 | - | else | |
159 | + | let ae = { | |
160 | + | let R = E | |
161 | + | let S = size(R) | |
162 | + | let T = nil | |
163 | + | func af (V,W) = if ((W >= S)) | |
164 | + | then V | |
165 | + | else O(V, R[W]) | |
158 | 166 | ||
159 | - | func | |
160 | - | then | |
167 | + | func ag (V,W) = if ((W >= S)) | |
168 | + | then V | |
161 | 169 | else throw("List size exceeds 20") | |
162 | 170 | ||
163 | - | af( | |
171 | + | ag(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(af(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
164 | 172 | } | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | func | |
170 | - | then | |
171 | - | else | |
173 | + | let ah = { | |
174 | + | let R = E | |
175 | + | let S = size(R) | |
176 | + | let T = nil | |
177 | + | func ai (V,W) = if ((W >= S)) | |
178 | + | then V | |
179 | + | else P(V, R[W]) | |
172 | 180 | ||
173 | - | func | |
174 | - | then | |
181 | + | func aj (V,W) = if ((W >= S)) | |
182 | + | then V | |
175 | 183 | else throw("List size exceeds 20") | |
176 | 184 | ||
177 | - | ai( | |
185 | + | aj(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
178 | 186 | } | |
179 | - | (((( | |
187 | + | ((((Q ++ Y) ++ ab) ++ ae) ++ ah) | |
180 | 188 | } | |
181 | 189 | else throw("Only admin can call this function") | |
182 | 190 | ||
183 | 191 | ||
184 | 192 | ||
185 | - | @Callable( | |
186 | - | func deleteDepositLockRecords ( | |
193 | + | @Callable(D) | |
194 | + | func deleteDepositLockRecords (ak) = if (containsElement([d, e, f], D.callerPublicKey)) | |
187 | 195 | then { | |
188 | - | func | |
196 | + | func al (J,am) = DeleteEntry((am + "_locked")) :: J | |
189 | 197 | ||
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | func | |
195 | - | then | |
196 | - | else | |
198 | + | let an = { | |
199 | + | let R = ak | |
200 | + | let S = size(R) | |
201 | + | let T = nil | |
202 | + | func U (V,W) = if ((W >= S)) | |
203 | + | then V | |
204 | + | else al(V, R[W]) | |
197 | 205 | ||
198 | - | func | |
199 | - | then | |
206 | + | func X (V,W) = if ((W >= S)) | |
207 | + | then V | |
200 | 208 | else throw("List size exceeds 100") | |
201 | 209 | ||
202 | - | | |
210 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
203 | 211 | } | |
204 | - | | |
212 | + | an | |
205 | 213 | } | |
206 | 214 | else throw("Only admin can call this function") | |
207 | 215 | ||
208 | 216 | ||
209 | 217 | ||
210 | - | @Callable( | |
211 | - | func issueToken ( | |
212 | - | then [Issue( | |
218 | + | @Callable(D) | |
219 | + | func issueToken (ao,ap,aq,ar) = if (containsElement([d, e, f], D.callerPublicKey)) | |
220 | + | then [Issue(ao, ap, aq, ar, true, unit, 0)] | |
213 | 221 | else throw("Only admin can call this function") | |
214 | 222 | ||
215 | 223 | ||
216 | 224 | ||
217 | - | @Callable( | |
225 | + | @Callable(as) | |
218 | 226 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
219 | 227 | ||
220 | 228 | ||
221 | 229 | ||
222 | - | @Callable( | |
223 | - | func deposit (m) = if ((size( | |
230 | + | @Callable(D) | |
231 | + | func deposit (m) = if ((size(D.payments) != 1)) | |
224 | 232 | then throw("One attached payment expected") | |
225 | 233 | else { | |
226 | - | let y = | |
227 | - | let z = | |
228 | - | let | |
234 | + | let y = D.payments[0].amount | |
235 | + | let z = D.payments[0].assetId | |
236 | + | let at = { | |
229 | 237 | let q = z | |
230 | 238 | if ($isInstanceOf(q, "ByteVector")) | |
231 | 239 | then { | |
232 | - | let | |
233 | - | toBase58String( | |
240 | + | let au = q | |
241 | + | toBase58String(au) | |
234 | 242 | } | |
235 | 243 | else throw("Match error") | |
236 | 244 | } | |
237 | 245 | if ((0 >= y)) | |
238 | 246 | then throw(("Deposit amount must be positive. Actual: " + toString(y))) | |
239 | 247 | else { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
248 | + | let av = (m + "_asset_balance") | |
249 | + | let aw = toString(D.caller) | |
250 | + | let ax = (((m + "_") + aw) + "_asset_balance") | |
251 | + | let ay = p(m) | |
252 | + | let az = { | |
245 | 253 | let q = getString((m + "_liquidity_token")) | |
246 | 254 | if ($isInstanceOf(q, "String")) | |
247 | 255 | then { | |
248 | 256 | let r = q | |
249 | 257 | r | |
250 | 258 | } | |
251 | 259 | else { | |
252 | 260 | let s = q | |
253 | 261 | throw("You try to deposit on unsupported pool") | |
254 | 262 | } | |
255 | 263 | } | |
256 | 264 | if (l(m)) | |
257 | 265 | then { | |
258 | - | let | |
259 | - | let q = assetInfo(fromBase58String( | |
266 | + | let aA = { | |
267 | + | let q = assetInfo(fromBase58String(az)) | |
260 | 268 | if ($isInstanceOf(q, "Asset")) | |
261 | 269 | then { | |
262 | - | let | |
263 | - | | |
270 | + | let C = q | |
271 | + | C.decimals | |
264 | 272 | } | |
265 | 273 | else throw("Can't find asset") | |
266 | 274 | } | |
267 | - | if (( | |
275 | + | if ((az != at)) | |
268 | 276 | then throw("You attached wrong liquidity token from Swop.fi") | |
269 | 277 | else { | |
270 | - | let aB = getIntegerValue(this, | |
278 | + | let aB = getIntegerValue(this, av) | |
271 | 279 | let aC = { | |
272 | - | let q = getInteger( | |
280 | + | let q = getInteger(ax) | |
273 | 281 | if ($isInstanceOf(q, "Int")) | |
274 | 282 | then { | |
275 | 283 | let aD = q | |
276 | 284 | aD | |
277 | 285 | } | |
278 | 286 | else { | |
279 | 287 | let s = q | |
280 | 288 | 0 | |
281 | 289 | } | |
282 | 290 | } | |
283 | 291 | let aE = ((y - fraction(y, 1, a, HALFUP)) - fraction(y, 1, b, HALFUP)) | |
284 | - | let aF = x(aE, fromBase58String( | |
292 | + | let aF = x(aE, fromBase58String(at), m) | |
285 | 293 | let aG = (y - aE) | |
286 | 294 | let aH = ((aB + y) - aG) | |
287 | 295 | let aI = (aC + aF) | |
288 | - | let aJ = (((((m + "_") + | |
289 | - | [Reissue(fromBase58String( | |
296 | + | let aJ = (((((m + "_") + aw) + "_") + toBase58String(D.transactionId)) + "_locked") | |
297 | + | [Reissue(fromBase58String(ay), aF, true), ScriptTransfer(D.caller, aE, fromBase58String(ay)), ScriptTransfer(h, aG, fromBase58String(az)), IntegerEntry(aJ, aE), IntegerEntry(av, aH), IntegerEntry(ax, aI)] | |
290 | 298 | } | |
291 | 299 | } | |
292 | 300 | else throw("Pool is not active!") | |
293 | 301 | } | |
294 | 302 | } | |
295 | 303 | ||
296 | 304 | ||
297 | 305 | ||
298 | - | @Callable( | |
299 | - | func withdraw (m) = if ((size( | |
306 | + | @Callable(D) | |
307 | + | func withdraw (m) = if ((size(D.payments) != 1)) | |
300 | 308 | then throw("One attached payment expected") | |
301 | 309 | else { | |
302 | - | let y = | |
303 | - | let z = | |
304 | - | let | |
310 | + | let y = D.payments[0].amount | |
311 | + | let z = D.payments[0].assetId | |
312 | + | let at = { | |
305 | 313 | let q = z | |
306 | 314 | if ($isInstanceOf(q, "ByteVector")) | |
307 | 315 | then { | |
308 | - | let | |
309 | - | toBase58String( | |
316 | + | let au = q | |
317 | + | toBase58String(au) | |
310 | 318 | } | |
311 | 319 | else throw("Match error") | |
312 | 320 | } | |
313 | 321 | if ((0 >= y)) | |
314 | 322 | then throw(("Deposit amount must be positive. Actual: " + toString(y))) | |
315 | 323 | else if (l(m)) | |
316 | 324 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
325 | + | let av = (m + "_asset_balance") | |
326 | + | let aw = toString(D.caller) | |
327 | + | let ax = (((m + "_") + aw) + "_asset_balance") | |
320 | 328 | let aC = { | |
321 | - | let q = getInteger( | |
329 | + | let q = getInteger(ax) | |
322 | 330 | if ($isInstanceOf(q, "Int")) | |
323 | 331 | then { | |
324 | 332 | let aD = q | |
325 | 333 | aD | |
326 | 334 | } | |
327 | 335 | else { | |
328 | 336 | let s = q | |
329 | 337 | 0 | |
330 | 338 | } | |
331 | 339 | } | |
332 | - | let | |
333 | - | let | |
334 | - | let aB = getIntegerValue(this, | |
340 | + | let ay = p(m) | |
341 | + | let az = t(m) | |
342 | + | let aB = getIntegerValue(this, av) | |
335 | 343 | let aE = ((y - fraction(y, 1, c, HALFUP)) - fraction(y, 1, b, HALFUP)) | |
336 | - | let aF = x(aE, fromBase58String( | |
344 | + | let aF = x(aE, fromBase58String(at), m) | |
337 | 345 | let aH = (aB - aE) | |
338 | 346 | let aG = (y - aE) | |
339 | 347 | let aI = (aC - y) | |
340 | - | [Burn(fromBase58String( | |
348 | + | [Burn(fromBase58String(ay), aF), ScriptTransfer(D.caller, aF, fromBase58String(az)), ScriptTransfer(h, aG, fromBase58String(az)), IntegerEntry(av, aH), IntegerEntry(ax, aI)] | |
341 | 349 | } | |
342 | 350 | else throw("Pool is not active!") | |
343 | 351 | } | |
344 | 352 | ||
345 | 353 | ||
346 | 354 | ||
347 | - | @Callable( | |
348 | - | func poolActivating ( | |
355 | + | @Callable(D) | |
356 | + | func poolActivating (E,aK) = if (containsElement([d, e, f], D.callerPublicKey)) | |
349 | 357 | then { | |
350 | - | func | |
351 | - | let | |
352 | - | let aL = aK[ | |
353 | - | BooleanEntry((m + "_active"), aL) :: | |
358 | + | func P (J,m) = { | |
359 | + | let L = value(indexOf(E, m)) | |
360 | + | let aL = aK[L] | |
361 | + | BooleanEntry((m + "_active"), aL) :: J | |
354 | 362 | } | |
355 | 363 | ||
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | func | |
361 | - | then | |
362 | - | else | |
364 | + | let ah = { | |
365 | + | let R = E | |
366 | + | let S = size(R) | |
367 | + | let T = nil | |
368 | + | func U (V,W) = if ((W >= S)) | |
369 | + | then V | |
370 | + | else P(V, R[W]) | |
363 | 371 | ||
364 | - | func | |
365 | - | then | |
372 | + | func X (V,W) = if ((W >= S)) | |
373 | + | then V | |
366 | 374 | else throw("List size exceeds 100") | |
367 | 375 | ||
368 | - | | |
376 | + | X(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
369 | 377 | } | |
370 | - | | |
378 | + | ah | |
371 | 379 | } | |
372 | 380 | else throw("Only admin can call this function") | |
373 | 381 | ||
374 | 382 | ||
375 | 383 | @Verifier(aM) | |
376 | 384 | func aN () = { | |
377 | 385 | let q = aM | |
378 | 386 | if ($isInstanceOf(q, "InvokeScriptTransaction")) | |
379 | 387 | then { | |
380 | 388 | let aO = q | |
381 | 389 | let aP = if ((aO.dApp == i)) | |
382 | 390 | then if (if ((aO.function == "lockShareTokens")) | |
383 | 391 | then true | |
384 | 392 | else (aO.function == "claim")) | |
385 | 393 | then true | |
386 | 394 | else (aO.function == "withdrawShareTokens") | |
387 | 395 | else false | |
388 | 396 | let aQ = { | |
389 | 397 | let aR = aO.dApp | |
390 | 398 | if ($isInstanceOf(aR, "Address")) | |
391 | 399 | then { | |
392 | 400 | let aS = aR | |
393 | 401 | toString(aS) | |
394 | 402 | } | |
395 | 403 | else throw("Transaction must have only address") | |
396 | 404 | } | |
397 | 405 | let aT = if (containsElement(j, aQ)) | |
398 | 406 | then containsElement(k, aO.function) | |
399 | 407 | else false | |
400 | 408 | let aU = if (if (if (sigVerify(aM.bodyBytes, aM.proofs[0], d)) | |
401 | 409 | then true | |
402 | 410 | else sigVerify(aM.bodyBytes, aM.proofs[0], e)) | |
403 | 411 | then true | |
404 | 412 | else sigVerify(aM.bodyBytes, aM.proofs[0], g)) | |
405 | 413 | then true | |
406 | 414 | else sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey) | |
407 | 415 | if (if (aP) | |
408 | 416 | then true | |
409 | 417 | else aT) | |
410 | 418 | then aU | |
411 | 419 | else false | |
412 | 420 | } | |
413 | 421 | else { | |
414 | 422 | let aV = if (sigVerify(aM.bodyBytes, aM.proofs[0], d)) | |
415 | 423 | then 1 | |
416 | 424 | else 0 | |
417 | 425 | let aW = if (sigVerify(aM.bodyBytes, aM.proofs[1], e)) | |
418 | 426 | then 1 | |
419 | 427 | else 0 | |
420 | 428 | let aX = if (sigVerify(aM.bodyBytes, aM.proofs[2], f)) | |
421 | 429 | then 1 | |
422 | 430 | else 0 | |
423 | 431 | (((aV + aW) + aX) >= 2) | |
424 | 432 | } | |
425 | 433 | } | |
426 | 434 |
github/deemru/w8io/169f3d6 246.54 ms ◑