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