tx · HCMT5Xyi3gqbDsWpU8ncB1G78GBMjGeCQk1wLiwewK9C 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.03200000 Waves 2023.01.12 12:20 [2401543] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "HCMT5Xyi3gqbDsWpU8ncB1G78GBMjGeCQk1wLiwewK9C", "fee": 3200000, "feeAssetId": null, "timestamp": 1673515231194, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "UFhEKu6ujDUiE5Bm8jYbVpuQoeqKaScAAFpShWmLan8esDKJZiVzLZxk3gtHEBZpn42Wq9PD7vjJT2BjUPMcLAM" ], "script": "base64:BgK/IggCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCCIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiCnNsaXBwYWdlNEQiC3dhdmVzU3RyaW5nIgVBbXVsdCIFRGNvbnYiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiClBvb2xQdXREaXMiDlBvb2xNYXRjaGVyRGlzIgxQb29sU2h1dGRvd24iDmlkeFBvb2xBZGRyZXNzIglpZHhQb29sU3QiCWlkeExQQXNJZCIJaWR4QW1Bc0lkIglpZHhQckFzSWQiC2lkeEFtdEFzRGNtIg1pZHhQcmljZUFzRGNtIgtpZHhJQW10QXNJZCINaWR4SVByaWNlQXNJZCIPaWR4RmFjdFN0YWtDbnRyIhJpZHh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B1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBAJhdgUCZ08DCQABAgUCYXYCBU9yZGVyBAJkegUCYXYEAmdSCQECYUoABAJnUwkBAmR5AQUCZHoEAmdUCQD0AwMIBQJkeglib2R5Qnl0ZXMJAJEDAggFAmR6BnByb29mcwAACAUCZHoPc2VuZGVyUHVibGljS2V5BAJnVQkA9AMDCAUCZHoJYm9keUJ5dGVzCQCRAwIIBQJkegZwcm9vZnMAAQUCZ1IDAwMFAmdTBQJnVAcFAmdVBwYJAQJhcQMFAmdTBQJnVAUCZ1UDCQABAgUCYXYCFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJkWgUCYXYEAmdWCQD2AwEJAQV2YWx1ZQEIBQJkWgZzY3JpcHQEAmdXCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUQJAQJhbwAEAmdYCQDxBwEFBHRoaXMDAwkAAAIFAmdXBQJnVgkBAiE9AgUCZ1gFAmdWBwYJAPQDAwgFAmdPCWJvZHlCeXRlcwkAkQMCCAUCZ08GcHJvb2ZzAAAFAmdRCQD0AwMIBQJnTwlib2R5Qnl0ZXMJAJEDAggFAmdPBnByb29mcwAABQJnUe0WFj4=", "chainId": 84, "height": 2401543, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3VmrM7BTZe9nfJEvJwc7348oT3yaNp1SsRg8CXeXUXjh Next: 6J4GfHLtAFMqJU6SrHPGqqEvnVfQaNixzKokUNLu5RLN Diff:
Old | New | Differences | |
---|---|---|---|
1247 | 1247 | let gt = valueOrErrorMessage(addressFromString(gs[A]), "Wr st addr") | |
1248 | 1248 | let co = dM.caller | |
1249 | 1249 | let gB = this | |
1250 | - | let gu = invoke(gt, "unstakeINTERNAL", [toBase58String(fO), gx, co, gB], nil) | |
1250 | + | let gu = invoke(gt, "unstakeINTERNAL", [toBase58String(fO), gx, co.bytes, gB.bytes], nil) | |
1251 | 1251 | if ((gu == gu)) | |
1252 | 1252 | then { | |
1253 | 1253 | let gC = fe(ff, fg, [AttachedPayment(fO, gx)], dM.caller, dM.originCaller, dM.transactionId) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt((a - ((a * 1) / a))) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "100" | |
23 | 23 | ||
24 | 24 | let k = "1" | |
25 | 25 | ||
26 | 26 | let l = "__" | |
27 | 27 | ||
28 | 28 | let m = "" | |
29 | 29 | ||
30 | 30 | let n = 1 | |
31 | 31 | ||
32 | 32 | let o = 2 | |
33 | 33 | ||
34 | 34 | let p = 3 | |
35 | 35 | ||
36 | 36 | let q = 4 | |
37 | 37 | ||
38 | 38 | let r = 1 | |
39 | 39 | ||
40 | 40 | let s = 2 | |
41 | 41 | ||
42 | 42 | let t = 3 | |
43 | 43 | ||
44 | 44 | let u = 4 | |
45 | 45 | ||
46 | 46 | let v = 5 | |
47 | 47 | ||
48 | 48 | let w = 6 | |
49 | 49 | ||
50 | 50 | let x = 7 | |
51 | 51 | ||
52 | 52 | let y = 8 | |
53 | 53 | ||
54 | 54 | let z = 9 | |
55 | 55 | ||
56 | 56 | let A = 1 | |
57 | 57 | ||
58 | 58 | let B = 6 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | let D = 10 | |
63 | 63 | ||
64 | 64 | let E = fraction(10, a, 10000) | |
65 | 65 | ||
66 | 66 | func F (G,H) = fraction(toBigInt(G), c, toBigInt(H)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func I (J,K) = toInt(fraction(J, toBigInt(K), c)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func L (M,N,O) = fraction(M, N, O) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func P (J) = if ((d > J)) | |
76 | 76 | then -(J) | |
77 | 77 | else J | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func Q (J) = if ((d > J)) | |
81 | 81 | then -(J) | |
82 | 82 | else J | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func R () = "%s__factoryContract" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func S () = "%s__managerPublicKey" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func T () = "%s__pendingManagerPublicKey" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func U () = "%s%s__price__last" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func V (W,X) = makeString(["%s%s%d%d__price__history", toString(W), toString(X)], l) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func Y (Z,aa) = ((("%s%s%s__P__" + Z) + "__") + aa) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func ab (Z,aa) = ((("%s%s%s__G__" + Z) + "__") + aa) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func ac () = "%s__amountAsset" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func ad () = "%s__priceAsset" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func ae () = "%s__amp" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func af () = "%s__addonAddr" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func ag () = "%s__factoryConfig" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func ah () = "%s%s__matcher__publicKey" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ai (aj,ak) = (((("%d%d%s__" + aj) + "__") + ak) + "__config") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al (am) = ("%s%s%s__mappings__baseAsset2internalId__" + am) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func an () = "%s__shutdown" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ao () = "%s__allowedLpStableScriptHash" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ap () = "%s__feeCollectorAddress" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func aq (ar,as,at) = throw(((((("Failed: ordValid=" + toString(ar)) + " sndrValid=") + toString(as)) + " mtchrValid=") + toString(at))) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func au (J) = { | |
143 | 143 | let av = J | |
144 | 144 | if ($isInstanceOf(av, "String")) | |
145 | 145 | then { | |
146 | 146 | let aw = av | |
147 | 147 | aw | |
148 | 148 | } | |
149 | 149 | else throw("fail cast to String") | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ax (ay,az) = valueOrErrorMessage(getString(ay, az), makeString(["mandatory ", toString(ay), ".", az, " not defined"], "")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aA (ay,az) = valueOrErrorMessage(getInteger(ay, az), makeString(["mandatory ", toString(ay), ".", az, " not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aB (aC) = throw(makeString(["lp_stable.ride:", aC], " ")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | let aD = addressFromStringValue(ax(this, R())) | |
163 | 163 | ||
164 | 164 | let aE = { | |
165 | 165 | let aF = invoke(aD, "getInFeeREADONLY", [toString(this)], nil) | |
166 | 166 | if ($isInstanceOf(aF, "Int")) | |
167 | 167 | then aF | |
168 | 168 | else throw(($getType(aF) + " couldn't be cast to Int")) | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | let aG = { | |
172 | 172 | let aF = invoke(aD, "getOutFeeREADONLY", [toString(this)], nil) | |
173 | 173 | if ($isInstanceOf(aF, "Int")) | |
174 | 174 | then aF | |
175 | 175 | else throw(($getType(aF) + " couldn't be cast to Int")) | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | let aH = ax(this, ae()) | |
179 | 179 | ||
180 | 180 | func aI () = valueOrElse(getBoolean(aD, an()), false) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aJ () = fromBase58String(ax(aD, ah())) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | let aK = addressFromStringValue(ax(aD, ap())) | |
187 | 187 | ||
188 | 188 | func aL () = { | |
189 | 189 | let aM = ax(this, ac()) | |
190 | 190 | let aN = ax(this, ad()) | |
191 | 191 | let aO = aA(aD, al(aN)) | |
192 | 192 | let aj = aA(aD, al(aM)) | |
193 | 193 | split(ax(aD, ai(toString(aj), toString(aO))), l) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func aP (aQ) = if ((aQ == i)) | |
198 | 198 | then unit | |
199 | 199 | else fromBase58String(aQ) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aR (aQ) = if ((aQ == unit)) | |
203 | 203 | then i | |
204 | 204 | else toBase58String(value(aQ)) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aS (aT) = $Tuple7(addressFromStringValue(aT[r]), parseIntValue(aT[s]), fromBase58String(aT[t]), aP(aT[u]), aP(aT[v]), parseIntValue(aT[w]), parseIntValue(aT[x])) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | let aU = aS(aL()) | |
211 | 211 | ||
212 | 212 | let aV = aU | |
213 | 213 | ||
214 | 214 | let aW = aV._1 | |
215 | 215 | ||
216 | 216 | let aX = aV._2 | |
217 | 217 | ||
218 | 218 | let aY = aV._3 | |
219 | 219 | ||
220 | 220 | let aZ = aV._4 | |
221 | 221 | ||
222 | 222 | let ba = aV._5 | |
223 | 223 | ||
224 | 224 | let bb = aV._6 | |
225 | 225 | ||
226 | 226 | let bc = aV._7 | |
227 | 227 | ||
228 | 228 | func bd () = split(ax(aD, ag()), l) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | let be = bd() | |
232 | 232 | ||
233 | 233 | let bf = valueOrErrorMessage(addressFromString(be[A]), "Invalid staking contract address") | |
234 | 234 | ||
235 | 235 | let bg = valueOrErrorMessage(addressFromString(be[C]), "Invalid slipage contract address") | |
236 | 236 | ||
237 | 237 | let bh = valueOrErrorMessage(addressFromString(be[D]), "Invalid gwx contract address") | |
238 | 238 | ||
239 | 239 | let bi = valueOrErrorMessage(addressFromString(be[B]), "Invalid gwx contract address") | |
240 | 240 | ||
241 | 241 | func bj (bk,bl,bm,bn,bo,bp,bq,br,bs,bt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br), toString(bs), toString(bt)], l) | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func bu (bv,bw,bx,bn,bq,br) = makeString(["%d%d%d%d%d%d", toString(bv), toString(bw), toString(bx), toString(bn), toString(bq), toString(br)], l) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func by (bz) = if ((bz == "WAVES")) | |
248 | 248 | then wavesBalance(this).available | |
249 | 249 | else assetBalance(this, fromBase58String(bz)) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func bA (bB,bC) = fraction(bB, c, bC) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func bD (bE,bF,bG) = { | |
256 | 256 | let bH = fraction((bE - bF), b, bF) | |
257 | 257 | let bI = ((bG - P(bH)) > d) | |
258 | 258 | if (!(bI)) | |
259 | 259 | then throw(("Big slpg: " + toString(bH))) | |
260 | 260 | else $Tuple2(bI, min([bE, bF])) | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func bJ (bK,bL,bM) = { | |
265 | 265 | let bH = fraction(bL, b, bK) | |
266 | 266 | let bN = (bM > bH) | |
267 | 267 | if (if (bN) | |
268 | 268 | then true | |
269 | 269 | else (bL > bK)) | |
270 | 270 | then throw(((((((toString(bL) + " ") + toString(bK)) + " ") + toString(bH)) + " ") + toString(bM))) | |
271 | 271 | else bN | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bO (bP,bQ,bR,bS) = { | |
276 | 276 | let bT = F(bR, bP) | |
277 | 277 | let bU = F(bS, bQ) | |
278 | 278 | bA(bU, bT) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func bV (bR,bS,bW) = { | |
283 | 283 | let bX = aL() | |
284 | 284 | let bY = parseIntValue(bX[w]) | |
285 | 285 | let bZ = parseIntValue(bX[x]) | |
286 | 286 | let ca = bO(bY, bZ, bR, bS) | |
287 | 287 | let bC = F(bR, bY) | |
288 | 288 | let bB = F(bS, bZ) | |
289 | 289 | let cb = F(bW, a) | |
290 | 290 | let cc = bA(bC, cb) | |
291 | 291 | let cd = bA(bB, cb) | |
292 | 292 | [ca, cc, cd] | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func ce (bR,bS,bW) = { | |
297 | 297 | let cf = bV(bR, bS, bW) | |
298 | 298 | [I(cf[0], a), I(cf[1], a), I(cf[2], a)] | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func cg (ch,ci) = { | |
303 | 303 | let cj = if ((ci == 0)) | |
304 | 304 | then 0 | |
305 | 305 | else fraction(ch, ci, a) | |
306 | 306 | $Tuple2((ch - cj), cj) | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func ck (cl,cm,cn,co) = { | |
311 | 311 | let bX = aL() | |
312 | 312 | let cp = bX[t] | |
313 | 313 | let cq = bX[u] | |
314 | 314 | let cr = bX[v] | |
315 | 315 | let cs = parseIntValue(bX[w]) | |
316 | 316 | let ct = parseIntValue(bX[x]) | |
317 | 317 | let cu = bX[s] | |
318 | 318 | let cv = valueOrErrorMessage(assetInfo(fromBase58String(cp)), "Wrong LP id").quantity | |
319 | 319 | if ((cp != cm)) | |
320 | 320 | then throw("Wrong pmt asset") | |
321 | 321 | else { | |
322 | 322 | let cw = by(cq) | |
323 | 323 | let cx = F(cw, cs) | |
324 | 324 | let cy = by(cr) | |
325 | 325 | let cz = F(cy, ct) | |
326 | 326 | let cA = bA(cz, cx) | |
327 | 327 | let cB = I(cA, a) | |
328 | 328 | let cC = F(cn, a) | |
329 | 329 | let cD = F(cv, a) | |
330 | 330 | let cE = fraction(cx, cC, cD) | |
331 | 331 | let cF = fraction(cz, cC, cD) | |
332 | 332 | let cG = I(cE, cs) | |
333 | 333 | let cH = I(cF, ct) | |
334 | 334 | let cI = if ((cl == "")) | |
335 | 335 | then nil | |
336 | 336 | else [ScriptTransfer(co, cG, if ((cq == "WAVES")) | |
337 | 337 | then unit | |
338 | 338 | else fromBase58String(cq)), ScriptTransfer(co, cH, if ((cr == "WAVES")) | |
339 | 339 | then unit | |
340 | 340 | else fromBase58String(cr)), StringEntry(ab(toString(co), cl), bu(cG, cH, cn, cB, height, lastBlock.timestamp)), IntegerEntry(U(), cB), IntegerEntry(V(height, lastBlock.timestamp), cB)] | |
341 | 341 | $Tuple10(cG, cH, cq, cr, cw, cy, cv, cA, cu, cI) | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | func cJ (cl,bG,cK,cL,cM,cN,co,cO,cP,cQ,cR,cS,cT) = { | |
347 | 347 | let bX = aL() | |
348 | 348 | let cp = fromBase58String(bX[t]) | |
349 | 349 | let cU = bX[u] | |
350 | 350 | let cV = bX[v] | |
351 | 351 | let cW = bX[y] | |
352 | 352 | let cX = bX[z] | |
353 | 353 | let cY = parseIntValue(bX[w]) | |
354 | 354 | let cZ = parseIntValue(bX[x]) | |
355 | 355 | let cu = bX[s] | |
356 | 356 | let da = valueOrErrorMessage(assetInfo(cp), "Wr lp as").quantity | |
357 | 357 | let cw = if (cO) | |
358 | 358 | then by(cU) | |
359 | 359 | else if (if (cQ) | |
360 | 360 | then (cT == cU) | |
361 | 361 | else false) | |
362 | 362 | then (by(cU) - cS) | |
363 | 363 | else if (cQ) | |
364 | 364 | then by(cU) | |
365 | 365 | else (by(cU) - cK) | |
366 | 366 | let cy = if (cO) | |
367 | 367 | then by(cV) | |
368 | 368 | else if (if (cQ) | |
369 | 369 | then (cT == cV) | |
370 | 370 | else false) | |
371 | 371 | then (by(cV) - cS) | |
372 | 372 | else if (cQ) | |
373 | 373 | then by(cV) | |
374 | 374 | else (by(cV) - cM) | |
375 | 375 | let db = F(cK, cY) | |
376 | 376 | let dc = F(cM, cZ) | |
377 | 377 | let dd = bA(dc, db) | |
378 | 378 | let cx = F(cw, cY) | |
379 | 379 | let cz = F(cy, cZ) | |
380 | 380 | let de = if ((da == 0)) | |
381 | 381 | then { | |
382 | 382 | let cA = d | |
383 | 383 | let df = d | |
384 | 384 | let cb = pow((db * dc), 0, toBigInt(5), 1, 0, DOWN) | |
385 | 385 | $Tuple5(I(cb, a), I(db, cY), I(dc, cZ), bA((cz + dc), (cx + db)), df) | |
386 | 386 | } | |
387 | 387 | else { | |
388 | 388 | let cA = bA(cz, cx) | |
389 | 389 | let dg = fraction(P((cA - dd)), c, cA) | |
390 | 390 | let df = F(bG, a) | |
391 | 391 | if (if (if (cR) | |
392 | 392 | then (cA != d) | |
393 | 393 | else false) | |
394 | 394 | then (dg > df) | |
395 | 395 | else false) | |
396 | 396 | then throw(((("Price slippage " + toString(dg)) + " > ") + toString(df))) | |
397 | 397 | else { | |
398 | 398 | let dh = F(da, a) | |
399 | 399 | let di = fraction(db, cA, c) | |
400 | 400 | let dj = fraction(dc, c, cA) | |
401 | 401 | let dk = if ((di > dc)) | |
402 | 402 | then $Tuple2(dj, dc) | |
403 | 403 | else $Tuple2(db, di) | |
404 | 404 | let dl = dk._1 | |
405 | 405 | let dm = dk._2 | |
406 | 406 | let cb = fraction(dh, dm, cz) | |
407 | 407 | $Tuple5(I(cb, a), I(dl, cY), I(dm, cZ), cA, df) | |
408 | 408 | } | |
409 | 409 | } | |
410 | 410 | let dn = de._1 | |
411 | 411 | let do = de._2 | |
412 | 412 | let dp = de._3 | |
413 | 413 | let cB = I(de._4, a) | |
414 | 414 | let dq = I(de._5, a) | |
415 | 415 | if ((0 >= dn)) | |
416 | 416 | then throw("LP <= 0") | |
417 | 417 | else { | |
418 | 418 | let dr = if (!(cP)) | |
419 | 419 | then 0 | |
420 | 420 | else dn | |
421 | 421 | let ds = (cK - do) | |
422 | 422 | let dt = (cM - dp) | |
423 | 423 | let du = if (if (cQ) | |
424 | 424 | then (cT == cU) | |
425 | 425 | else false) | |
426 | 426 | then $Tuple2(cS, 0) | |
427 | 427 | else if (if (cQ) | |
428 | 428 | then (cT == cV) | |
429 | 429 | else false) | |
430 | 430 | then $Tuple2(0, cS) | |
431 | 431 | else $Tuple2(do, dp) | |
432 | 432 | let dv = du._1 | |
433 | 433 | let dw = du._2 | |
434 | 434 | let dx = [IntegerEntry(U(), cB), IntegerEntry(V(height, lastBlock.timestamp), cB), StringEntry(Y(co, cl), bj(dv, dw, dr, cB, bG, dq, height, lastBlock.timestamp, ds, dt))] | |
435 | 435 | $Tuple13(dn, dr, cB, cw, cy, da, cp, cu, dx, ds, dt, cL, cN) | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func dy (dz) = { | |
441 | 441 | let bX = aL() | |
442 | 442 | let dA = bX[u] | |
443 | 443 | let dB = bX[v] | |
444 | 444 | let cu = parseIntValue(bX[s]) | |
445 | 445 | let bY = parseIntValue(bX[w]) | |
446 | 446 | let bZ = parseIntValue(bX[x]) | |
447 | 447 | let dC = by(dA) | |
448 | 448 | let dD = by(dB) | |
449 | 449 | let cA = if ((dz.orderType == Buy)) | |
450 | 450 | then bO(bY, bZ, (dC + dz.amount), dD) | |
451 | 451 | else bO(bY, bZ, (dC - dz.amount), dD) | |
452 | 452 | let cB = I(cA, a) | |
453 | 453 | if (if (if (aI()) | |
454 | 454 | then true | |
455 | 455 | else (cu == p)) | |
456 | 456 | then true | |
457 | 457 | else (cu == q)) | |
458 | 458 | then throw("Admin blocked") | |
459 | 459 | else { | |
460 | 460 | let dE = dz.assetPair.amountAsset | |
461 | 461 | let dF = if ((dE == unit)) | |
462 | 462 | then "WAVES" | |
463 | 463 | else toBase58String(value(dE)) | |
464 | 464 | let dG = dz.assetPair.priceAsset | |
465 | 465 | let dH = if ((dG == unit)) | |
466 | 466 | then "WAVES" | |
467 | 467 | else toBase58String(value(dG)) | |
468 | 468 | if (if ((dF != dA)) | |
469 | 469 | then true | |
470 | 470 | else (dH != dB)) | |
471 | 471 | then throw("Wr assets") | |
472 | 472 | else { | |
473 | 473 | let dI = dz.price | |
474 | 474 | let cZ = fraction(a, bZ, bY) | |
475 | 475 | let dJ = L(dI, a, cZ) | |
476 | 476 | let dK = if ((dz.orderType == Buy)) | |
477 | 477 | then (cB >= dJ) | |
478 | 478 | else (dJ >= cB) | |
479 | 479 | true | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | func dL (dM) = if ((size(dM.payments) != 1)) | |
486 | 486 | then throw("1 pmnt exp") | |
487 | 487 | else { | |
488 | 488 | let dN = value(dM.payments[0]) | |
489 | 489 | let cm = value(dN.assetId) | |
490 | 490 | let cS = dN.amount | |
491 | 491 | let de = ck(toBase58String(dM.transactionId), toBase58String(cm), cS, dM.caller) | |
492 | 492 | let cG = de._1 | |
493 | 493 | let cH = de._2 | |
494 | 494 | let cu = parseIntValue(de._9) | |
495 | 495 | let cI = de._10 | |
496 | 496 | if (if (aI()) | |
497 | 497 | then true | |
498 | 498 | else (cu == q)) | |
499 | 499 | then throw(("Admin blocked: " + toString(cu))) | |
500 | 500 | else $Tuple5(cG, cH, cS, cm, cI) | |
501 | 501 | } | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | func dO (dP,aa,dQ,dR,bG,cP,cQ,cR,cS,cT) = { | |
505 | 505 | let de = cJ(aa, bG, value(dQ).amount, value(dQ).assetId, value(dR).amount, value(dR).assetId, dP, (aa == ""), cP, cQ, cR, cS, cT) | |
506 | 506 | let cu = parseIntValue(de._8) | |
507 | 507 | if (if (if (aI()) | |
508 | 508 | then true | |
509 | 509 | else (cu == o)) | |
510 | 510 | then true | |
511 | 511 | else (cu == q)) | |
512 | 512 | then throw(("Blocked:" + toString(cu))) | |
513 | 513 | else de | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | func dS (dT) = { | |
518 | 518 | let dU = g | |
519 | 519 | let dV = dT[0] | |
520 | 520 | let dW = dT[1] | |
521 | 521 | let dX = parseBigIntValue(j) | |
522 | 522 | let dY = (parseBigIntValue(aH) * dX) | |
523 | 523 | let dZ = (dV + dW) | |
524 | 524 | if ((dZ == e)) | |
525 | 525 | then e | |
526 | 526 | else { | |
527 | 527 | let ea = (dY * dU) | |
528 | 528 | let eb = (((dV * dW) * dU) * dU) | |
529 | 529 | let ec = ((ea * dZ) / dX) | |
530 | 530 | let ed = (ea - dX) | |
531 | 531 | let ee = (dU + f) | |
532 | 532 | func ef (eg,eh) = { | |
533 | 533 | let ei = eg | |
534 | 534 | let ej = ei._1 | |
535 | 535 | let ek = ei._2 | |
536 | 536 | if ((ek != unit)) | |
537 | 537 | then eg | |
538 | 538 | else { | |
539 | 539 | let el = (((ej * ej) * ej) / eb) | |
540 | 540 | let em = (((ec + (el * dU)) * ej) / (((ed * ej) / dX) + (ee * el))) | |
541 | 541 | let en = Q((em - value(ej))) | |
542 | 542 | if ((f >= en)) | |
543 | 543 | then $Tuple2(em, eh) | |
544 | 544 | else $Tuple2(em, unit) | |
545 | 545 | } | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 | let eo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
549 | 549 | let ep = { | |
550 | 550 | let eq = eo | |
551 | 551 | let er = size(eq) | |
552 | 552 | let es = $Tuple2(dZ, unit) | |
553 | 553 | func et (eu,ev) = if ((ev >= er)) | |
554 | 554 | then eu | |
555 | 555 | else ef(eu, eq[ev]) | |
556 | 556 | ||
557 | 557 | func ew (eu,ev) = if ((ev >= er)) | |
558 | 558 | then eu | |
559 | 559 | else throw("List size exceeds 15") | |
560 | 560 | ||
561 | 561 | ew(et(et(et(et(et(et(et(et(et(et(et(et(et(et(et(es, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
562 | 562 | } | |
563 | 563 | let ej = ep._1 | |
564 | 564 | let ek = ep._2 | |
565 | 565 | if ((ek != unit)) | |
566 | 566 | then ej | |
567 | 567 | else throw(("D calculation error, D = " + toString(ej))) | |
568 | 568 | } | |
569 | 569 | } | |
570 | 570 | ||
571 | 571 | ||
572 | 572 | func ex (dT,dM,ey) = { | |
573 | 573 | let dU = g | |
574 | 574 | let ez = dT[if ((dM == 0)) | |
575 | 575 | then 1 | |
576 | 576 | else 0] | |
577 | 577 | let dX = parseBigIntValue(j) | |
578 | 578 | let dY = (parseBigIntValue(aH) * dX) | |
579 | 579 | let dZ = ez | |
580 | 580 | let ea = (dY * dU) | |
581 | 581 | let eA = (((((ey * ey) / (ez * dU)) * ey) * dX) / (ea * dU)) | |
582 | 582 | let eB = ((dZ + ((ey * dX) / ea)) - ey) | |
583 | 583 | func ef (eg,eh) = { | |
584 | 584 | let eC = eg | |
585 | 585 | let eD = eC._1 | |
586 | 586 | let ek = eC._2 | |
587 | 587 | if ((ek != unit)) | |
588 | 588 | then eg | |
589 | 589 | else { | |
590 | 590 | let eE = (((eD * eD) + eA) / ((g * eD) + eB)) | |
591 | 591 | let eF = Q((eE - value(eD))) | |
592 | 592 | if ((f >= eF)) | |
593 | 593 | then $Tuple2(eE, eh) | |
594 | 594 | else $Tuple2(eE, unit) | |
595 | 595 | } | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | let eo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
599 | 599 | let eG = { | |
600 | 600 | let eq = eo | |
601 | 601 | let er = size(eq) | |
602 | 602 | let es = $Tuple2(ey, unit) | |
603 | 603 | func et (eu,ev) = if ((ev >= er)) | |
604 | 604 | then eu | |
605 | 605 | else ef(eu, eq[ev]) | |
606 | 606 | ||
607 | 607 | func ew (eu,ev) = if ((ev >= er)) | |
608 | 608 | then eu | |
609 | 609 | else throw("List size exceeds 15") | |
610 | 610 | ||
611 | 611 | ew(et(et(et(et(et(et(et(et(et(et(et(et(et(et(et(es, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
612 | 612 | } | |
613 | 613 | let eD = eG._1 | |
614 | 614 | let ek = eG._2 | |
615 | 615 | if ((ek != unit)) | |
616 | 616 | then eD | |
617 | 617 | else throw(("Y calculation error, Y = " + toString(eD))) | |
618 | 618 | } | |
619 | 619 | ||
620 | 620 | ||
621 | 621 | func eH (eI,cm,co,aa,eJ) = { | |
622 | 622 | let aT = aL() | |
623 | 623 | let cq = aT[u] | |
624 | 624 | let cr = aT[v] | |
625 | 625 | let cp = aT[t] | |
626 | 626 | let cY = parseIntValue(aT[w]) | |
627 | 627 | let cZ = parseIntValue(aT[x]) | |
628 | 628 | let eK = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cp)), "invalid lp asset").quantity) | |
629 | 629 | let eL = if ((eK > e)) | |
630 | 630 | then true | |
631 | 631 | else throw("initial deposit requires all coins") | |
632 | 632 | if ((eL == eL)) | |
633 | 633 | then { | |
634 | 634 | let cw = by(cq) | |
635 | 635 | let cy = by(cr) | |
636 | 636 | let eM = if ((aa == "")) | |
637 | 637 | then $Tuple2(cw, cy) | |
638 | 638 | else if ((cm == cq)) | |
639 | 639 | then if ((eI > cw)) | |
640 | 640 | then throw("invalid payment amount") | |
641 | 641 | else $Tuple2((cw - eI), cy) | |
642 | 642 | else if ((cm == cr)) | |
643 | 643 | then if ((eI > cy)) | |
644 | 644 | then throw("invalid payment amount") | |
645 | 645 | else $Tuple2(cw, (cy - eI)) | |
646 | 646 | else throw("wrong pmtAssetId") | |
647 | 647 | let eN = eM._1 | |
648 | 648 | let eO = eM._2 | |
649 | 649 | let eP = if ((cm == cq)) | |
650 | 650 | then $Tuple2(eI, 0) | |
651 | 651 | else if ((cm == cr)) | |
652 | 652 | then $Tuple2(0, eI) | |
653 | 653 | else throw("invalid payment") | |
654 | 654 | let eQ = eP._1 | |
655 | 655 | let eR = eP._2 | |
656 | 656 | let eS = if (eJ) | |
657 | 657 | then $Tuple3(cg(eQ, aE)._1, cg(eR, aE)._1, cg(eI, aE)._2) | |
658 | 658 | else $Tuple3(eQ, eR, 0) | |
659 | 659 | let eT = eS._1 | |
660 | 660 | let eU = eS._2 | |
661 | 661 | let cj = eS._3 | |
662 | 662 | let eV = (eN + eT) | |
663 | 663 | let eW = (eO + eU) | |
664 | 664 | let bL = dS([toBigInt(eN), toBigInt(eO)]) | |
665 | 665 | let bK = dS([toBigInt(eV), toBigInt(eW)]) | |
666 | 666 | let eX = if ((bK > bL)) | |
667 | 667 | then true | |
668 | 668 | else throw() | |
669 | 669 | if ((eX == eX)) | |
670 | 670 | then { | |
671 | 671 | let eY = fraction(eK, (bK - bL), bL) | |
672 | 672 | let cB = I(bA(F(eW, cZ), F(eV, cY)), a) | |
673 | 673 | let dx = [IntegerEntry(U(), cB), IntegerEntry(V(height, lastBlock.timestamp), cB), StringEntry(Y(co, aa), bj(eQ, eR, toInt(eY), cB, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
674 | 674 | let eZ = fraction(eO, a, eN) | |
675 | 675 | let fa = fraction(eI, a, (eZ + a)) | |
676 | 676 | let fb = (eI - fa) | |
677 | 677 | let fc = fraction(eK, toBigInt(fb), toBigInt(eO)) | |
678 | 678 | let fd = toInt(fraction((eY - fc), b, fc)) | |
679 | 679 | $Tuple4(toInt(eY), dx, cj, fd) | |
680 | 680 | } | |
681 | 681 | else throw("Strict value is not equal to itself.") | |
682 | 682 | } | |
683 | 683 | else throw("Strict value is not equal to itself.") | |
684 | 684 | } | |
685 | 685 | ||
686 | 686 | ||
687 | 687 | func fe (ff,fg,fh,dP,fi,fj) = { | |
688 | 688 | let aT = aL() | |
689 | 689 | let cp = aT[t] | |
690 | 690 | let cq = aT[u] | |
691 | 691 | let cr = aT[v] | |
692 | 692 | let fk = parseIntValue(aT[w]) | |
693 | 693 | let fl = parseIntValue(aT[x]) | |
694 | 694 | let fm = aT[s] | |
695 | 695 | let co = if ((dP == bi)) | |
696 | 696 | then fi | |
697 | 697 | else dP | |
698 | 698 | let dN = value(fh[0]) | |
699 | 699 | let cm = value(dN.assetId) | |
700 | 700 | let cS = dN.amount | |
701 | 701 | let cl = toBase58String(fj) | |
702 | 702 | if ((cp != toBase58String(cm))) | |
703 | 703 | then throw("Wrong LP") | |
704 | 704 | else { | |
705 | 705 | let cw = by(cq) | |
706 | 706 | let cy = by(cr) | |
707 | 707 | let fn = { | |
708 | 708 | let aF = invoke(this, "getOneTknV2READONLY", [ff, cS], nil) | |
709 | 709 | if ($isInstanceOf(aF, "(Int, Int)")) | |
710 | 710 | then aF | |
711 | 711 | else throw(($getType(aF) + " couldn't be cast to (Int, Int)")) | |
712 | 712 | } | |
713 | 713 | if ((fn == fn)) | |
714 | 714 | then { | |
715 | 715 | let cj = fn._2 | |
716 | 716 | let fo = fn._1 | |
717 | 717 | let fp = if (if ((fg > 0)) | |
718 | 718 | then (fg > fo) | |
719 | 719 | else false) | |
720 | 720 | then aB(makeString(["amount to receive is less than ", toString(fg)], "")) | |
721 | 721 | else fo | |
722 | 722 | let fq = if ((ff == cq)) | |
723 | 723 | then $Tuple4(fp, 0, ((cw - fp) - cj), cy) | |
724 | 724 | else if ((ff == cr)) | |
725 | 725 | then $Tuple4(0, fp, cw, ((cy - fp) - cj)) | |
726 | 726 | else throw("invalid out asset id") | |
727 | 727 | let fr = fq._1 | |
728 | 728 | let fs = fq._2 | |
729 | 729 | let eV = fq._3 | |
730 | 730 | let eW = fq._4 | |
731 | 731 | let ft = bA(F(eW, fl), F(eV, fk)) | |
732 | 732 | let fu = I(ft, a) | |
733 | 733 | let fv = if ((ff == "WAVES")) | |
734 | 734 | then unit | |
735 | 735 | else fromBase58String(ff) | |
736 | 736 | let fw = if ((cj > 0)) | |
737 | 737 | then [ScriptTransfer(aK, cj, fv)] | |
738 | 738 | else nil | |
739 | 739 | let cI = ([ScriptTransfer(co, fp, fv), StringEntry(ab(toString(co), cl), bu(fr, fs, cS, fu, height, lastBlock.timestamp)), IntegerEntry(U(), fu), IntegerEntry(V(height, lastBlock.timestamp), fu)] ++ fw) | |
740 | 740 | if ((cI == cI)) | |
741 | 741 | then { | |
742 | 742 | let fx = invoke(aD, "burn", [cS], [AttachedPayment(cm, cS)]) | |
743 | 743 | if ((fx == fx)) | |
744 | 744 | then $Tuple2(cI, fp) | |
745 | 745 | else throw("Strict value is not equal to itself.") | |
746 | 746 | } | |
747 | 747 | else throw("Strict value is not equal to itself.") | |
748 | 748 | } | |
749 | 749 | else throw("Strict value is not equal to itself.") | |
750 | 750 | } | |
751 | 751 | } | |
752 | 752 | ||
753 | 753 | ||
754 | 754 | func fy () = { | |
755 | 755 | let av = getString(S()) | |
756 | 756 | if ($isInstanceOf(av, "String")) | |
757 | 757 | then { | |
758 | 758 | let dZ = av | |
759 | 759 | fromBase58String(dZ) | |
760 | 760 | } | |
761 | 761 | else if ($isInstanceOf(av, "Unit")) | |
762 | 762 | then unit | |
763 | 763 | else throw("Match error") | |
764 | 764 | } | |
765 | 765 | ||
766 | 766 | ||
767 | 767 | func fz () = { | |
768 | 768 | let av = getString(T()) | |
769 | 769 | if ($isInstanceOf(av, "String")) | |
770 | 770 | then { | |
771 | 771 | let dZ = av | |
772 | 772 | fromBase58String(dZ) | |
773 | 773 | } | |
774 | 774 | else if ($isInstanceOf(av, "Unit")) | |
775 | 775 | then unit | |
776 | 776 | else throw("Match error") | |
777 | 777 | } | |
778 | 778 | ||
779 | 779 | ||
780 | 780 | let fA = throw("Permission denied") | |
781 | 781 | ||
782 | 782 | func fB (dM) = { | |
783 | 783 | let av = fy() | |
784 | 784 | if ($isInstanceOf(av, "ByteVector")) | |
785 | 785 | then { | |
786 | 786 | let fC = av | |
787 | 787 | (dM.callerPublicKey == fC) | |
788 | 788 | } | |
789 | 789 | else if ($isInstanceOf(av, "Unit")) | |
790 | 790 | then (dM.caller == this) | |
791 | 791 | else throw("Match error") | |
792 | 792 | } | |
793 | 793 | ||
794 | 794 | ||
795 | 795 | func fD (dM) = { | |
796 | 796 | let av = fy() | |
797 | 797 | if ($isInstanceOf(av, "ByteVector")) | |
798 | 798 | then { | |
799 | 799 | let fC = av | |
800 | 800 | if ((dM.callerPublicKey == fC)) | |
801 | 801 | then true | |
802 | 802 | else fA | |
803 | 803 | } | |
804 | 804 | else if ($isInstanceOf(av, "Unit")) | |
805 | 805 | then if ((dM.caller == this)) | |
806 | 806 | then true | |
807 | 807 | else fA | |
808 | 808 | else throw("Match error") | |
809 | 809 | } | |
810 | 810 | ||
811 | 811 | ||
812 | 812 | @Callable(dM) | |
813 | 813 | func constructor (R) = { | |
814 | 814 | let eA = fD(dM) | |
815 | 815 | if ((eA == eA)) | |
816 | 816 | then [StringEntry(R(), R)] | |
817 | 817 | else throw("Strict value is not equal to itself.") | |
818 | 818 | } | |
819 | 819 | ||
820 | 820 | ||
821 | 821 | ||
822 | 822 | @Callable(dM) | |
823 | 823 | func setManager (fE) = { | |
824 | 824 | let eA = fD(dM) | |
825 | 825 | if ((eA == eA)) | |
826 | 826 | then { | |
827 | 827 | let fF = fromBase58String(fE) | |
828 | 828 | if ((fF == fF)) | |
829 | 829 | then [StringEntry(T(), fE)] | |
830 | 830 | else throw("Strict value is not equal to itself.") | |
831 | 831 | } | |
832 | 832 | else throw("Strict value is not equal to itself.") | |
833 | 833 | } | |
834 | 834 | ||
835 | 835 | ||
836 | 836 | ||
837 | 837 | @Callable(dM) | |
838 | 838 | func confirmManager () = { | |
839 | 839 | let cf = fz() | |
840 | 840 | let fG = if (isDefined(cf)) | |
841 | 841 | then true | |
842 | 842 | else throw("No pending manager") | |
843 | 843 | if ((fG == fG)) | |
844 | 844 | then { | |
845 | 845 | let fH = if ((dM.callerPublicKey == value(cf))) | |
846 | 846 | then true | |
847 | 847 | else throw("You are not pending manager") | |
848 | 848 | if ((fH == fH)) | |
849 | 849 | then [StringEntry(S(), toBase58String(value(cf))), DeleteEntry(T())] | |
850 | 850 | else throw("Strict value is not equal to itself.") | |
851 | 851 | } | |
852 | 852 | else throw("Strict value is not equal to itself.") | |
853 | 853 | } | |
854 | 854 | ||
855 | 855 | ||
856 | 856 | ||
857 | 857 | @Callable(dM) | |
858 | 858 | func put (fI,fJ) = { | |
859 | 859 | let fK = bd() | |
860 | 860 | let fL = valueOrErrorMessage(addressFromString(fK[A]), "Wr st addr") | |
861 | 861 | let fM = valueOrErrorMessage(addressFromString(fK[C]), "Wr sl addr") | |
862 | 862 | if ((0 > fI)) | |
863 | 863 | then throw("Wrong slippage") | |
864 | 864 | else if ((size(dM.payments) != 2)) | |
865 | 865 | then throw("2 pmnts expd") | |
866 | 866 | else { | |
867 | 867 | let fN = dO(toString(dM.caller), toBase58String(dM.transactionId), AttachedPayment(value(dM.payments[0]).assetId, value(dM.payments[0]).amount), dM.payments[1], fI, true, false, true, 0, "") | |
868 | 868 | let dr = fN._2 | |
869 | 869 | let fO = fN._7 | |
870 | 870 | let cI = fN._9 | |
871 | 871 | let ds = fN._10 | |
872 | 872 | let dt = fN._11 | |
873 | 873 | let cq = fN._12 | |
874 | 874 | let cr = fN._13 | |
875 | 875 | let de = invoke(aD, "emit", [dr], nil) | |
876 | 876 | if ((de == de)) | |
877 | 877 | then { | |
878 | 878 | let fP = { | |
879 | 879 | let av = de | |
880 | 880 | if ($isInstanceOf(av, "Address")) | |
881 | 881 | then { | |
882 | 882 | let fQ = av | |
883 | 883 | invoke(fQ, "emit", [dr], nil) | |
884 | 884 | } | |
885 | 885 | else unit | |
886 | 886 | } | |
887 | 887 | if ((fP == fP)) | |
888 | 888 | then { | |
889 | 889 | let fR = if ((ds > 0)) | |
890 | 890 | then invoke(fM, "put", nil, [AttachedPayment(cq, ds)]) | |
891 | 891 | else nil | |
892 | 892 | if ((fR == fR)) | |
893 | 893 | then { | |
894 | 894 | let fS = if ((dt > 0)) | |
895 | 895 | then invoke(fM, "put", nil, [AttachedPayment(cr, dt)]) | |
896 | 896 | else nil | |
897 | 897 | if ((fS == fS)) | |
898 | 898 | then { | |
899 | 899 | let fT = if (fJ) | |
900 | 900 | then { | |
901 | 901 | let fU = invoke(fL, "stake", nil, [AttachedPayment(fO, dr)]) | |
902 | 902 | if ((fU == fU)) | |
903 | 903 | then nil | |
904 | 904 | else throw("Strict value is not equal to itself.") | |
905 | 905 | } | |
906 | 906 | else [ScriptTransfer(dM.caller, dr, fO)] | |
907 | 907 | (cI ++ fT) | |
908 | 908 | } | |
909 | 909 | else throw("Strict value is not equal to itself.") | |
910 | 910 | } | |
911 | 911 | else throw("Strict value is not equal to itself.") | |
912 | 912 | } | |
913 | 913 | else throw("Strict value is not equal to itself.") | |
914 | 914 | } | |
915 | 915 | else throw("Strict value is not equal to itself.") | |
916 | 916 | } | |
917 | 917 | } | |
918 | 918 | ||
919 | 919 | ||
920 | 920 | ||
921 | 921 | @Callable(dM) | |
922 | 922 | func putOneTknV2 (fg,fJ) = { | |
923 | 923 | let fV = { | |
924 | 924 | let aF = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
925 | 925 | if ($isInstanceOf(aF, "Boolean")) | |
926 | 926 | then aF | |
927 | 927 | else throw(($getType(aF) + " couldn't be cast to Boolean")) | |
928 | 928 | } | |
929 | 929 | let fW = if (if (if (aI()) | |
930 | 930 | then true | |
931 | 931 | else (aX == o)) | |
932 | 932 | then true | |
933 | 933 | else (aX == q)) | |
934 | 934 | then true | |
935 | 935 | else fV | |
936 | 936 | let fX = [if (if (!(fW)) | |
937 | 937 | then true | |
938 | 938 | else fB(dM)) | |
939 | 939 | then true | |
940 | 940 | else aB("put operation is blocked by admin"), if ((size(dM.payments) == 1)) | |
941 | 941 | then true | |
942 | 942 | else aB("exactly 1 payment are expected")] | |
943 | 943 | if ((fX == fX)) | |
944 | 944 | then { | |
945 | 945 | let aT = aL() | |
946 | 946 | let cq = aT[u] | |
947 | 947 | let cr = aT[v] | |
948 | 948 | let cp = fromBase58String(aT[t]) | |
949 | 949 | let fk = parseIntValue(aT[w]) | |
950 | 950 | let fl = parseIntValue(aT[x]) | |
951 | 951 | let co = if ((dM.caller == this)) | |
952 | 952 | then dM.originCaller | |
953 | 953 | else dM.caller | |
954 | 954 | let dN = value(dM.payments[0]) | |
955 | 955 | let cm = toBase58String(value(dN.assetId)) | |
956 | 956 | let cS = dN.amount | |
957 | 957 | let fY = eH(cS, cm, toString(co), toBase58String(dM.transactionId), true) | |
958 | 958 | if ((fY == fY)) | |
959 | 959 | then { | |
960 | 960 | let cj = fY._3 | |
961 | 961 | let cI = fY._2 | |
962 | 962 | let fZ = fY._1 | |
963 | 963 | let dr = if (if ((fg > 0)) | |
964 | 964 | then (fg > fZ) | |
965 | 965 | else false) | |
966 | 966 | then aB(makeString(["amount to receive is less than ", toString(fg)], "")) | |
967 | 967 | else fZ | |
968 | 968 | let fN = invoke(aD, "emit", [dr], nil) | |
969 | 969 | if ((fN == fN)) | |
970 | 970 | then { | |
971 | 971 | let fP = { | |
972 | 972 | let av = fN | |
973 | 973 | if ($isInstanceOf(av, "Address")) | |
974 | 974 | then { | |
975 | 975 | let fQ = av | |
976 | 976 | invoke(fQ, "emit", [dr], nil) | |
977 | 977 | } | |
978 | 978 | else unit | |
979 | 979 | } | |
980 | 980 | if ((fP == fP)) | |
981 | 981 | then { | |
982 | 982 | let fT = if (fJ) | |
983 | 983 | then { | |
984 | 984 | let fU = invoke(bf, "stake", nil, [AttachedPayment(cp, dr)]) | |
985 | 985 | if ((fU == fU)) | |
986 | 986 | then nil | |
987 | 987 | else throw("Strict value is not equal to itself.") | |
988 | 988 | } | |
989 | 989 | else [ScriptTransfer(dM.caller, dr, cp)] | |
990 | 990 | let fw = if ((cj > 0)) | |
991 | 991 | then [ScriptTransfer(aK, cj, fromBase58String(cm))] | |
992 | 992 | else nil | |
993 | 993 | $Tuple2(((cI ++ fT) ++ fw), dr) | |
994 | 994 | } | |
995 | 995 | else throw("Strict value is not equal to itself.") | |
996 | 996 | } | |
997 | 997 | else throw("Strict value is not equal to itself.") | |
998 | 998 | } | |
999 | 999 | else throw("Strict value is not equal to itself.") | |
1000 | 1000 | } | |
1001 | 1001 | else throw("Strict value is not equal to itself.") | |
1002 | 1002 | } | |
1003 | 1003 | ||
1004 | 1004 | ||
1005 | 1005 | ||
1006 | 1006 | @Callable(dM) | |
1007 | 1007 | func putForFree (ga) = if ((0 > ga)) | |
1008 | 1008 | then throw("Wrong slpg") | |
1009 | 1009 | else if ((size(dM.payments) != 2)) | |
1010 | 1010 | then throw("2 pmnts expd") | |
1011 | 1011 | else { | |
1012 | 1012 | let gb = dO(toString(dM.caller), toBase58String(dM.transactionId), AttachedPayment(value(dM.payments[0]).assetId, value(dM.payments[0]).amount), dM.payments[1], ga, false, false, true, 0, "") | |
1013 | 1013 | gb._9 | |
1014 | 1014 | } | |
1015 | 1015 | ||
1016 | 1016 | ||
1017 | 1017 | ||
1018 | 1018 | @Callable(dM) | |
1019 | 1019 | func get () = { | |
1020 | 1020 | let de = dL(dM) | |
1021 | 1021 | let gc = de._1 | |
1022 | 1022 | let cH = de._2 | |
1023 | 1023 | let cS = de._3 | |
1024 | 1024 | let cm = de._4 | |
1025 | 1025 | let cI = de._5 | |
1026 | 1026 | let eB = invoke(aD, "burn", [cS], [AttachedPayment(cm, cS)]) | |
1027 | 1027 | if ((eB == eB)) | |
1028 | 1028 | then cI | |
1029 | 1029 | else throw("Strict value is not equal to itself.") | |
1030 | 1030 | } | |
1031 | 1031 | ||
1032 | 1032 | ||
1033 | 1033 | ||
1034 | 1034 | @Callable(dM) | |
1035 | 1035 | func getOneTknV2 (ff,fg) = { | |
1036 | 1036 | let fV = { | |
1037 | 1037 | let aF = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1038 | 1038 | if ($isInstanceOf(aF, "Boolean")) | |
1039 | 1039 | then aF | |
1040 | 1040 | else throw(($getType(aF) + " couldn't be cast to Boolean")) | |
1041 | 1041 | } | |
1042 | 1042 | let gd = if (if (aI()) | |
1043 | 1043 | then true | |
1044 | 1044 | else (aX == q)) | |
1045 | 1045 | then true | |
1046 | 1046 | else fV | |
1047 | 1047 | let fX = [if (if (!(gd)) | |
1048 | 1048 | then true | |
1049 | 1049 | else fB(dM)) | |
1050 | 1050 | then true | |
1051 | 1051 | else aB("get operation is blocked by admin"), if ((size(dM.payments) == 1)) | |
1052 | 1052 | then true | |
1053 | 1053 | else aB("exactly 1 payment are expected")] | |
1054 | 1054 | if ((fX == fX)) | |
1055 | 1055 | then { | |
1056 | 1056 | let ge = fe(ff, fg, dM.payments, dM.caller, dM.originCaller, dM.transactionId) | |
1057 | 1057 | let cI = ge._1 | |
1058 | 1058 | let fp = ge._2 | |
1059 | 1059 | $Tuple2(cI, fp) | |
1060 | 1060 | } | |
1061 | 1061 | else throw("Strict value is not equal to itself.") | |
1062 | 1062 | } | |
1063 | 1063 | ||
1064 | 1064 | ||
1065 | 1065 | ||
1066 | 1066 | @Callable(dM) | |
1067 | 1067 | func getOneTknV2READONLY (ff,gf) = { | |
1068 | 1068 | let aT = aL() | |
1069 | 1069 | let cq = aT[u] | |
1070 | 1070 | let cr = aT[v] | |
1071 | 1071 | let cp = aT[t] | |
1072 | 1072 | let dT = [toBigInt(by(cq)), toBigInt(by(cr))] | |
1073 | 1073 | let gg = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cp)), "invalid lp asset").quantity) | |
1074 | 1074 | let bL = dS(dT) | |
1075 | 1075 | let bK = (bL - fraction(toBigInt(gf), bL, gg)) | |
1076 | 1076 | let gh = if ((ff == cq)) | |
1077 | 1077 | then 0 | |
1078 | 1078 | else if ((ff == cr)) | |
1079 | 1079 | then 1 | |
1080 | 1080 | else throw("invalid out asset id") | |
1081 | 1081 | let gi = ex(dT, gh, bK) | |
1082 | 1082 | let gj = (dT[gh] - gi) | |
1083 | 1083 | let gk = max([0, toInt((gj - f))]) | |
1084 | 1084 | let gl = cg(gk, aG) | |
1085 | 1085 | let fo = gl._1 | |
1086 | 1086 | let cj = gl._2 | |
1087 | 1087 | $Tuple2(nil, $Tuple2(fo, cj)) | |
1088 | 1088 | } | |
1089 | 1089 | ||
1090 | 1090 | ||
1091 | 1091 | ||
1092 | 1092 | @Callable(dM) | |
1093 | 1093 | func getOneTknV2WithBonusREADONLY (ff,gf) = { | |
1094 | 1094 | let aT = aL() | |
1095 | 1095 | let cq = aT[u] | |
1096 | 1096 | let cr = aT[v] | |
1097 | 1097 | let cp = aT[t] | |
1098 | 1098 | let cw = by(cq) | |
1099 | 1099 | let cy = by(cr) | |
1100 | 1100 | let gm = { | |
1101 | 1101 | let aF = invoke(this, "getOneTknV2READONLY", [ff, gf], nil) | |
1102 | 1102 | if ($isInstanceOf(aF, "(Int, Int)")) | |
1103 | 1103 | then aF | |
1104 | 1104 | else throw(($getType(aF) + " couldn't be cast to (Int, Int)")) | |
1105 | 1105 | } | |
1106 | 1106 | let fo = gm._1 | |
1107 | 1107 | let cj = gm._2 | |
1108 | 1108 | let de = ck("", cp, gf, this) | |
1109 | 1109 | let cG = de._1 | |
1110 | 1110 | let cH = de._2 | |
1111 | 1111 | let gn = (cG + cH) | |
1112 | 1112 | let fd = if ((gn == 0)) | |
1113 | 1113 | then if ((fo == 0)) | |
1114 | 1114 | then 0 | |
1115 | 1115 | else throw("bonus calculation error") | |
1116 | 1116 | else fraction((fo - gn), a, gn) | |
1117 | 1117 | $Tuple2(nil, $Tuple3(fo, cj, fd)) | |
1118 | 1118 | } | |
1119 | 1119 | ||
1120 | 1120 | ||
1121 | 1121 | ||
1122 | 1122 | @Callable(dM) | |
1123 | 1123 | func getNoLess (go,gp) = { | |
1124 | 1124 | let de = dL(dM) | |
1125 | 1125 | let cG = de._1 | |
1126 | 1126 | let cH = de._2 | |
1127 | 1127 | let cS = de._3 | |
1128 | 1128 | let cm = de._4 | |
1129 | 1129 | let cI = de._5 | |
1130 | 1130 | if ((go > cG)) | |
1131 | 1131 | then throw(((("Failed: " + toString(cG)) + " < ") + toString(go))) | |
1132 | 1132 | else if ((gp > cH)) | |
1133 | 1133 | then throw(((("Failed: " + toString(cH)) + " < ") + toString(gp))) | |
1134 | 1134 | else { | |
1135 | 1135 | let gq = invoke(aD, "burn", [cS], [AttachedPayment(cm, cS)]) | |
1136 | 1136 | if ((gq == gq)) | |
1137 | 1137 | then cI | |
1138 | 1138 | else throw("Strict value is not equal to itself.") | |
1139 | 1139 | } | |
1140 | 1140 | } | |
1141 | 1141 | ||
1142 | 1142 | ||
1143 | 1143 | ||
1144 | 1144 | @Callable(dM) | |
1145 | 1145 | func unstakeAndGet (ch) = { | |
1146 | 1146 | let gr = if ((size(dM.payments) != 0)) | |
1147 | 1147 | then throw("No pmnts expd") | |
1148 | 1148 | else true | |
1149 | 1149 | if ((gr == gr)) | |
1150 | 1150 | then { | |
1151 | 1151 | let bX = aL() | |
1152 | 1152 | let gs = bd() | |
1153 | 1153 | let fO = fromBase58String(bX[t]) | |
1154 | 1154 | let gt = valueOrErrorMessage(addressFromString(gs[A]), "Wr st addr") | |
1155 | 1155 | let gu = invoke(gt, "unstake", [toBase58String(fO), ch], nil) | |
1156 | 1156 | if ((gu == gu)) | |
1157 | 1157 | then { | |
1158 | 1158 | let de = ck(toBase58String(dM.transactionId), toBase58String(fO), ch, dM.caller) | |
1159 | 1159 | let cu = parseIntValue(de._9) | |
1160 | 1160 | let cI = de._10 | |
1161 | 1161 | let gv = if (if (aI()) | |
1162 | 1162 | then true | |
1163 | 1163 | else (cu == q)) | |
1164 | 1164 | then throw(("Blocked: " + toString(cu))) | |
1165 | 1165 | else true | |
1166 | 1166 | if ((gv == gv)) | |
1167 | 1167 | then { | |
1168 | 1168 | let gw = invoke(aD, "burn", [ch], [AttachedPayment(fO, ch)]) | |
1169 | 1169 | if ((gw == gw)) | |
1170 | 1170 | then cI | |
1171 | 1171 | else throw("Strict value is not equal to itself.") | |
1172 | 1172 | } | |
1173 | 1173 | else throw("Strict value is not equal to itself.") | |
1174 | 1174 | } | |
1175 | 1175 | else throw("Strict value is not equal to itself.") | |
1176 | 1176 | } | |
1177 | 1177 | else throw("Strict value is not equal to itself.") | |
1178 | 1178 | } | |
1179 | 1179 | ||
1180 | 1180 | ||
1181 | 1181 | ||
1182 | 1182 | @Callable(dM) | |
1183 | 1183 | func unstakeAndGetNoLess (gx,gy,gp) = { | |
1184 | 1184 | let gd = if (aI()) | |
1185 | 1185 | then true | |
1186 | 1186 | else (aX == q) | |
1187 | 1187 | let fX = [if (!(gd)) | |
1188 | 1188 | then true | |
1189 | 1189 | else throw("get operation is blocked by admin"), if ((size(dM.payments) == 0)) | |
1190 | 1190 | then true | |
1191 | 1191 | else throw("no payments are expected")] | |
1192 | 1192 | if ((fX == fX)) | |
1193 | 1193 | then { | |
1194 | 1194 | let gu = invoke(bf, "unstake", [toBase58String(aY), gx], nil) | |
1195 | 1195 | if ((gu == gu)) | |
1196 | 1196 | then { | |
1197 | 1197 | let gz = ck(toBase58String(dM.transactionId), toBase58String(aY), gx, dM.caller) | |
1198 | 1198 | let cG = gz._1 | |
1199 | 1199 | let cH = gz._2 | |
1200 | 1200 | let cI = gz._10 | |
1201 | 1201 | let gA = [if ((cG >= gy)) | |
1202 | 1202 | then true | |
1203 | 1203 | else throw(makeString(["amount asset amount to receive is less than ", toString(gy)], "")), if ((cH >= gp)) | |
1204 | 1204 | then true | |
1205 | 1205 | else throw(makeString(["price asset amount to receive is less than ", toString(gp)], ""))] | |
1206 | 1206 | if ((gA == gA)) | |
1207 | 1207 | then { | |
1208 | 1208 | let gq = invoke(aD, "burn", [gx], [AttachedPayment(aY, gx)]) | |
1209 | 1209 | if ((gq == gq)) | |
1210 | 1210 | then cI | |
1211 | 1211 | else throw("Strict value is not equal to itself.") | |
1212 | 1212 | } | |
1213 | 1213 | else throw("Strict value is not equal to itself.") | |
1214 | 1214 | } | |
1215 | 1215 | else throw("Strict value is not equal to itself.") | |
1216 | 1216 | } | |
1217 | 1217 | else throw("Strict value is not equal to itself.") | |
1218 | 1218 | } | |
1219 | 1219 | ||
1220 | 1220 | ||
1221 | 1221 | ||
1222 | 1222 | @Callable(dM) | |
1223 | 1223 | func unstakeAndGetOneTknV2 (gx,ff,fg) = { | |
1224 | 1224 | let fV = { | |
1225 | 1225 | let aF = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1226 | 1226 | if ($isInstanceOf(aF, "Boolean")) | |
1227 | 1227 | then aF | |
1228 | 1228 | else throw(($getType(aF) + " couldn't be cast to Boolean")) | |
1229 | 1229 | } | |
1230 | 1230 | let gd = if (if (aI()) | |
1231 | 1231 | then true | |
1232 | 1232 | else (aX == q)) | |
1233 | 1233 | then true | |
1234 | 1234 | else fV | |
1235 | 1235 | let fX = [if (if (!(gd)) | |
1236 | 1236 | then true | |
1237 | 1237 | else fB(dM)) | |
1238 | 1238 | then true | |
1239 | 1239 | else aB("get operation is blocked by admin"), if ((size(dM.payments) == 0)) | |
1240 | 1240 | then true | |
1241 | 1241 | else aB("no payments are expected")] | |
1242 | 1242 | if ((fX == fX)) | |
1243 | 1243 | then { | |
1244 | 1244 | let bX = aL() | |
1245 | 1245 | let gs = bd() | |
1246 | 1246 | let fO = fromBase58String(bX[t]) | |
1247 | 1247 | let gt = valueOrErrorMessage(addressFromString(gs[A]), "Wr st addr") | |
1248 | 1248 | let co = dM.caller | |
1249 | 1249 | let gB = this | |
1250 | - | let gu = invoke(gt, "unstakeINTERNAL", [toBase58String(fO), gx, co, gB], nil) | |
1250 | + | let gu = invoke(gt, "unstakeINTERNAL", [toBase58String(fO), gx, co.bytes, gB.bytes], nil) | |
1251 | 1251 | if ((gu == gu)) | |
1252 | 1252 | then { | |
1253 | 1253 | let gC = fe(ff, fg, [AttachedPayment(fO, gx)], dM.caller, dM.originCaller, dM.transactionId) | |
1254 | 1254 | let cI = gC._1 | |
1255 | 1255 | let fp = gC._2 | |
1256 | 1256 | $Tuple2(cI, fp) | |
1257 | 1257 | } | |
1258 | 1258 | else throw("Strict value is not equal to itself.") | |
1259 | 1259 | } | |
1260 | 1260 | else throw("Strict value is not equal to itself.") | |
1261 | 1261 | } | |
1262 | 1262 | ||
1263 | 1263 | ||
1264 | 1264 | ||
1265 | 1265 | @Callable(dM) | |
1266 | 1266 | func putOneTknV2WithBonusREADONLY (gD,gE) = { | |
1267 | 1267 | let aT = aL() | |
1268 | 1268 | let cq = aT[u] | |
1269 | 1269 | let cr = aT[v] | |
1270 | 1270 | let cp = aT[t] | |
1271 | 1271 | let gF = eH(gD, gE, "", "", true) | |
1272 | 1272 | let eY = gF._1 | |
1273 | 1273 | let cI = gF._2 | |
1274 | 1274 | let cj = gF._3 | |
1275 | 1275 | let fd = gF._4 | |
1276 | 1276 | $Tuple2(nil, $Tuple3(eY, cj, fd)) | |
1277 | 1277 | } | |
1278 | 1278 | ||
1279 | 1279 | ||
1280 | 1280 | ||
1281 | 1281 | @Callable(dM) | |
1282 | 1282 | func putOneTknV2WithoutTakeFeeREADONLY (gD,gE) = { | |
1283 | 1283 | let aT = aL() | |
1284 | 1284 | let cq = aT[u] | |
1285 | 1285 | let cr = aT[v] | |
1286 | 1286 | let cp = aT[t] | |
1287 | 1287 | let gG = eH(gD, gE, "", "", false) | |
1288 | 1288 | let eY = gG._1 | |
1289 | 1289 | let cI = gG._2 | |
1290 | 1290 | let cj = gG._3 | |
1291 | 1291 | let fd = gG._4 | |
1292 | 1292 | $Tuple2(nil, $Tuple3(eY, cj, fd)) | |
1293 | 1293 | } | |
1294 | 1294 | ||
1295 | 1295 | ||
1296 | 1296 | ||
1297 | 1297 | @Callable(dM) | |
1298 | 1298 | func activate (gH,gI) = if ((toString(dM.caller) != toString(aD))) | |
1299 | 1299 | then throw("denied") | |
1300 | 1300 | else $Tuple2([StringEntry(ac(), gH), StringEntry(ad(), gI)], "success") | |
1301 | 1301 | ||
1302 | 1302 | ||
1303 | 1303 | ||
1304 | 1304 | @Callable(dM) | |
1305 | 1305 | func setS (gJ,gv) = if ((toString(dM.caller) != ax(this, af()))) | |
1306 | 1306 | then fA | |
1307 | 1307 | else [StringEntry(gJ, gv)] | |
1308 | 1308 | ||
1309 | 1309 | ||
1310 | 1310 | ||
1311 | 1311 | @Callable(dM) | |
1312 | 1312 | func setI (gJ,gv) = if ((toString(dM.caller) != ax(this, af()))) | |
1313 | 1313 | then fA | |
1314 | 1314 | else [IntegerEntry(gJ, gv)] | |
1315 | 1315 | ||
1316 | 1316 | ||
1317 | 1317 | ||
1318 | 1318 | @Callable(dM) | |
1319 | 1319 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aL()) | |
1320 | 1320 | ||
1321 | 1321 | ||
1322 | 1322 | ||
1323 | 1323 | @Callable(dM) | |
1324 | 1324 | func getAccBalanceWrapperREADONLY (bz) = $Tuple2(nil, by(bz)) | |
1325 | 1325 | ||
1326 | 1326 | ||
1327 | 1327 | ||
1328 | 1328 | @Callable(dM) | |
1329 | 1329 | func calcPricesWrapperREADONLY (bR,bS,bW) = { | |
1330 | 1330 | let gK = bV(bR, bS, bW) | |
1331 | 1331 | $Tuple2(nil, [toString(gK[0]), toString(gK[1]), toString(gK[2])]) | |
1332 | 1332 | } | |
1333 | 1333 | ||
1334 | 1334 | ||
1335 | 1335 | ||
1336 | 1336 | @Callable(dM) | |
1337 | 1337 | func fromX18WrapperREADONLY (J,gL) = $Tuple2(nil, I(parseBigIntValue(J), gL)) | |
1338 | 1338 | ||
1339 | 1339 | ||
1340 | 1340 | ||
1341 | 1341 | @Callable(dM) | |
1342 | 1342 | func toX18WrapperREADONLY (G,H) = $Tuple2(nil, toString(F(G, H))) | |
1343 | 1343 | ||
1344 | 1344 | ||
1345 | 1345 | ||
1346 | 1346 | @Callable(dM) | |
1347 | 1347 | func calcPriceBigIntWrapperREADONLY (bB,bC) = $Tuple2(nil, toString(bA(parseBigIntValue(bB), parseBigIntValue(bC)))) | |
1348 | 1348 | ||
1349 | 1349 | ||
1350 | 1350 | ||
1351 | 1351 | @Callable(dM) | |
1352 | 1352 | func estimatePutOperationWrapperREADONLY (cl,bG,cK,cL,cM,cN,gM,cO,cP) = $Tuple2(nil, cJ(cl, bG, cK, cL, cM, cN, gM, cO, cP, true, false, 0, "")) | |
1353 | 1353 | ||
1354 | 1354 | ||
1355 | 1355 | ||
1356 | 1356 | @Callable(dM) | |
1357 | 1357 | func estimateGetOperationWrapperREADONLY (cl,gN,cn,gM) = { | |
1358 | 1358 | let de = ck(cl, gN, cn, addressFromStringValue(gM)) | |
1359 | 1359 | $Tuple2(nil, $Tuple10(de._1, de._2, de._3, de._4, de._5, de._6, de._7, toString(de._8), de._9, de._10)) | |
1360 | 1360 | } | |
1361 | 1361 | ||
1362 | 1362 | ||
1363 | 1363 | @Verifier(gO) | |
1364 | 1364 | func gP () = { | |
1365 | 1365 | let gQ = { | |
1366 | 1366 | let av = fy() | |
1367 | 1367 | if ($isInstanceOf(av, "ByteVector")) | |
1368 | 1368 | then { | |
1369 | 1369 | let fC = av | |
1370 | 1370 | fC | |
1371 | 1371 | } | |
1372 | 1372 | else if ($isInstanceOf(av, "Unit")) | |
1373 | 1373 | then gO.senderPublicKey | |
1374 | 1374 | else throw("Match error") | |
1375 | 1375 | } | |
1376 | 1376 | let av = gO | |
1377 | 1377 | if ($isInstanceOf(av, "Order")) | |
1378 | 1378 | then { | |
1379 | 1379 | let dz = av | |
1380 | 1380 | let gR = aJ() | |
1381 | 1381 | let gS = dy(dz) | |
1382 | 1382 | let gT = sigVerify(dz.bodyBytes, dz.proofs[0], dz.senderPublicKey) | |
1383 | 1383 | let gU = sigVerify(dz.bodyBytes, dz.proofs[1], gR) | |
1384 | 1384 | if (if (if (gS) | |
1385 | 1385 | then gT | |
1386 | 1386 | else false) | |
1387 | 1387 | then gU | |
1388 | 1388 | else false) | |
1389 | 1389 | then true | |
1390 | 1390 | else aq(gS, gT, gU) | |
1391 | 1391 | } | |
1392 | 1392 | else if ($isInstanceOf(av, "SetScriptTransaction")) | |
1393 | 1393 | then { | |
1394 | 1394 | let dZ = av | |
1395 | 1395 | let gV = blake2b256(value(dZ.script)) | |
1396 | 1396 | let gW = fromBase64String(value(getString(aD, ao()))) | |
1397 | 1397 | let gX = scriptHash(this) | |
1398 | 1398 | if (if ((gW == gV)) | |
1399 | 1399 | then (gX != gV) | |
1400 | 1400 | else false) | |
1401 | 1401 | then true | |
1402 | 1402 | else sigVerify(gO.bodyBytes, gO.proofs[0], gQ) | |
1403 | 1403 | } | |
1404 | 1404 | else sigVerify(gO.bodyBytes, gO.proofs[0], gQ) | |
1405 | 1405 | } | |
1406 | 1406 |
github/deemru/w8io/169f3d6 122.80 ms ◑