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