tx · qEY43BeB3q2L8ET2eMYykUpCz25QG9bMyfPthx72jvD 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.27 22:01 [1853049] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "qEY43BeB3q2L8ET2eMYykUpCz25QG9bMyfPthx72jvD", "fee": 1400000, "feeAssetId": null, "timestamp": 1640631694107, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5jVBnx7EaE5unLGrXvcvsUkQZYzLtX2DxocHvxdLgVkuxefCzbEDDvxWq7uBcECoJq7hZAa4pWmG6RWgqqsj5Ras" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAAQwAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAAAAAAVBbXVsdAIAAAAJMTAwMDAwMDAwAAAAAAVEY29udgIAAAABMQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAKUG9vbFB1dERpcwAAAAAAAAAAAgAAAAAOUG9vbE1hdGNoZXJEaXMAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAA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cgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAABW10Y2hWCQAB9AAAAAMIBQAAAAVvcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABW9yZGVyAAAABnByb29mcwAAAAAAAAAAAQUAAAAHbXRjaFB1YgMDAwUAAAADb3JWBQAAAAVzbmRyVgcFAAAABW10Y2hWBwYJAQAAAA90aHJvd09yZGVyRXJyb3IAAAADBQAAAANvclYFAAAABXNuZHJWBQAAAAVtdGNoVgQAAAAFYWRtaW4JAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwkBAAAADGtleU1hblB1YktleQAAAAAFAAAABUVNUFRZAwkAAAAAAAACBQAAAAVhZG1pbgUAAAAFRU1QVFkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABBQAAAAVhZG1pbufi4ZY=", "chainId": 84, "height": 1853049, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HMuTWWd5aC9c7iaMCLMYCH1EdrenMV2FnTXsjZcYs5yR Next: HHeuM2zhjjZfidLv6CVqg3kfzAaPBmNhia4jUGVJVnAi Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = toBigInt(1) | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "100000000" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "1" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "__" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 1 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 2 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 3 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 4 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 1 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 2 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 3 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 4 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 5 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 6 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 7 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 8 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 9 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 1 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 7 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 10 | |
53 | 53 | ||
54 | - | let z = 10 | |
55 | - | ||
56 | - | func A (B,C) = fraction(toBigInt(B), c, toBigInt(C)) | |
54 | + | func z (A,B) = fraction(toBigInt(A), c, toBigInt(B)) | |
57 | 55 | ||
58 | 56 | ||
59 | - | func | |
57 | + | func C (D,E) = toInt(fraction(D, toBigInt(E), c)) | |
60 | 58 | ||
61 | 59 | ||
62 | - | func | |
60 | + | func F (G,H,I) = fraction(G, H, I) | |
63 | 61 | ||
64 | 62 | ||
65 | - | func | |
66 | - | then -( | |
67 | - | else | |
63 | + | func J (D) = if ((d > D)) | |
64 | + | then -(D) | |
65 | + | else D | |
68 | 66 | ||
69 | 67 | ||
70 | - | func | |
68 | + | func K () = "%s__factoryContract" | |
71 | 69 | ||
72 | 70 | ||
73 | - | func | |
71 | + | func L () = "%s__managerPublicKey" | |
74 | 72 | ||
75 | 73 | ||
76 | - | func | |
74 | + | func M () = "%s%s__price__last" | |
77 | 75 | ||
78 | 76 | ||
79 | - | func | |
77 | + | func N (O,P) = makeString(["%s%s%d%d__price__history", toString(O), toString(P)], h) | |
80 | 78 | ||
81 | 79 | ||
82 | - | func | |
80 | + | func Q (R,S) = ((("%s%s%s__P__" + R) + "__") + S) | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func T (R,S) = ((("%s%s%s__G__" + R) + "__") + S) | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func U () = "%s__amountAsset" | |
89 | 87 | ||
90 | 88 | ||
91 | - | func W () = "%s__priceAsset" | |
89 | + | func V () = "%s__priceAsset" | |
90 | + | ||
91 | + | ||
92 | + | func W () = "%s__amp" | |
92 | 93 | ||
93 | 94 | ||
94 | 95 | func X () = "%s__factoryConfig" | |
112 | 113 | func ah (ai,aj,ak) = throw(((((("Failed: orderValid=" + toString(ai)) + " senderValid=") + toString(aj)) + " matcherValid=") + toString(ak))) | |
113 | 114 | ||
114 | 115 | ||
115 | - | func al ( | |
116 | - | let am = | |
116 | + | func al (D) = { | |
117 | + | let am = D | |
117 | 118 | if ($isInstanceOf(am, "String")) | |
118 | 119 | then { | |
119 | 120 | let an = am | |
129 | 130 | func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
130 | 131 | ||
131 | 132 | ||
132 | - | let as = addressFromStringValue(ao(this, | |
133 | + | let as = addressFromStringValue(ao(this, K())) | |
133 | 134 | ||
134 | - | func at () = valueOrElse(getBoolean(as, ae()), false) | |
135 | + | let at = ao(this, W()) | |
136 | + | ||
137 | + | func au () = valueOrElse(getBoolean(as, ae()), false) | |
135 | 138 | ||
136 | 139 | ||
137 | - | func | |
140 | + | func av () = fromBase58String(ao(as, Y())) | |
138 | 141 | ||
139 | 142 | ||
140 | - | func | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let aa = ar(as, ac( | |
145 | - | split(ao(as, Z(toString(aa), toString( | |
143 | + | func aw () = { | |
144 | + | let ax = ao(this, U()) | |
145 | + | let ay = ao(this, V()) | |
146 | + | let az = ar(as, ac(ay)) | |
147 | + | let aa = ar(as, ac(ax)) | |
148 | + | split(ao(as, Z(toString(aa), toString(az))), h) | |
146 | 149 | } | |
147 | 150 | ||
148 | 151 | ||
149 | - | func | |
152 | + | func aA () = split(ao(as, X()), h) | |
150 | 153 | ||
151 | 154 | ||
152 | - | func | |
155 | + | func aB (aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK), toString(aL)], h) | |
153 | 156 | ||
154 | 157 | ||
155 | - | func | |
158 | + | func aM (aN,aO,aP,aF,aI,aJ) = makeString(["%d%d%d%d%d%d", toString(aN), toString(aO), toString(aP), toString(aF), toString(aI), toString(aJ)], h) | |
156 | 159 | ||
157 | 160 | ||
158 | - | func | |
161 | + | func aQ (aR) = if ((aR == "WAVES")) | |
159 | 162 | then wavesBalance(this).available | |
160 | - | else assetBalance(this, fromBase58String( | |
163 | + | else assetBalance(this, fromBase58String(aR)) | |
161 | 164 | ||
162 | 165 | ||
163 | - | func | |
166 | + | func aS (aT,aU) = fraction(aT, c, aU) | |
164 | 167 | ||
165 | 168 | ||
166 | - | func | |
167 | - | let | |
168 | - | let | |
169 | - | if (!( | |
170 | - | then throw(((("Too big slippage: " + toString( | |
171 | - | else $Tuple2( | |
169 | + | func aV (aW,aX,aY) = { | |
170 | + | let aZ = fraction((aW - aX), b, aX) | |
171 | + | let ba = ((aY - J(aZ)) > d) | |
172 | + | if (!(ba)) | |
173 | + | then throw(((("Too big slippage: " + toString(aZ)) + " vs ") + toString(aY))) | |
174 | + | else $Tuple2(ba, min([aW, aX])) | |
172 | 175 | } | |
173 | 176 | ||
174 | 177 | ||
175 | - | func | |
176 | - | let | |
177 | - | let | |
178 | - | | |
178 | + | func bb (bc,bd,be,bf) = { | |
179 | + | let bg = z(be, bc) | |
180 | + | let bh = z(bf, bd) | |
181 | + | aS(bh, bg) | |
179 | 182 | } | |
180 | 183 | ||
181 | 184 | ||
182 | - | func | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | [ | |
185 | + | func bi (be,bf,bj) = { | |
186 | + | let bk = aw() | |
187 | + | let bl = parseIntValue(bk[s]) | |
188 | + | let bm = parseIntValue(bk[t]) | |
189 | + | let bn = bb(bl, bm, be, bf) | |
190 | + | let aU = z(be, bl) | |
191 | + | let aT = z(bf, bm) | |
192 | + | let bo = z(bj, a) | |
193 | + | let bp = aS(aU, bo) | |
194 | + | let bq = aS(aT, bo) | |
195 | + | [bn, bp, bq] | |
193 | 196 | } | |
194 | 197 | ||
195 | 198 | ||
196 | - | func | |
197 | - | let | |
198 | - | [ | |
199 | + | func br (be,bf,bj) = { | |
200 | + | let bs = bi(be, bf, bj) | |
201 | + | [C(bs[0], a), C(bs[1], a), C(bs[2], a)] | |
199 | 202 | } | |
200 | 203 | ||
201 | 204 | ||
202 | - | func | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
205 | + | func bt (bu,bv,bw,bx) = { | |
206 | + | let bk = aw() | |
207 | + | let by = bk[p] | |
208 | + | let bz = bk[q] | |
209 | + | let bA = bk[r] | |
210 | + | let bB = parseIntValue(bk[s]) | |
211 | + | let bC = parseIntValue(bk[t]) | |
212 | + | let bD = bk[o] | |
213 | + | let bE = valueOrErrorMessage(assetInfo(fromBase58String(by)), "Invalid LP id").quantity | |
214 | + | if ((by != bv)) | |
212 | 215 | then throw("Invalid pmt asset") | |
213 | 216 | else { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
217 | + | let bF = aQ(bz) | |
218 | + | let bG = z(bF, bB) | |
219 | + | let bH = aQ(bA) | |
220 | + | let bI = z(bH, bC) | |
221 | + | let bJ = aS(bI, bG) | |
222 | + | let bK = C(bJ, a) | |
223 | + | let bL = z(bw, a) | |
224 | + | let bM = z(bE, a) | |
225 | + | let bN = fraction(bG, bL, bM) | |
226 | + | let bO = fraction(bI, bL, bM) | |
227 | + | let bP = C(bN, bB) | |
228 | + | let bQ = C(bO, bC) | |
229 | + | let bR = if ((bu == "")) | |
227 | 230 | then nil | |
228 | - | else [ScriptTransfer( | |
231 | + | else [ScriptTransfer(bx, bP, if ((bz == "WAVES")) | |
229 | 232 | then unit | |
230 | - | else fromBase58String( | |
233 | + | else fromBase58String(bz)), ScriptTransfer(bx, bQ, if ((bA == "WAVES")) | |
231 | 234 | then unit | |
232 | - | else fromBase58String( | |
233 | - | $Tuple10( | |
235 | + | else fromBase58String(bA)), StringEntry(T(toString(bx), bu), aM(bP, bQ, bw, bK, height, lastBlock.timestamp)), IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK)] | |
236 | + | $Tuple10(bP, bQ, bz, bA, bF, bH, bE, bJ, bD, bR) | |
234 | 237 | } | |
235 | 238 | } | |
236 | 239 | ||
237 | 240 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | then | |
251 | - | else if (if ( | |
252 | - | then ( | |
241 | + | func bS (bu,aY,bT,bU,bV,bW,bx,bX,bY,bZ,ca,cb) = { | |
242 | + | let bk = aw() | |
243 | + | let by = fromBase58String(bk[p]) | |
244 | + | let cc = bk[q] | |
245 | + | let cd = bk[r] | |
246 | + | let ce = bk[u] | |
247 | + | let cf = bk[v] | |
248 | + | let cg = parseIntValue(bk[s]) | |
249 | + | let ch = parseIntValue(bk[t]) | |
250 | + | let bD = bk[o] | |
251 | + | let ci = valueOrErrorMessage(assetInfo(by), "Wr lp as").quantity | |
252 | + | let bF = if (bX) | |
253 | + | then aQ(cc) | |
254 | + | else if (if (bZ) | |
255 | + | then (cb == cc) | |
253 | 256 | else false) | |
254 | - | then ( | |
255 | - | else if ( | |
256 | - | then | |
257 | - | else ( | |
258 | - | let | |
259 | - | then | |
260 | - | else if (if ( | |
261 | - | then ( | |
257 | + | then (aQ(cc) - ca) | |
258 | + | else if (bZ) | |
259 | + | then aQ(cc) | |
260 | + | else (aQ(cc) - bT) | |
261 | + | let bH = if (bX) | |
262 | + | then aQ(cd) | |
263 | + | else if (if (bZ) | |
264 | + | then (cb == cd) | |
262 | 265 | else false) | |
263 | - | then ( | |
264 | - | else if ( | |
265 | - | then | |
266 | - | else ( | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
266 | + | then (aQ(cd) - ca) | |
267 | + | else if (bZ) | |
268 | + | then aQ(cd) | |
269 | + | else (aQ(cd) - bV) | |
270 | + | let cj = z(bT, cg) | |
271 | + | let ck = z(bV, ch) | |
272 | + | let cl = aS(ck, cj) | |
273 | + | let bG = z(bF, cg) | |
274 | + | let bI = z(bH, ch) | |
275 | + | let cm = if ((ci == 0)) | |
273 | 276 | then { | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | $Tuple5( | |
277 | + | let bJ = d | |
278 | + | let cn = d | |
279 | + | let bo = pow((cj * ck), 0, toBigInt(5), 1, 0, DOWN) | |
280 | + | $Tuple5(C(bo, a), C(cj, cg), C(ck, ch), aS((bI + ck), (bG + cj)), cn) | |
278 | 281 | } | |
279 | 282 | else { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if (if (( | |
284 | - | then ( | |
283 | + | let bJ = aS(bI, bG) | |
284 | + | let co = fraction(J((bJ - cl)), c, bJ) | |
285 | + | let cn = z(aY, a) | |
286 | + | if (if ((bJ != d)) | |
287 | + | then (co > cn) | |
285 | 288 | else false) | |
286 | - | then throw(((("Price slippage " + toString( | |
289 | + | then throw(((("Price slippage " + toString(co)) + " > ") + toString(cn))) | |
287 | 290 | else { | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | then $Tuple2( | |
293 | - | else $Tuple2( | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | $Tuple5( | |
291 | + | let bM = z(ci, a) | |
292 | + | let cp = fraction(cj, bJ, c) | |
293 | + | let cq = fraction(ck, c, bJ) | |
294 | + | let cr = if ((cp > ck)) | |
295 | + | then $Tuple2(cq, ck) | |
296 | + | else $Tuple2(cj, cp) | |
297 | + | let cs = cr._1 | |
298 | + | let ct = cr._2 | |
299 | + | let bo = fraction(bM, ct, bI) | |
300 | + | $Tuple5(C(bo, a), C(cs, cg), C(ct, ch), bJ, cn) | |
298 | 301 | } | |
299 | 302 | } | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ((0 >= | |
303 | + | let cu = cm._1 | |
304 | + | let cv = cm._2 | |
305 | + | let cw = cm._3 | |
306 | + | let bK = C(cm._4, a) | |
307 | + | let cx = C(cm._5, a) | |
308 | + | if ((0 >= cu)) | |
306 | 309 | then throw("LP <= 0") | |
307 | 310 | else { | |
308 | - | let | |
311 | + | let cy = if (!(bY)) | |
309 | 312 | then 0 | |
310 | - | else | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | $Tuple13( | |
313 | + | else cu | |
314 | + | let cz = (bT - cv) | |
315 | + | let cA = (bV - cw) | |
316 | + | let cB = [IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK), StringEntry(Q(bx, bu), aB(cv, cw, cy, bK, aY, cx, height, lastBlock.timestamp, cz, cA))] | |
317 | + | $Tuple13(cu, cy, bK, bF, bH, ci, by, bD, cB, cz, cA, bU, bW) | |
315 | 318 | } | |
316 | 319 | } | |
317 | 320 | ||
318 | 321 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | then | |
330 | - | else | |
331 | - | let | |
332 | - | if (if (if ( | |
322 | + | func cC (cD) = { | |
323 | + | let bk = aw() | |
324 | + | let cE = bk[q] | |
325 | + | let cF = bk[r] | |
326 | + | let bD = parseIntValue(bk[o]) | |
327 | + | let bl = parseIntValue(bk[s]) | |
328 | + | let bm = parseIntValue(bk[t]) | |
329 | + | let cG = aQ(cE) | |
330 | + | let cH = aQ(cF) | |
331 | + | let bJ = if ((cD.orderType == Buy)) | |
332 | + | then bb(bl, bm, (cG + cD.amount), cH) | |
333 | + | else bb(bl, bm, (cG - cD.amount), cH) | |
334 | + | let bK = C(bJ, a) | |
335 | + | if (if (if (au()) | |
333 | 336 | then true | |
334 | - | else ( | |
337 | + | else (bD == l)) | |
335 | 338 | then true | |
336 | - | else ( | |
339 | + | else (bD == m)) | |
337 | 340 | then throw("Admin blocked") | |
338 | 341 | else { | |
339 | - | let | |
340 | - | let | |
342 | + | let cI = cD.assetPair.amountAsset | |
343 | + | let cJ = if ((cI == unit)) | |
341 | 344 | then "WAVES" | |
342 | - | else toBase58String(value( | |
343 | - | let | |
344 | - | let | |
345 | + | else toBase58String(value(cI)) | |
346 | + | let cK = cD.assetPair.priceAsset | |
347 | + | let cL = if ((cK == unit)) | |
345 | 348 | then "WAVES" | |
346 | - | else toBase58String(value( | |
347 | - | if (if (( | |
349 | + | else toBase58String(value(cK)) | |
350 | + | if (if ((cJ != cE)) | |
348 | 351 | then true | |
349 | - | else ( | |
352 | + | else (cL != cF)) | |
350 | 353 | then throw("Wr assets") | |
351 | 354 | else { | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | then ( | |
357 | - | else ( | |
355 | + | let cM = cD.price | |
356 | + | let ch = fraction(a, bm, bl) | |
357 | + | let cN = F(cM, a, ch) | |
358 | + | let cO = if ((cD.orderType == Buy)) | |
359 | + | then (bK >= cN) | |
360 | + | else (cN >= bK) | |
358 | 361 | true | |
359 | 362 | } | |
360 | 363 | } | |
361 | 364 | } | |
362 | 365 | ||
363 | 366 | ||
364 | - | func | |
367 | + | func cP (cQ) = if ((size(cQ.payments) != 1)) | |
365 | 368 | then throw("1 pmnt expected") | |
366 | 369 | else { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (if ( | |
370 | + | let cR = value(cQ.payments[0]) | |
371 | + | let bv = value(cR.assetId) | |
372 | + | let ca = cR.amount | |
373 | + | let cm = bt(toBase58String(cQ.transactionId), toBase58String(bv), ca, cQ.caller) | |
374 | + | let bP = cm._1 | |
375 | + | let bQ = cm._2 | |
376 | + | let bD = parseIntValue(cm._9) | |
377 | + | let bR = cm._10 | |
378 | + | if (if (au()) | |
376 | 379 | then true | |
377 | - | else ( | |
378 | - | then throw(("Admion blocked: " + toString( | |
379 | - | else $Tuple5( | |
380 | + | else (bD == m)) | |
381 | + | then throw(("Admion blocked: " + toString(bD))) | |
382 | + | else $Tuple5(bP, bQ, ca, bv, bR) | |
380 | 383 | } | |
381 | 384 | ||
382 | 385 | ||
383 | - | func | |
384 | - | let | |
385 | - | let | |
386 | - | if (if (if ( | |
386 | + | func cS (cT,S,cU,cV,aY,bY,bZ,ca,cb) = { | |
387 | + | let cW = bS(S, aY, value(cU).amount, value(cU).assetId, value(cV).amount, value(cV).assetId, cT, false, bY, bZ, ca, cb) | |
388 | + | let cX = parseIntValue(cW._8) | |
389 | + | if (if (if (au()) | |
387 | 390 | then true | |
388 | - | else ( | |
391 | + | else (cX == k)) | |
389 | 392 | then true | |
390 | - | else ( | |
391 | - | then throw(("Admin blocked: " + toString( | |
392 | - | else | |
393 | + | else (cX == m)) | |
394 | + | then throw(("Admin blocked: " + toString(cX))) | |
395 | + | else cW | |
393 | 396 | } | |
394 | 397 | ||
395 | 398 | ||
396 | - | @Callable( | |
397 | - | func constructor (as, | |
399 | + | @Callable(cQ) | |
400 | + | func constructor (as,cY) = if ((cQ.caller != this)) | |
398 | 401 | then throw("permission denied") | |
399 | - | else [StringEntry( | |
402 | + | else [StringEntry(K(), as), StringEntry(L(), cY)] | |
400 | 403 | ||
401 | 404 | ||
402 | 405 | ||
403 | - | @Callable( | |
404 | - | func put ( | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if ((0 > | |
406 | + | @Callable(cQ) | |
407 | + | func put (cZ,da) = { | |
408 | + | let db = aA() | |
409 | + | let dc = valueOrErrorMessage(addressFromString(db[w]), "Wr st addr") | |
410 | + | let dd = valueOrErrorMessage(addressFromString(db[x]), "Wr sl addr") | |
411 | + | if ((0 > cZ)) | |
409 | 412 | then throw("Invalid slippage.") | |
410 | - | else if ((size( | |
413 | + | else if ((size(cQ.payments) != 2)) | |
411 | 414 | then throw("2 pmnts expected") | |
412 | 415 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if (( | |
416 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(value(cQ.payments[0]).assetId, value(cQ.payments[0]).amount), cQ.payments[1], cZ, true, false, 0, "") | |
417 | + | let cy = de._2 | |
418 | + | let df = de._7 | |
419 | + | let bR = de._9 | |
420 | + | let cz = de._10 | |
421 | + | let cA = de._11 | |
422 | + | let bz = de._12 | |
423 | + | let bA = de._13 | |
424 | + | let dg = invoke(as, "emit", [cy], nil) | |
425 | + | if ((dg == dg)) | |
423 | 426 | then { | |
424 | - | let | |
425 | - | then invoke( | |
427 | + | let dh = if ((cz > 0)) | |
428 | + | then invoke(dd, "put", nil, [AttachedPayment(bz, cz)]) | |
426 | 429 | else nil | |
427 | - | if (( | |
430 | + | if ((dh == dh)) | |
428 | 431 | then { | |
429 | - | let | |
430 | - | then invoke( | |
432 | + | let di = if ((cA > 0)) | |
433 | + | then invoke(dd, "put", nil, [AttachedPayment(bA, cA)]) | |
431 | 434 | else nil | |
432 | - | if (( | |
435 | + | if ((di == di)) | |
433 | 436 | then { | |
434 | - | let | |
437 | + | let dj = if (da) | |
435 | 438 | then { | |
436 | - | let | |
437 | - | if (( | |
439 | + | let dk = invoke(dc, "stake", nil, [AttachedPayment(df, cy)]) | |
440 | + | if ((dk == dk)) | |
438 | 441 | then nil | |
439 | 442 | else throw("Strict value is not equal to itself.") | |
440 | 443 | } | |
441 | - | else [ScriptTransfer( | |
442 | - | ( | |
444 | + | else [ScriptTransfer(cQ.caller, cy, df)] | |
445 | + | (bR ++ dj) | |
443 | 446 | } | |
444 | 447 | else throw("Strict value is not equal to itself.") | |
445 | 448 | } | |
451 | 454 | ||
452 | 455 | ||
453 | 456 | ||
454 | - | @Callable(cP) | |
455 | - | func putOneTkn (dk,dl,dm,aX,cZ) = { | |
456 | - | let bj = az() | |
457 | - | let db = valueOrErrorMessage(addressFromString(bj[x]), "Wr st addr") | |
458 | - | let dc = valueOrErrorMessage(addressFromString(bj[y]), "Wr sl addr") | |
459 | - | let dn = valueOrErrorMessage(addressFromString(bj[z]), "Wr gwx addr") | |
460 | - | let do = av() | |
461 | - | let by = do[r] | |
462 | - | let bz = do[s] | |
463 | - | let bA = parseIntValue(do[t]) | |
464 | - | let bB = parseIntValue(do[u]) | |
465 | - | if (if (if (if ((0 >= aX)) | |
466 | - | then true | |
467 | - | else (0 >= dk)) | |
457 | + | @Callable(cQ) | |
458 | + | func putOneTkn (dl,dm,dn,aY,da) = { | |
459 | + | let bk = aA() | |
460 | + | let dc = valueOrErrorMessage(addressFromString(bk[w]), "Wr st addr") | |
461 | + | let dd = valueOrErrorMessage(addressFromString(bk[x]), "Wr sl addr") | |
462 | + | let do = valueOrErrorMessage(addressFromString(bk[y]), "Wr gwx addr") | |
463 | + | let dp = aw() | |
464 | + | let bz = dp[q] | |
465 | + | let bA = dp[r] | |
466 | + | let bB = parseIntValue(dp[s]) | |
467 | + | let bC = parseIntValue(dp[t]) | |
468 | + | if (if (if (if ((0 >= aY)) | |
468 | 469 | then true | |
469 | 470 | else (0 >= dl)) | |
470 | 471 | then true | |
471 | 472 | else (0 >= dm)) | |
473 | + | then true | |
474 | + | else (0 >= dn)) | |
472 | 475 | then throw("Wrong params") | |
473 | - | else if ((size( | |
476 | + | else if ((size(cQ.payments) != 1)) | |
474 | 477 | then throw("1 pmnt expected") | |
475 | 478 | else { | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then $Tuple6(( | |
483 | - | else if (( | |
484 | - | then $Tuple6( | |
479 | + | let cR = value(cQ.payments[0]) | |
480 | + | let bv = toBase58String(value(cR.assetId)) | |
481 | + | let ca = cR.amount | |
482 | + | let bF = aQ(bz) | |
483 | + | let bH = aQ(bA) | |
484 | + | let dq = if ((bv == bz)) | |
485 | + | then $Tuple6((bF - ca), bH, (ca - dl), dm, 0, 0) | |
486 | + | else if ((bv == bA)) | |
487 | + | then $Tuple6(bF, (bH - ca), 0, 0, (ca - dm), dl) | |
485 | 488 | else throw("wrong pmtAssetId") | |
486 | - | let dq = dp._1 | |
487 | - | let dr = dp._2 | |
488 | - | let ds = dp._3 | |
489 | - | let dt = dp._4 | |
490 | - | let du = dp._5 | |
491 | - | let dv = dp._6 | |
492 | - | let dw = invoke(dn, "calcD", [toString(dq), toString(dr), f, g, h], nil) | |
493 | - | let dx = invoke(dn, "calcD", [toString(toBigInt(((dq + ds) - dv))), toString(toBigInt(((dr + du) - dt))), f, g, h], nil) | |
494 | - | let dy = parseBigIntValue(al(dw)) | |
489 | + | let dr = dq._1 | |
490 | + | let ds = dq._2 | |
491 | + | let dt = dq._3 | |
492 | + | let du = dq._4 | |
493 | + | let dv = dq._5 | |
494 | + | let dw = dq._6 | |
495 | + | let dx = invoke(do, "calcD", [toString(dr), toString(ds), at, f, g], nil) | |
496 | + | let dy = invoke(do, "calcD", [toString(toBigInt(((dr + dt) - dw))), toString(toBigInt(((ds + dv) - du))), at, f, g], nil) | |
495 | 497 | let dz = parseBigIntValue(al(dx)) | |
496 | - | let dA = aU(dz, dy, toBigInt(1000)) | |
497 | - | if ((dA == dA)) | |
498 | + | let dA = parseBigIntValue(al(dy)) | |
499 | + | let dB = aV(dA, dz, toBigInt(1000)) | |
500 | + | if ((dB == dB)) | |
498 | 501 | then { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | if (( | |
502 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(fromBase58String(bz), dl), AttachedPayment(fromBase58String(bA), dm), 50000000000, true, true, ca, bv) | |
503 | + | let dC = de._2 | |
504 | + | let df = de._7 | |
505 | + | let bR = de._9 | |
506 | + | let cz = de._10 | |
507 | + | let cA = de._11 | |
508 | + | let dD = aV(toBigInt(dC), toBigInt(dn), toBigInt(aY)) | |
509 | + | let cy = toInt(dD._2) | |
510 | + | let dg = invoke(as, "emit", [cy], nil) | |
511 | + | if ((dg == dg)) | |
509 | 512 | then { | |
510 | - | let | |
511 | - | then invoke( | |
513 | + | let dh = if ((cz > 0)) | |
514 | + | then invoke(dd, "put", nil, [AttachedPayment(fromBase58String(bz), cz)]) | |
512 | 515 | else nil | |
513 | - | if (( | |
516 | + | if ((dh == dh)) | |
514 | 517 | then { | |
515 | - | let | |
516 | - | then invoke( | |
518 | + | let di = if ((cA > 0)) | |
519 | + | then invoke(dd, "put", nil, [AttachedPayment(fromBase58String(bA), cA)]) | |
517 | 520 | else nil | |
518 | - | if (( | |
521 | + | if ((di == di)) | |
519 | 522 | then { | |
520 | - | let | |
523 | + | let dj = if (da) | |
521 | 524 | then { | |
522 | - | let | |
523 | - | if (( | |
525 | + | let dk = invoke(dc, "stake", nil, [AttachedPayment(df, cy)]) | |
526 | + | if ((dk == dk)) | |
524 | 527 | then nil | |
525 | 528 | else throw("Strict value is not equal to itself.") | |
526 | 529 | } | |
527 | - | else [ScriptTransfer( | |
528 | - | ( | |
530 | + | else [ScriptTransfer(cQ.caller, cy, df)] | |
531 | + | (bR ++ dj) | |
529 | 532 | } | |
530 | 533 | else throw("Strict value is not equal to itself.") | |
531 | 534 | } | |
539 | 542 | ||
540 | 543 | ||
541 | 544 | ||
542 | - | @Callable( | |
543 | - | func putForFree ( | |
545 | + | @Callable(cQ) | |
546 | + | func putForFree (dE) = if ((0 > dE)) | |
544 | 547 | then throw("Invalid slippage") | |
545 | - | else if ((size( | |
548 | + | else if ((size(cQ.payments) != 2)) | |
546 | 549 | then throw("2 payments expected") | |
547 | 550 | else { | |
548 | - | let | |
549 | - | | |
551 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(value(cQ.payments[0]).assetId, value(cQ.payments[0]).amount), cQ.payments[1], dE, false, false, 0, "") | |
552 | + | de._9 | |
550 | 553 | } | |
551 | 554 | ||
552 | 555 | ||
553 | 556 | ||
554 | - | @Callable( | |
557 | + | @Callable(cQ) | |
555 | 558 | func get () = { | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | if (( | |
564 | - | then | |
559 | + | let cm = cP(cQ) | |
560 | + | let dF = cm._1 | |
561 | + | let bQ = cm._2 | |
562 | + | let ca = cm._3 | |
563 | + | let bv = cm._4 | |
564 | + | let bR = cm._5 | |
565 | + | let dG = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
566 | + | if ((dG == dG)) | |
567 | + | then bR | |
565 | 568 | else throw("Strict value is not equal to itself.") | |
566 | 569 | } | |
567 | 570 | ||
568 | 571 | ||
569 | 572 | ||
570 | - | @Callable( | |
571 | - | func getOneTkn ( | |
573 | + | @Callable(cQ) | |
574 | + | func getOneTkn (dH,dI,dJ,dK,aY) = if ((size(cQ.payments) != 1)) | |
572 | 575 | then throw("1 payment expected") | |
573 | 576 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (if (( | |
584 | - | then ( | |
577 | + | let bk = aw() | |
578 | + | let by = bk[p] | |
579 | + | let bz = bk[q] | |
580 | + | let bA = bk[r] | |
581 | + | let bB = parseIntValue(bk[s]) | |
582 | + | let bC = parseIntValue(bk[t]) | |
583 | + | let bD = bk[o] | |
584 | + | let dL = aA() | |
585 | + | let do = valueOrErrorMessage(addressFromString(dL[y]), "Wr sl addr") | |
586 | + | if (if ((dK != bz)) | |
587 | + | then (dK != bA) | |
585 | 588 | else false) | |
586 | 589 | then throw("Wr out as") | |
587 | 590 | else { | |
588 | - | let dL = if ((dJ == by)) | |
589 | - | then by | |
590 | - | else bz | |
591 | - | let cQ = value(cP.payments[0]) | |
592 | - | let bw = cP.caller | |
593 | - | let bt = toBase58String(cP.transactionId) | |
594 | - | let bu = value(cQ.assetId) | |
595 | - | let bZ = cQ.amount | |
596 | - | if (if (if (if ((0 > aX)) | |
597 | - | then true | |
598 | - | else (0 > dG)) | |
591 | + | let dM = if ((dK == bz)) | |
592 | + | then bz | |
593 | + | else bA | |
594 | + | let cR = value(cQ.payments[0]) | |
595 | + | let bx = cQ.caller | |
596 | + | let bu = toBase58String(cQ.transactionId) | |
597 | + | let bv = value(cR.assetId) | |
598 | + | let ca = cR.amount | |
599 | + | if (if (if (if ((0 > aY)) | |
599 | 600 | then true | |
600 | 601 | else (0 > dH)) | |
601 | 602 | then true | |
602 | 603 | else (0 > dI)) | |
604 | + | then true | |
605 | + | else (0 > dJ)) | |
603 | 606 | then throw("Wrong params") | |
604 | - | else if (( | |
607 | + | else if ((by != toBase58String(bv))) | |
605 | 608 | then throw("Invalid LP") | |
606 | 609 | else { | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | then $Tuple7(( | |
614 | - | else if (( | |
615 | - | then $Tuple7(( | |
610 | + | let cW = bt(toBase58String(cQ.transactionId), toBase58String(bv), ca, cQ.caller) | |
611 | + | let dN = cW._1 | |
612 | + | let dO = cW._2 | |
613 | + | let bF = aQ(bz) | |
614 | + | let bH = aQ(bA) | |
615 | + | let dP = if ((dK == bz)) | |
616 | + | then $Tuple7((bF - dN), (bH - dO), (dJ - dN), dI, 0, 0, (dN + dH)) | |
617 | + | else if ((dK == bA)) | |
618 | + | then $Tuple7((bF - dN), (bH - dO), 0, 0, (dJ - dO), dH, (dO + dI)) | |
616 | 619 | else throw("wrong outAssetId") | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | if (( | |
620 | + | let dr = dP._1 | |
621 | + | let ds = dP._2 | |
622 | + | let dt = dP._3 | |
623 | + | let du = dP._4 | |
624 | + | let dv = dP._5 | |
625 | + | let dw = dP._6 | |
626 | + | let dQ = dP._7 | |
627 | + | let dR = invoke(do, "calcD", [toString(dr), toString(ds), at, f, g], nil) | |
628 | + | let dS = invoke(do, "calcD", [toString(((dr - dt) + dw)), toString(((ds + du) - dv)), at, f, g], nil) | |
629 | + | let dB = aV(parseBigIntValue(al(dS)), parseBigIntValue(al(dR)), toBigInt(1000)) | |
630 | + | if ((dB == dB)) | |
628 | 631 | then { | |
629 | - | let | |
630 | - | if (( | |
632 | + | let dT = aV(toBigInt(dQ), toBigInt(dJ), toBigInt(aY)) | |
633 | + | if ((dT == dT)) | |
631 | 634 | then { | |
632 | - | let | |
633 | - | then $Tuple2(toInt( | |
634 | - | else $Tuple2(0, toInt( | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | then | |
639 | - | else | |
635 | + | let dU = if ((dK == bz)) | |
636 | + | then $Tuple2(toInt(dT._2), 0) | |
637 | + | else $Tuple2(0, toInt(dT._2)) | |
638 | + | let bJ = aS(z(bH, bC), z(bF, bB)) | |
639 | + | let bK = C(bJ, a) | |
640 | + | let bR = [ScriptTransfer(bx, if ((dM == bz)) | |
641 | + | then dU._1 | |
642 | + | else dU._2, if ((dM == "WAVES")) | |
640 | 643 | then unit | |
641 | - | else fromBase58String( | |
642 | - | if (( | |
644 | + | else fromBase58String(dM)), StringEntry(T(toString(bx), bu), aM(dU._1, dU._2, ca, bK, height, lastBlock.timestamp)), IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK)] | |
645 | + | if ((bR == bR)) | |
643 | 646 | then { | |
644 | - | let | |
645 | - | if (( | |
646 | - | then | |
647 | + | let dV = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
648 | + | if ((dV == dV)) | |
649 | + | then bR | |
647 | 650 | else throw("Strict value is not equal to itself.") | |
648 | 651 | } | |
649 | 652 | else throw("Strict value is not equal to itself.") | |
657 | 660 | ||
658 | 661 | ||
659 | 662 | ||
660 | - | @Callable( | |
661 | - | func getNoLess ( | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | if (( | |
669 | - | then throw(((("Failed: " + toString( | |
670 | - | else if (( | |
671 | - | then throw(((("Failed: " + toString( | |
663 | + | @Callable(cQ) | |
664 | + | func getNoLess (dW,dX) = { | |
665 | + | let cm = cP(cQ) | |
666 | + | let bP = cm._1 | |
667 | + | let bQ = cm._2 | |
668 | + | let ca = cm._3 | |
669 | + | let bv = cm._4 | |
670 | + | let bR = cm._5 | |
671 | + | if ((dW > bP)) | |
672 | + | then throw(((("Failed: " + toString(bP)) + " < ") + toString(dW))) | |
673 | + | else if ((dX > bQ)) | |
674 | + | then throw(((("Failed: " + toString(bQ)) + " < ") + toString(dX))) | |
672 | 675 | else { | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | + | let dG = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
677 | + | if ((dG == dG)) | |
678 | + | then bR | |
676 | 679 | else throw("Strict value is not equal to itself.") | |
677 | 680 | } | |
678 | 681 | } | |
679 | 682 | ||
680 | 683 | ||
681 | 684 | ||
682 | - | @Callable( | |
683 | - | func unstakeAndGet ( | |
684 | - | let | |
685 | + | @Callable(cQ) | |
686 | + | func unstakeAndGet (dY) = { | |
687 | + | let dZ = if ((size(cQ.payments) != 0)) | |
685 | 688 | then throw("No pmnts expected") | |
686 | 689 | else true | |
687 | - | if (( | |
690 | + | if ((dZ == dZ)) | |
688 | 691 | then { | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | if (( | |
692 | + | let bk = aw() | |
693 | + | let ea = aA() | |
694 | + | let df = fromBase58String(bk[p]) | |
695 | + | let eb = valueOrErrorMessage(addressFromString(ea[w]), "Wr st addr") | |
696 | + | let ec = invoke(eb, "unstake", [toBase58String(df), dY], nil) | |
697 | + | if ((ec == ec)) | |
695 | 698 | then { | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
699 | + | let cW = bt(toBase58String(cQ.transactionId), toBase58String(df), dY, cQ.caller) | |
700 | + | let bD = parseIntValue(cW._9) | |
701 | + | let bR = cW._10 | |
702 | + | let ed = if (if (au()) | |
700 | 703 | then true | |
701 | - | else ( | |
702 | - | then throw(("Admin blocked: " + toString( | |
704 | + | else (bD == m)) | |
705 | + | then throw(("Admin blocked: " + toString(bD))) | |
703 | 706 | else true | |
704 | - | if (( | |
707 | + | if ((ed == ed)) | |
705 | 708 | then { | |
706 | - | let | |
707 | - | if (( | |
708 | - | then | |
709 | + | let dG = invoke(as, "burn", [dY], [AttachedPayment(df, dY)]) | |
710 | + | if ((dG == dG)) | |
711 | + | then bR | |
709 | 712 | else throw("Strict value is not equal to itself.") | |
710 | 713 | } | |
711 | 714 | else throw("Strict value is not equal to itself.") | |
717 | 720 | ||
718 | 721 | ||
719 | 722 | ||
720 | - | @Callable( | |
721 | - | func activate ( | |
723 | + | @Callable(cQ) | |
724 | + | func activate (ee,ef) = if ((toString(cQ.caller) != toString(as))) | |
722 | 725 | then throw("permissions denied") | |
723 | - | else $Tuple2([StringEntry(V(), | |
726 | + | else $Tuple2([StringEntry(U(), ee), StringEntry(V(), ef)], "success") | |
724 | 727 | ||
725 | 728 | ||
726 | 729 | ||
727 | - | @Callable( | |
728 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
730 | + | @Callable(cQ) | |
731 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aw()) | |
729 | 732 | ||
730 | 733 | ||
731 | 734 | ||
732 | - | @Callable( | |
733 | - | func getAccBalanceWrapperREADONLY ( | |
735 | + | @Callable(cQ) | |
736 | + | func getAccBalanceWrapperREADONLY (aR) = $Tuple2(nil, aQ(aR)) | |
734 | 737 | ||
735 | 738 | ||
736 | 739 | ||
737 | - | @Callable( | |
738 | - | func calcPricesWrapperREADONLY ( | |
739 | - | let | |
740 | - | $Tuple2(nil, [toString( | |
740 | + | @Callable(cQ) | |
741 | + | func calcPricesWrapperREADONLY (be,bf,bj) = { | |
742 | + | let bs = bi(be, bf, bj) | |
743 | + | $Tuple2(nil, [toString(bs[0]), toString(bs[1]), toString(bs[2])]) | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | ||
744 | 747 | ||
745 | - | @Callable( | |
746 | - | func fromX18WrapperREADONLY (E | |
748 | + | @Callable(cQ) | |
749 | + | func fromX18WrapperREADONLY (D,E) = $Tuple2(nil, C(parseBigIntValue(D), E)) | |
747 | 750 | ||
748 | 751 | ||
749 | 752 | ||
750 | - | @Callable( | |
751 | - | func toX18WrapperREADONLY (B | |
753 | + | @Callable(cQ) | |
754 | + | func toX18WrapperREADONLY (A,B) = $Tuple2(nil, toString(z(A, B))) | |
752 | 755 | ||
753 | 756 | ||
754 | 757 | ||
755 | - | @Callable( | |
756 | - | func calcPriceBigIntWrapperREADONLY ( | |
758 | + | @Callable(cQ) | |
759 | + | func calcPriceBigIntWrapperREADONLY (aT,aU) = $Tuple2(nil, toString(aS(parseBigIntValue(aT), parseBigIntValue(aU)))) | |
757 | 760 | ||
758 | 761 | ||
759 | 762 | ||
760 | - | @Callable( | |
761 | - | func estimatePutOperationWrapperREADONLY ( | |
763 | + | @Callable(cQ) | |
764 | + | func estimatePutOperationWrapperREADONLY (bu,aY,bT,bU,bV,bW,eg,bX,bY) = $Tuple2(nil, bS(bu, aY, bT, bU, bV, bW, eg, bX, bY, false, 0, "")) | |
762 | 765 | ||
763 | 766 | ||
764 | 767 | ||
765 | - | @Callable( | |
766 | - | func estimateGetOperationWrapperREADONLY ( | |
767 | - | let | |
768 | - | $Tuple2(nil, $Tuple10( | |
768 | + | @Callable(cQ) | |
769 | + | func estimateGetOperationWrapperREADONLY (bu,eh,bw,eg) = { | |
770 | + | let cm = bt(bu, eh, bw, addressFromStringValue(eg)) | |
771 | + | $Tuple2(nil, $Tuple10(cm._1, cm._2, cm._3, cm._4, cm._5, cm._6, cm._7, toString(cm._8), cm._9, cm._10)) | |
769 | 772 | } | |
770 | 773 | ||
771 | 774 | ||
772 | - | @Verifier( | |
773 | - | func | |
774 | - | let am = | |
775 | + | @Verifier(ei) | |
776 | + | func ej () = { | |
777 | + | let am = ei | |
775 | 778 | if ($isInstanceOf(am, "Order")) | |
776 | 779 | then { | |
777 | - | let | |
778 | - | let | |
779 | - | let ai = | |
780 | - | let | |
781 | - | let | |
780 | + | let cD = am | |
781 | + | let ek = av() | |
782 | + | let ai = cC(cD) | |
783 | + | let el = sigVerify(cD.bodyBytes, cD.proofs[0], cD.senderPublicKey) | |
784 | + | let em = sigVerify(cD.bodyBytes, cD.proofs[1], ek) | |
782 | 785 | if (if (if (ai) | |
783 | - | then ek | |
784 | - | else false) | |
785 | 786 | then el | |
786 | 787 | else false) | |
788 | + | then em | |
789 | + | else false) | |
787 | 790 | then true | |
788 | - | else ah(ai, | |
791 | + | else ah(ai, el, em) | |
789 | 792 | } | |
790 | 793 | else { | |
791 | - | let | |
792 | - | if (( | |
793 | - | then sigVerify( | |
794 | - | else sigVerify( | |
794 | + | let en = valueOrElse(getString(this, L()), i) | |
795 | + | if ((en == i)) | |
796 | + | then sigVerify(ei.bodyBytes, ei.proofs[0], ei.senderPublicKey) | |
797 | + | else sigVerify(ei.bodyBytes, ei.proofs[0], fromBase58String(en)) | |
795 | 798 | } | |
796 | 799 | } | |
797 | 800 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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(1) | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "100000000" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "1" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "__" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 1 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 2 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 3 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 4 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 1 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 2 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 3 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 4 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 5 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 6 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 7 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 8 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 9 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 1 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 7 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 10 | |
53 | 53 | ||
54 | - | let z = 10 | |
55 | - | ||
56 | - | func A (B,C) = fraction(toBigInt(B), c, toBigInt(C)) | |
54 | + | func z (A,B) = fraction(toBigInt(A), c, toBigInt(B)) | |
57 | 55 | ||
58 | 56 | ||
59 | - | func | |
57 | + | func C (D,E) = toInt(fraction(D, toBigInt(E), c)) | |
60 | 58 | ||
61 | 59 | ||
62 | - | func | |
60 | + | func F (G,H,I) = fraction(G, H, I) | |
63 | 61 | ||
64 | 62 | ||
65 | - | func | |
66 | - | then -( | |
67 | - | else | |
63 | + | func J (D) = if ((d > D)) | |
64 | + | then -(D) | |
65 | + | else D | |
68 | 66 | ||
69 | 67 | ||
70 | - | func | |
68 | + | func K () = "%s__factoryContract" | |
71 | 69 | ||
72 | 70 | ||
73 | - | func | |
71 | + | func L () = "%s__managerPublicKey" | |
74 | 72 | ||
75 | 73 | ||
76 | - | func | |
74 | + | func M () = "%s%s__price__last" | |
77 | 75 | ||
78 | 76 | ||
79 | - | func | |
77 | + | func N (O,P) = makeString(["%s%s%d%d__price__history", toString(O), toString(P)], h) | |
80 | 78 | ||
81 | 79 | ||
82 | - | func | |
80 | + | func Q (R,S) = ((("%s%s%s__P__" + R) + "__") + S) | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func T (R,S) = ((("%s%s%s__G__" + R) + "__") + S) | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func U () = "%s__amountAsset" | |
89 | 87 | ||
90 | 88 | ||
91 | - | func W () = "%s__priceAsset" | |
89 | + | func V () = "%s__priceAsset" | |
90 | + | ||
91 | + | ||
92 | + | func W () = "%s__amp" | |
92 | 93 | ||
93 | 94 | ||
94 | 95 | func X () = "%s__factoryConfig" | |
95 | 96 | ||
96 | 97 | ||
97 | 98 | func Y () = "%s%s__matcher__publicKey" | |
98 | 99 | ||
99 | 100 | ||
100 | 101 | func Z (aa,ab) = (((("%d%d%s__" + aa) + "__") + ab) + "__config") | |
101 | 102 | ||
102 | 103 | ||
103 | 104 | func ac (ad) = ("%s%s%s__mappings__baseAsset2internalId__" + ad) | |
104 | 105 | ||
105 | 106 | ||
106 | 107 | func ae () = "%s__shutdown" | |
107 | 108 | ||
108 | 109 | ||
109 | 110 | func af (ag) = ("%s%s__poolWeight__" + ag) | |
110 | 111 | ||
111 | 112 | ||
112 | 113 | func ah (ai,aj,ak) = throw(((((("Failed: orderValid=" + toString(ai)) + " senderValid=") + toString(aj)) + " matcherValid=") + toString(ak))) | |
113 | 114 | ||
114 | 115 | ||
115 | - | func al ( | |
116 | - | let am = | |
116 | + | func al (D) = { | |
117 | + | let am = D | |
117 | 118 | if ($isInstanceOf(am, "String")) | |
118 | 119 | then { | |
119 | 120 | let an = am | |
120 | 121 | an | |
121 | 122 | } | |
122 | 123 | else throw("fail cast to String") | |
123 | 124 | } | |
124 | 125 | ||
125 | 126 | ||
126 | 127 | func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
127 | 128 | ||
128 | 129 | ||
129 | 130 | func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
130 | 131 | ||
131 | 132 | ||
132 | - | let as = addressFromStringValue(ao(this, | |
133 | + | let as = addressFromStringValue(ao(this, K())) | |
133 | 134 | ||
134 | - | func at () = valueOrElse(getBoolean(as, ae()), false) | |
135 | + | let at = ao(this, W()) | |
136 | + | ||
137 | + | func au () = valueOrElse(getBoolean(as, ae()), false) | |
135 | 138 | ||
136 | 139 | ||
137 | - | func | |
140 | + | func av () = fromBase58String(ao(as, Y())) | |
138 | 141 | ||
139 | 142 | ||
140 | - | func | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let aa = ar(as, ac( | |
145 | - | split(ao(as, Z(toString(aa), toString( | |
143 | + | func aw () = { | |
144 | + | let ax = ao(this, U()) | |
145 | + | let ay = ao(this, V()) | |
146 | + | let az = ar(as, ac(ay)) | |
147 | + | let aa = ar(as, ac(ax)) | |
148 | + | split(ao(as, Z(toString(aa), toString(az))), h) | |
146 | 149 | } | |
147 | 150 | ||
148 | 151 | ||
149 | - | func | |
152 | + | func aA () = split(ao(as, X()), h) | |
150 | 153 | ||
151 | 154 | ||
152 | - | func | |
155 | + | func aB (aC,aD,aE,aF,aG,aH,aI,aJ,aK,aL) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK), toString(aL)], h) | |
153 | 156 | ||
154 | 157 | ||
155 | - | func | |
158 | + | func aM (aN,aO,aP,aF,aI,aJ) = makeString(["%d%d%d%d%d%d", toString(aN), toString(aO), toString(aP), toString(aF), toString(aI), toString(aJ)], h) | |
156 | 159 | ||
157 | 160 | ||
158 | - | func | |
161 | + | func aQ (aR) = if ((aR == "WAVES")) | |
159 | 162 | then wavesBalance(this).available | |
160 | - | else assetBalance(this, fromBase58String( | |
163 | + | else assetBalance(this, fromBase58String(aR)) | |
161 | 164 | ||
162 | 165 | ||
163 | - | func | |
166 | + | func aS (aT,aU) = fraction(aT, c, aU) | |
164 | 167 | ||
165 | 168 | ||
166 | - | func | |
167 | - | let | |
168 | - | let | |
169 | - | if (!( | |
170 | - | then throw(((("Too big slippage: " + toString( | |
171 | - | else $Tuple2( | |
169 | + | func aV (aW,aX,aY) = { | |
170 | + | let aZ = fraction((aW - aX), b, aX) | |
171 | + | let ba = ((aY - J(aZ)) > d) | |
172 | + | if (!(ba)) | |
173 | + | then throw(((("Too big slippage: " + toString(aZ)) + " vs ") + toString(aY))) | |
174 | + | else $Tuple2(ba, min([aW, aX])) | |
172 | 175 | } | |
173 | 176 | ||
174 | 177 | ||
175 | - | func | |
176 | - | let | |
177 | - | let | |
178 | - | | |
178 | + | func bb (bc,bd,be,bf) = { | |
179 | + | let bg = z(be, bc) | |
180 | + | let bh = z(bf, bd) | |
181 | + | aS(bh, bg) | |
179 | 182 | } | |
180 | 183 | ||
181 | 184 | ||
182 | - | func | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | [ | |
185 | + | func bi (be,bf,bj) = { | |
186 | + | let bk = aw() | |
187 | + | let bl = parseIntValue(bk[s]) | |
188 | + | let bm = parseIntValue(bk[t]) | |
189 | + | let bn = bb(bl, bm, be, bf) | |
190 | + | let aU = z(be, bl) | |
191 | + | let aT = z(bf, bm) | |
192 | + | let bo = z(bj, a) | |
193 | + | let bp = aS(aU, bo) | |
194 | + | let bq = aS(aT, bo) | |
195 | + | [bn, bp, bq] | |
193 | 196 | } | |
194 | 197 | ||
195 | 198 | ||
196 | - | func | |
197 | - | let | |
198 | - | [ | |
199 | + | func br (be,bf,bj) = { | |
200 | + | let bs = bi(be, bf, bj) | |
201 | + | [C(bs[0], a), C(bs[1], a), C(bs[2], a)] | |
199 | 202 | } | |
200 | 203 | ||
201 | 204 | ||
202 | - | func | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
205 | + | func bt (bu,bv,bw,bx) = { | |
206 | + | let bk = aw() | |
207 | + | let by = bk[p] | |
208 | + | let bz = bk[q] | |
209 | + | let bA = bk[r] | |
210 | + | let bB = parseIntValue(bk[s]) | |
211 | + | let bC = parseIntValue(bk[t]) | |
212 | + | let bD = bk[o] | |
213 | + | let bE = valueOrErrorMessage(assetInfo(fromBase58String(by)), "Invalid LP id").quantity | |
214 | + | if ((by != bv)) | |
212 | 215 | then throw("Invalid pmt asset") | |
213 | 216 | else { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
217 | + | let bF = aQ(bz) | |
218 | + | let bG = z(bF, bB) | |
219 | + | let bH = aQ(bA) | |
220 | + | let bI = z(bH, bC) | |
221 | + | let bJ = aS(bI, bG) | |
222 | + | let bK = C(bJ, a) | |
223 | + | let bL = z(bw, a) | |
224 | + | let bM = z(bE, a) | |
225 | + | let bN = fraction(bG, bL, bM) | |
226 | + | let bO = fraction(bI, bL, bM) | |
227 | + | let bP = C(bN, bB) | |
228 | + | let bQ = C(bO, bC) | |
229 | + | let bR = if ((bu == "")) | |
227 | 230 | then nil | |
228 | - | else [ScriptTransfer( | |
231 | + | else [ScriptTransfer(bx, bP, if ((bz == "WAVES")) | |
229 | 232 | then unit | |
230 | - | else fromBase58String( | |
233 | + | else fromBase58String(bz)), ScriptTransfer(bx, bQ, if ((bA == "WAVES")) | |
231 | 234 | then unit | |
232 | - | else fromBase58String( | |
233 | - | $Tuple10( | |
235 | + | else fromBase58String(bA)), StringEntry(T(toString(bx), bu), aM(bP, bQ, bw, bK, height, lastBlock.timestamp)), IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK)] | |
236 | + | $Tuple10(bP, bQ, bz, bA, bF, bH, bE, bJ, bD, bR) | |
234 | 237 | } | |
235 | 238 | } | |
236 | 239 | ||
237 | 240 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | then | |
251 | - | else if (if ( | |
252 | - | then ( | |
241 | + | func bS (bu,aY,bT,bU,bV,bW,bx,bX,bY,bZ,ca,cb) = { | |
242 | + | let bk = aw() | |
243 | + | let by = fromBase58String(bk[p]) | |
244 | + | let cc = bk[q] | |
245 | + | let cd = bk[r] | |
246 | + | let ce = bk[u] | |
247 | + | let cf = bk[v] | |
248 | + | let cg = parseIntValue(bk[s]) | |
249 | + | let ch = parseIntValue(bk[t]) | |
250 | + | let bD = bk[o] | |
251 | + | let ci = valueOrErrorMessage(assetInfo(by), "Wr lp as").quantity | |
252 | + | let bF = if (bX) | |
253 | + | then aQ(cc) | |
254 | + | else if (if (bZ) | |
255 | + | then (cb == cc) | |
253 | 256 | else false) | |
254 | - | then ( | |
255 | - | else if ( | |
256 | - | then | |
257 | - | else ( | |
258 | - | let | |
259 | - | then | |
260 | - | else if (if ( | |
261 | - | then ( | |
257 | + | then (aQ(cc) - ca) | |
258 | + | else if (bZ) | |
259 | + | then aQ(cc) | |
260 | + | else (aQ(cc) - bT) | |
261 | + | let bH = if (bX) | |
262 | + | then aQ(cd) | |
263 | + | else if (if (bZ) | |
264 | + | then (cb == cd) | |
262 | 265 | else false) | |
263 | - | then ( | |
264 | - | else if ( | |
265 | - | then | |
266 | - | else ( | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
266 | + | then (aQ(cd) - ca) | |
267 | + | else if (bZ) | |
268 | + | then aQ(cd) | |
269 | + | else (aQ(cd) - bV) | |
270 | + | let cj = z(bT, cg) | |
271 | + | let ck = z(bV, ch) | |
272 | + | let cl = aS(ck, cj) | |
273 | + | let bG = z(bF, cg) | |
274 | + | let bI = z(bH, ch) | |
275 | + | let cm = if ((ci == 0)) | |
273 | 276 | then { | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | $Tuple5( | |
277 | + | let bJ = d | |
278 | + | let cn = d | |
279 | + | let bo = pow((cj * ck), 0, toBigInt(5), 1, 0, DOWN) | |
280 | + | $Tuple5(C(bo, a), C(cj, cg), C(ck, ch), aS((bI + ck), (bG + cj)), cn) | |
278 | 281 | } | |
279 | 282 | else { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if (if (( | |
284 | - | then ( | |
283 | + | let bJ = aS(bI, bG) | |
284 | + | let co = fraction(J((bJ - cl)), c, bJ) | |
285 | + | let cn = z(aY, a) | |
286 | + | if (if ((bJ != d)) | |
287 | + | then (co > cn) | |
285 | 288 | else false) | |
286 | - | then throw(((("Price slippage " + toString( | |
289 | + | then throw(((("Price slippage " + toString(co)) + " > ") + toString(cn))) | |
287 | 290 | else { | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | then $Tuple2( | |
293 | - | else $Tuple2( | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | $Tuple5( | |
291 | + | let bM = z(ci, a) | |
292 | + | let cp = fraction(cj, bJ, c) | |
293 | + | let cq = fraction(ck, c, bJ) | |
294 | + | let cr = if ((cp > ck)) | |
295 | + | then $Tuple2(cq, ck) | |
296 | + | else $Tuple2(cj, cp) | |
297 | + | let cs = cr._1 | |
298 | + | let ct = cr._2 | |
299 | + | let bo = fraction(bM, ct, bI) | |
300 | + | $Tuple5(C(bo, a), C(cs, cg), C(ct, ch), bJ, cn) | |
298 | 301 | } | |
299 | 302 | } | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | if ((0 >= | |
303 | + | let cu = cm._1 | |
304 | + | let cv = cm._2 | |
305 | + | let cw = cm._3 | |
306 | + | let bK = C(cm._4, a) | |
307 | + | let cx = C(cm._5, a) | |
308 | + | if ((0 >= cu)) | |
306 | 309 | then throw("LP <= 0") | |
307 | 310 | else { | |
308 | - | let | |
311 | + | let cy = if (!(bY)) | |
309 | 312 | then 0 | |
310 | - | else | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | $Tuple13( | |
313 | + | else cu | |
314 | + | let cz = (bT - cv) | |
315 | + | let cA = (bV - cw) | |
316 | + | let cB = [IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK), StringEntry(Q(bx, bu), aB(cv, cw, cy, bK, aY, cx, height, lastBlock.timestamp, cz, cA))] | |
317 | + | $Tuple13(cu, cy, bK, bF, bH, ci, by, bD, cB, cz, cA, bU, bW) | |
315 | 318 | } | |
316 | 319 | } | |
317 | 320 | ||
318 | 321 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | then | |
330 | - | else | |
331 | - | let | |
332 | - | if (if (if ( | |
322 | + | func cC (cD) = { | |
323 | + | let bk = aw() | |
324 | + | let cE = bk[q] | |
325 | + | let cF = bk[r] | |
326 | + | let bD = parseIntValue(bk[o]) | |
327 | + | let bl = parseIntValue(bk[s]) | |
328 | + | let bm = parseIntValue(bk[t]) | |
329 | + | let cG = aQ(cE) | |
330 | + | let cH = aQ(cF) | |
331 | + | let bJ = if ((cD.orderType == Buy)) | |
332 | + | then bb(bl, bm, (cG + cD.amount), cH) | |
333 | + | else bb(bl, bm, (cG - cD.amount), cH) | |
334 | + | let bK = C(bJ, a) | |
335 | + | if (if (if (au()) | |
333 | 336 | then true | |
334 | - | else ( | |
337 | + | else (bD == l)) | |
335 | 338 | then true | |
336 | - | else ( | |
339 | + | else (bD == m)) | |
337 | 340 | then throw("Admin blocked") | |
338 | 341 | else { | |
339 | - | let | |
340 | - | let | |
342 | + | let cI = cD.assetPair.amountAsset | |
343 | + | let cJ = if ((cI == unit)) | |
341 | 344 | then "WAVES" | |
342 | - | else toBase58String(value( | |
343 | - | let | |
344 | - | let | |
345 | + | else toBase58String(value(cI)) | |
346 | + | let cK = cD.assetPair.priceAsset | |
347 | + | let cL = if ((cK == unit)) | |
345 | 348 | then "WAVES" | |
346 | - | else toBase58String(value( | |
347 | - | if (if (( | |
349 | + | else toBase58String(value(cK)) | |
350 | + | if (if ((cJ != cE)) | |
348 | 351 | then true | |
349 | - | else ( | |
352 | + | else (cL != cF)) | |
350 | 353 | then throw("Wr assets") | |
351 | 354 | else { | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | then ( | |
357 | - | else ( | |
355 | + | let cM = cD.price | |
356 | + | let ch = fraction(a, bm, bl) | |
357 | + | let cN = F(cM, a, ch) | |
358 | + | let cO = if ((cD.orderType == Buy)) | |
359 | + | then (bK >= cN) | |
360 | + | else (cN >= bK) | |
358 | 361 | true | |
359 | 362 | } | |
360 | 363 | } | |
361 | 364 | } | |
362 | 365 | ||
363 | 366 | ||
364 | - | func | |
367 | + | func cP (cQ) = if ((size(cQ.payments) != 1)) | |
365 | 368 | then throw("1 pmnt expected") | |
366 | 369 | else { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (if ( | |
370 | + | let cR = value(cQ.payments[0]) | |
371 | + | let bv = value(cR.assetId) | |
372 | + | let ca = cR.amount | |
373 | + | let cm = bt(toBase58String(cQ.transactionId), toBase58String(bv), ca, cQ.caller) | |
374 | + | let bP = cm._1 | |
375 | + | let bQ = cm._2 | |
376 | + | let bD = parseIntValue(cm._9) | |
377 | + | let bR = cm._10 | |
378 | + | if (if (au()) | |
376 | 379 | then true | |
377 | - | else ( | |
378 | - | then throw(("Admion blocked: " + toString( | |
379 | - | else $Tuple5( | |
380 | + | else (bD == m)) | |
381 | + | then throw(("Admion blocked: " + toString(bD))) | |
382 | + | else $Tuple5(bP, bQ, ca, bv, bR) | |
380 | 383 | } | |
381 | 384 | ||
382 | 385 | ||
383 | - | func | |
384 | - | let | |
385 | - | let | |
386 | - | if (if (if ( | |
386 | + | func cS (cT,S,cU,cV,aY,bY,bZ,ca,cb) = { | |
387 | + | let cW = bS(S, aY, value(cU).amount, value(cU).assetId, value(cV).amount, value(cV).assetId, cT, false, bY, bZ, ca, cb) | |
388 | + | let cX = parseIntValue(cW._8) | |
389 | + | if (if (if (au()) | |
387 | 390 | then true | |
388 | - | else ( | |
391 | + | else (cX == k)) | |
389 | 392 | then true | |
390 | - | else ( | |
391 | - | then throw(("Admin blocked: " + toString( | |
392 | - | else | |
393 | + | else (cX == m)) | |
394 | + | then throw(("Admin blocked: " + toString(cX))) | |
395 | + | else cW | |
393 | 396 | } | |
394 | 397 | ||
395 | 398 | ||
396 | - | @Callable( | |
397 | - | func constructor (as, | |
399 | + | @Callable(cQ) | |
400 | + | func constructor (as,cY) = if ((cQ.caller != this)) | |
398 | 401 | then throw("permission denied") | |
399 | - | else [StringEntry( | |
402 | + | else [StringEntry(K(), as), StringEntry(L(), cY)] | |
400 | 403 | ||
401 | 404 | ||
402 | 405 | ||
403 | - | @Callable( | |
404 | - | func put ( | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if ((0 > | |
406 | + | @Callable(cQ) | |
407 | + | func put (cZ,da) = { | |
408 | + | let db = aA() | |
409 | + | let dc = valueOrErrorMessage(addressFromString(db[w]), "Wr st addr") | |
410 | + | let dd = valueOrErrorMessage(addressFromString(db[x]), "Wr sl addr") | |
411 | + | if ((0 > cZ)) | |
409 | 412 | then throw("Invalid slippage.") | |
410 | - | else if ((size( | |
413 | + | else if ((size(cQ.payments) != 2)) | |
411 | 414 | then throw("2 pmnts expected") | |
412 | 415 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if (( | |
416 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(value(cQ.payments[0]).assetId, value(cQ.payments[0]).amount), cQ.payments[1], cZ, true, false, 0, "") | |
417 | + | let cy = de._2 | |
418 | + | let df = de._7 | |
419 | + | let bR = de._9 | |
420 | + | let cz = de._10 | |
421 | + | let cA = de._11 | |
422 | + | let bz = de._12 | |
423 | + | let bA = de._13 | |
424 | + | let dg = invoke(as, "emit", [cy], nil) | |
425 | + | if ((dg == dg)) | |
423 | 426 | then { | |
424 | - | let | |
425 | - | then invoke( | |
427 | + | let dh = if ((cz > 0)) | |
428 | + | then invoke(dd, "put", nil, [AttachedPayment(bz, cz)]) | |
426 | 429 | else nil | |
427 | - | if (( | |
430 | + | if ((dh == dh)) | |
428 | 431 | then { | |
429 | - | let | |
430 | - | then invoke( | |
432 | + | let di = if ((cA > 0)) | |
433 | + | then invoke(dd, "put", nil, [AttachedPayment(bA, cA)]) | |
431 | 434 | else nil | |
432 | - | if (( | |
435 | + | if ((di == di)) | |
433 | 436 | then { | |
434 | - | let | |
437 | + | let dj = if (da) | |
435 | 438 | then { | |
436 | - | let | |
437 | - | if (( | |
439 | + | let dk = invoke(dc, "stake", nil, [AttachedPayment(df, cy)]) | |
440 | + | if ((dk == dk)) | |
438 | 441 | then nil | |
439 | 442 | else throw("Strict value is not equal to itself.") | |
440 | 443 | } | |
441 | - | else [ScriptTransfer( | |
442 | - | ( | |
444 | + | else [ScriptTransfer(cQ.caller, cy, df)] | |
445 | + | (bR ++ dj) | |
443 | 446 | } | |
444 | 447 | else throw("Strict value is not equal to itself.") | |
445 | 448 | } | |
446 | 449 | else throw("Strict value is not equal to itself.") | |
447 | 450 | } | |
448 | 451 | else throw("Strict value is not equal to itself.") | |
449 | 452 | } | |
450 | 453 | } | |
451 | 454 | ||
452 | 455 | ||
453 | 456 | ||
454 | - | @Callable(cP) | |
455 | - | func putOneTkn (dk,dl,dm,aX,cZ) = { | |
456 | - | let bj = az() | |
457 | - | let db = valueOrErrorMessage(addressFromString(bj[x]), "Wr st addr") | |
458 | - | let dc = valueOrErrorMessage(addressFromString(bj[y]), "Wr sl addr") | |
459 | - | let dn = valueOrErrorMessage(addressFromString(bj[z]), "Wr gwx addr") | |
460 | - | let do = av() | |
461 | - | let by = do[r] | |
462 | - | let bz = do[s] | |
463 | - | let bA = parseIntValue(do[t]) | |
464 | - | let bB = parseIntValue(do[u]) | |
465 | - | if (if (if (if ((0 >= aX)) | |
466 | - | then true | |
467 | - | else (0 >= dk)) | |
457 | + | @Callable(cQ) | |
458 | + | func putOneTkn (dl,dm,dn,aY,da) = { | |
459 | + | let bk = aA() | |
460 | + | let dc = valueOrErrorMessage(addressFromString(bk[w]), "Wr st addr") | |
461 | + | let dd = valueOrErrorMessage(addressFromString(bk[x]), "Wr sl addr") | |
462 | + | let do = valueOrErrorMessage(addressFromString(bk[y]), "Wr gwx addr") | |
463 | + | let dp = aw() | |
464 | + | let bz = dp[q] | |
465 | + | let bA = dp[r] | |
466 | + | let bB = parseIntValue(dp[s]) | |
467 | + | let bC = parseIntValue(dp[t]) | |
468 | + | if (if (if (if ((0 >= aY)) | |
468 | 469 | then true | |
469 | 470 | else (0 >= dl)) | |
470 | 471 | then true | |
471 | 472 | else (0 >= dm)) | |
473 | + | then true | |
474 | + | else (0 >= dn)) | |
472 | 475 | then throw("Wrong params") | |
473 | - | else if ((size( | |
476 | + | else if ((size(cQ.payments) != 1)) | |
474 | 477 | then throw("1 pmnt expected") | |
475 | 478 | else { | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then $Tuple6(( | |
483 | - | else if (( | |
484 | - | then $Tuple6( | |
479 | + | let cR = value(cQ.payments[0]) | |
480 | + | let bv = toBase58String(value(cR.assetId)) | |
481 | + | let ca = cR.amount | |
482 | + | let bF = aQ(bz) | |
483 | + | let bH = aQ(bA) | |
484 | + | let dq = if ((bv == bz)) | |
485 | + | then $Tuple6((bF - ca), bH, (ca - dl), dm, 0, 0) | |
486 | + | else if ((bv == bA)) | |
487 | + | then $Tuple6(bF, (bH - ca), 0, 0, (ca - dm), dl) | |
485 | 488 | else throw("wrong pmtAssetId") | |
486 | - | let dq = dp._1 | |
487 | - | let dr = dp._2 | |
488 | - | let ds = dp._3 | |
489 | - | let dt = dp._4 | |
490 | - | let du = dp._5 | |
491 | - | let dv = dp._6 | |
492 | - | let dw = invoke(dn, "calcD", [toString(dq), toString(dr), f, g, h], nil) | |
493 | - | let dx = invoke(dn, "calcD", [toString(toBigInt(((dq + ds) - dv))), toString(toBigInt(((dr + du) - dt))), f, g, h], nil) | |
494 | - | let dy = parseBigIntValue(al(dw)) | |
489 | + | let dr = dq._1 | |
490 | + | let ds = dq._2 | |
491 | + | let dt = dq._3 | |
492 | + | let du = dq._4 | |
493 | + | let dv = dq._5 | |
494 | + | let dw = dq._6 | |
495 | + | let dx = invoke(do, "calcD", [toString(dr), toString(ds), at, f, g], nil) | |
496 | + | let dy = invoke(do, "calcD", [toString(toBigInt(((dr + dt) - dw))), toString(toBigInt(((ds + dv) - du))), at, f, g], nil) | |
495 | 497 | let dz = parseBigIntValue(al(dx)) | |
496 | - | let dA = aU(dz, dy, toBigInt(1000)) | |
497 | - | if ((dA == dA)) | |
498 | + | let dA = parseBigIntValue(al(dy)) | |
499 | + | let dB = aV(dA, dz, toBigInt(1000)) | |
500 | + | if ((dB == dB)) | |
498 | 501 | then { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | if (( | |
502 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(fromBase58String(bz), dl), AttachedPayment(fromBase58String(bA), dm), 50000000000, true, true, ca, bv) | |
503 | + | let dC = de._2 | |
504 | + | let df = de._7 | |
505 | + | let bR = de._9 | |
506 | + | let cz = de._10 | |
507 | + | let cA = de._11 | |
508 | + | let dD = aV(toBigInt(dC), toBigInt(dn), toBigInt(aY)) | |
509 | + | let cy = toInt(dD._2) | |
510 | + | let dg = invoke(as, "emit", [cy], nil) | |
511 | + | if ((dg == dg)) | |
509 | 512 | then { | |
510 | - | let | |
511 | - | then invoke( | |
513 | + | let dh = if ((cz > 0)) | |
514 | + | then invoke(dd, "put", nil, [AttachedPayment(fromBase58String(bz), cz)]) | |
512 | 515 | else nil | |
513 | - | if (( | |
516 | + | if ((dh == dh)) | |
514 | 517 | then { | |
515 | - | let | |
516 | - | then invoke( | |
518 | + | let di = if ((cA > 0)) | |
519 | + | then invoke(dd, "put", nil, [AttachedPayment(fromBase58String(bA), cA)]) | |
517 | 520 | else nil | |
518 | - | if (( | |
521 | + | if ((di == di)) | |
519 | 522 | then { | |
520 | - | let | |
523 | + | let dj = if (da) | |
521 | 524 | then { | |
522 | - | let | |
523 | - | if (( | |
525 | + | let dk = invoke(dc, "stake", nil, [AttachedPayment(df, cy)]) | |
526 | + | if ((dk == dk)) | |
524 | 527 | then nil | |
525 | 528 | else throw("Strict value is not equal to itself.") | |
526 | 529 | } | |
527 | - | else [ScriptTransfer( | |
528 | - | ( | |
530 | + | else [ScriptTransfer(cQ.caller, cy, df)] | |
531 | + | (bR ++ dj) | |
529 | 532 | } | |
530 | 533 | else throw("Strict value is not equal to itself.") | |
531 | 534 | } | |
532 | 535 | else throw("Strict value is not equal to itself.") | |
533 | 536 | } | |
534 | 537 | else throw("Strict value is not equal to itself.") | |
535 | 538 | } | |
536 | 539 | else throw("Strict value is not equal to itself.") | |
537 | 540 | } | |
538 | 541 | } | |
539 | 542 | ||
540 | 543 | ||
541 | 544 | ||
542 | - | @Callable( | |
543 | - | func putForFree ( | |
545 | + | @Callable(cQ) | |
546 | + | func putForFree (dE) = if ((0 > dE)) | |
544 | 547 | then throw("Invalid slippage") | |
545 | - | else if ((size( | |
548 | + | else if ((size(cQ.payments) != 2)) | |
546 | 549 | then throw("2 payments expected") | |
547 | 550 | else { | |
548 | - | let | |
549 | - | | |
551 | + | let de = cS(toString(cQ.caller), toBase58String(cQ.transactionId), AttachedPayment(value(cQ.payments[0]).assetId, value(cQ.payments[0]).amount), cQ.payments[1], dE, false, false, 0, "") | |
552 | + | de._9 | |
550 | 553 | } | |
551 | 554 | ||
552 | 555 | ||
553 | 556 | ||
554 | - | @Callable( | |
557 | + | @Callable(cQ) | |
555 | 558 | func get () = { | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | if (( | |
564 | - | then | |
559 | + | let cm = cP(cQ) | |
560 | + | let dF = cm._1 | |
561 | + | let bQ = cm._2 | |
562 | + | let ca = cm._3 | |
563 | + | let bv = cm._4 | |
564 | + | let bR = cm._5 | |
565 | + | let dG = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
566 | + | if ((dG == dG)) | |
567 | + | then bR | |
565 | 568 | else throw("Strict value is not equal to itself.") | |
566 | 569 | } | |
567 | 570 | ||
568 | 571 | ||
569 | 572 | ||
570 | - | @Callable( | |
571 | - | func getOneTkn ( | |
573 | + | @Callable(cQ) | |
574 | + | func getOneTkn (dH,dI,dJ,dK,aY) = if ((size(cQ.payments) != 1)) | |
572 | 575 | then throw("1 payment expected") | |
573 | 576 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | if (if (( | |
584 | - | then ( | |
577 | + | let bk = aw() | |
578 | + | let by = bk[p] | |
579 | + | let bz = bk[q] | |
580 | + | let bA = bk[r] | |
581 | + | let bB = parseIntValue(bk[s]) | |
582 | + | let bC = parseIntValue(bk[t]) | |
583 | + | let bD = bk[o] | |
584 | + | let dL = aA() | |
585 | + | let do = valueOrErrorMessage(addressFromString(dL[y]), "Wr sl addr") | |
586 | + | if (if ((dK != bz)) | |
587 | + | then (dK != bA) | |
585 | 588 | else false) | |
586 | 589 | then throw("Wr out as") | |
587 | 590 | else { | |
588 | - | let dL = if ((dJ == by)) | |
589 | - | then by | |
590 | - | else bz | |
591 | - | let cQ = value(cP.payments[0]) | |
592 | - | let bw = cP.caller | |
593 | - | let bt = toBase58String(cP.transactionId) | |
594 | - | let bu = value(cQ.assetId) | |
595 | - | let bZ = cQ.amount | |
596 | - | if (if (if (if ((0 > aX)) | |
597 | - | then true | |
598 | - | else (0 > dG)) | |
591 | + | let dM = if ((dK == bz)) | |
592 | + | then bz | |
593 | + | else bA | |
594 | + | let cR = value(cQ.payments[0]) | |
595 | + | let bx = cQ.caller | |
596 | + | let bu = toBase58String(cQ.transactionId) | |
597 | + | let bv = value(cR.assetId) | |
598 | + | let ca = cR.amount | |
599 | + | if (if (if (if ((0 > aY)) | |
599 | 600 | then true | |
600 | 601 | else (0 > dH)) | |
601 | 602 | then true | |
602 | 603 | else (0 > dI)) | |
604 | + | then true | |
605 | + | else (0 > dJ)) | |
603 | 606 | then throw("Wrong params") | |
604 | - | else if (( | |
607 | + | else if ((by != toBase58String(bv))) | |
605 | 608 | then throw("Invalid LP") | |
606 | 609 | else { | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | then $Tuple7(( | |
614 | - | else if (( | |
615 | - | then $Tuple7(( | |
610 | + | let cW = bt(toBase58String(cQ.transactionId), toBase58String(bv), ca, cQ.caller) | |
611 | + | let dN = cW._1 | |
612 | + | let dO = cW._2 | |
613 | + | let bF = aQ(bz) | |
614 | + | let bH = aQ(bA) | |
615 | + | let dP = if ((dK == bz)) | |
616 | + | then $Tuple7((bF - dN), (bH - dO), (dJ - dN), dI, 0, 0, (dN + dH)) | |
617 | + | else if ((dK == bA)) | |
618 | + | then $Tuple7((bF - dN), (bH - dO), 0, 0, (dJ - dO), dH, (dO + dI)) | |
616 | 619 | else throw("wrong outAssetId") | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | if (( | |
620 | + | let dr = dP._1 | |
621 | + | let ds = dP._2 | |
622 | + | let dt = dP._3 | |
623 | + | let du = dP._4 | |
624 | + | let dv = dP._5 | |
625 | + | let dw = dP._6 | |
626 | + | let dQ = dP._7 | |
627 | + | let dR = invoke(do, "calcD", [toString(dr), toString(ds), at, f, g], nil) | |
628 | + | let dS = invoke(do, "calcD", [toString(((dr - dt) + dw)), toString(((ds + du) - dv)), at, f, g], nil) | |
629 | + | let dB = aV(parseBigIntValue(al(dS)), parseBigIntValue(al(dR)), toBigInt(1000)) | |
630 | + | if ((dB == dB)) | |
628 | 631 | then { | |
629 | - | let | |
630 | - | if (( | |
632 | + | let dT = aV(toBigInt(dQ), toBigInt(dJ), toBigInt(aY)) | |
633 | + | if ((dT == dT)) | |
631 | 634 | then { | |
632 | - | let | |
633 | - | then $Tuple2(toInt( | |
634 | - | else $Tuple2(0, toInt( | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | then | |
639 | - | else | |
635 | + | let dU = if ((dK == bz)) | |
636 | + | then $Tuple2(toInt(dT._2), 0) | |
637 | + | else $Tuple2(0, toInt(dT._2)) | |
638 | + | let bJ = aS(z(bH, bC), z(bF, bB)) | |
639 | + | let bK = C(bJ, a) | |
640 | + | let bR = [ScriptTransfer(bx, if ((dM == bz)) | |
641 | + | then dU._1 | |
642 | + | else dU._2, if ((dM == "WAVES")) | |
640 | 643 | then unit | |
641 | - | else fromBase58String( | |
642 | - | if (( | |
644 | + | else fromBase58String(dM)), StringEntry(T(toString(bx), bu), aM(dU._1, dU._2, ca, bK, height, lastBlock.timestamp)), IntegerEntry(M(), bK), IntegerEntry(N(height, lastBlock.timestamp), bK)] | |
645 | + | if ((bR == bR)) | |
643 | 646 | then { | |
644 | - | let | |
645 | - | if (( | |
646 | - | then | |
647 | + | let dV = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
648 | + | if ((dV == dV)) | |
649 | + | then bR | |
647 | 650 | else throw("Strict value is not equal to itself.") | |
648 | 651 | } | |
649 | 652 | else throw("Strict value is not equal to itself.") | |
650 | 653 | } | |
651 | 654 | else throw("Strict value is not equal to itself.") | |
652 | 655 | } | |
653 | 656 | else throw("Strict value is not equal to itself.") | |
654 | 657 | } | |
655 | 658 | } | |
656 | 659 | } | |
657 | 660 | ||
658 | 661 | ||
659 | 662 | ||
660 | - | @Callable( | |
661 | - | func getNoLess ( | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | if (( | |
669 | - | then throw(((("Failed: " + toString( | |
670 | - | else if (( | |
671 | - | then throw(((("Failed: " + toString( | |
663 | + | @Callable(cQ) | |
664 | + | func getNoLess (dW,dX) = { | |
665 | + | let cm = cP(cQ) | |
666 | + | let bP = cm._1 | |
667 | + | let bQ = cm._2 | |
668 | + | let ca = cm._3 | |
669 | + | let bv = cm._4 | |
670 | + | let bR = cm._5 | |
671 | + | if ((dW > bP)) | |
672 | + | then throw(((("Failed: " + toString(bP)) + " < ") + toString(dW))) | |
673 | + | else if ((dX > bQ)) | |
674 | + | then throw(((("Failed: " + toString(bQ)) + " < ") + toString(dX))) | |
672 | 675 | else { | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | + | let dG = invoke(as, "burn", [ca], [AttachedPayment(bv, ca)]) | |
677 | + | if ((dG == dG)) | |
678 | + | then bR | |
676 | 679 | else throw("Strict value is not equal to itself.") | |
677 | 680 | } | |
678 | 681 | } | |
679 | 682 | ||
680 | 683 | ||
681 | 684 | ||
682 | - | @Callable( | |
683 | - | func unstakeAndGet ( | |
684 | - | let | |
685 | + | @Callable(cQ) | |
686 | + | func unstakeAndGet (dY) = { | |
687 | + | let dZ = if ((size(cQ.payments) != 0)) | |
685 | 688 | then throw("No pmnts expected") | |
686 | 689 | else true | |
687 | - | if (( | |
690 | + | if ((dZ == dZ)) | |
688 | 691 | then { | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | if (( | |
692 | + | let bk = aw() | |
693 | + | let ea = aA() | |
694 | + | let df = fromBase58String(bk[p]) | |
695 | + | let eb = valueOrErrorMessage(addressFromString(ea[w]), "Wr st addr") | |
696 | + | let ec = invoke(eb, "unstake", [toBase58String(df), dY], nil) | |
697 | + | if ((ec == ec)) | |
695 | 698 | then { | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
699 | + | let cW = bt(toBase58String(cQ.transactionId), toBase58String(df), dY, cQ.caller) | |
700 | + | let bD = parseIntValue(cW._9) | |
701 | + | let bR = cW._10 | |
702 | + | let ed = if (if (au()) | |
700 | 703 | then true | |
701 | - | else ( | |
702 | - | then throw(("Admin blocked: " + toString( | |
704 | + | else (bD == m)) | |
705 | + | then throw(("Admin blocked: " + toString(bD))) | |
703 | 706 | else true | |
704 | - | if (( | |
707 | + | if ((ed == ed)) | |
705 | 708 | then { | |
706 | - | let | |
707 | - | if (( | |
708 | - | then | |
709 | + | let dG = invoke(as, "burn", [dY], [AttachedPayment(df, dY)]) | |
710 | + | if ((dG == dG)) | |
711 | + | then bR | |
709 | 712 | else throw("Strict value is not equal to itself.") | |
710 | 713 | } | |
711 | 714 | else throw("Strict value is not equal to itself.") | |
712 | 715 | } | |
713 | 716 | else throw("Strict value is not equal to itself.") | |
714 | 717 | } | |
715 | 718 | else throw("Strict value is not equal to itself.") | |
716 | 719 | } | |
717 | 720 | ||
718 | 721 | ||
719 | 722 | ||
720 | - | @Callable( | |
721 | - | func activate ( | |
723 | + | @Callable(cQ) | |
724 | + | func activate (ee,ef) = if ((toString(cQ.caller) != toString(as))) | |
722 | 725 | then throw("permissions denied") | |
723 | - | else $Tuple2([StringEntry(V(), | |
726 | + | else $Tuple2([StringEntry(U(), ee), StringEntry(V(), ef)], "success") | |
724 | 727 | ||
725 | 728 | ||
726 | 729 | ||
727 | - | @Callable( | |
728 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
730 | + | @Callable(cQ) | |
731 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aw()) | |
729 | 732 | ||
730 | 733 | ||
731 | 734 | ||
732 | - | @Callable( | |
733 | - | func getAccBalanceWrapperREADONLY ( | |
735 | + | @Callable(cQ) | |
736 | + | func getAccBalanceWrapperREADONLY (aR) = $Tuple2(nil, aQ(aR)) | |
734 | 737 | ||
735 | 738 | ||
736 | 739 | ||
737 | - | @Callable( | |
738 | - | func calcPricesWrapperREADONLY ( | |
739 | - | let | |
740 | - | $Tuple2(nil, [toString( | |
740 | + | @Callable(cQ) | |
741 | + | func calcPricesWrapperREADONLY (be,bf,bj) = { | |
742 | + | let bs = bi(be, bf, bj) | |
743 | + | $Tuple2(nil, [toString(bs[0]), toString(bs[1]), toString(bs[2])]) | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | ||
744 | 747 | ||
745 | - | @Callable( | |
746 | - | func fromX18WrapperREADONLY (E | |
748 | + | @Callable(cQ) | |
749 | + | func fromX18WrapperREADONLY (D,E) = $Tuple2(nil, C(parseBigIntValue(D), E)) | |
747 | 750 | ||
748 | 751 | ||
749 | 752 | ||
750 | - | @Callable( | |
751 | - | func toX18WrapperREADONLY (B | |
753 | + | @Callable(cQ) | |
754 | + | func toX18WrapperREADONLY (A,B) = $Tuple2(nil, toString(z(A, B))) | |
752 | 755 | ||
753 | 756 | ||
754 | 757 | ||
755 | - | @Callable( | |
756 | - | func calcPriceBigIntWrapperREADONLY ( | |
758 | + | @Callable(cQ) | |
759 | + | func calcPriceBigIntWrapperREADONLY (aT,aU) = $Tuple2(nil, toString(aS(parseBigIntValue(aT), parseBigIntValue(aU)))) | |
757 | 760 | ||
758 | 761 | ||
759 | 762 | ||
760 | - | @Callable( | |
761 | - | func estimatePutOperationWrapperREADONLY ( | |
763 | + | @Callable(cQ) | |
764 | + | func estimatePutOperationWrapperREADONLY (bu,aY,bT,bU,bV,bW,eg,bX,bY) = $Tuple2(nil, bS(bu, aY, bT, bU, bV, bW, eg, bX, bY, false, 0, "")) | |
762 | 765 | ||
763 | 766 | ||
764 | 767 | ||
765 | - | @Callable( | |
766 | - | func estimateGetOperationWrapperREADONLY ( | |
767 | - | let | |
768 | - | $Tuple2(nil, $Tuple10( | |
768 | + | @Callable(cQ) | |
769 | + | func estimateGetOperationWrapperREADONLY (bu,eh,bw,eg) = { | |
770 | + | let cm = bt(bu, eh, bw, addressFromStringValue(eg)) | |
771 | + | $Tuple2(nil, $Tuple10(cm._1, cm._2, cm._3, cm._4, cm._5, cm._6, cm._7, toString(cm._8), cm._9, cm._10)) | |
769 | 772 | } | |
770 | 773 | ||
771 | 774 | ||
772 | - | @Verifier( | |
773 | - | func | |
774 | - | let am = | |
775 | + | @Verifier(ei) | |
776 | + | func ej () = { | |
777 | + | let am = ei | |
775 | 778 | if ($isInstanceOf(am, "Order")) | |
776 | 779 | then { | |
777 | - | let | |
778 | - | let | |
779 | - | let ai = | |
780 | - | let | |
781 | - | let | |
780 | + | let cD = am | |
781 | + | let ek = av() | |
782 | + | let ai = cC(cD) | |
783 | + | let el = sigVerify(cD.bodyBytes, cD.proofs[0], cD.senderPublicKey) | |
784 | + | let em = sigVerify(cD.bodyBytes, cD.proofs[1], ek) | |
782 | 785 | if (if (if (ai) | |
783 | - | then ek | |
784 | - | else false) | |
785 | 786 | then el | |
786 | 787 | else false) | |
788 | + | then em | |
789 | + | else false) | |
787 | 790 | then true | |
788 | - | else ah(ai, | |
791 | + | else ah(ai, el, em) | |
789 | 792 | } | |
790 | 793 | else { | |
791 | - | let | |
792 | - | if (( | |
793 | - | then sigVerify( | |
794 | - | else sigVerify( | |
794 | + | let en = valueOrElse(getString(this, L()), i) | |
795 | + | if ((en == i)) | |
796 | + | then sigVerify(ei.bodyBytes, ei.proofs[0], ei.senderPublicKey) | |
797 | + | else sigVerify(ei.bodyBytes, ei.proofs[0], fromBase58String(en)) | |
795 | 798 | } | |
796 | 799 | } | |
797 | 800 |
github/deemru/w8io/169f3d6 351.80 ms ◑