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