tx · 7zDSZYjBEUtyLh228DZfdU9TP1nj9cZtNrh7mUBKUHzq 3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd: -0.02400000 Waves 2023.02.27 10:00 [2467783] smart account 3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd > SELF 0.00000000 Waves
{ "type": 13, "id": "7zDSZYjBEUtyLh228DZfdU9TP1nj9cZtNrh7mUBKUHzq", "fee": 2400000, "feeAssetId": null, "timestamp": 1677481295814, "version": 2, "chainId": 84, "sender": "3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd", "senderPublicKey": "CdnTmMHxT68Qa4MtHEnAiUhsdKTi2YkHPGn92ThinVNt", "proofs": [ "31W4qDztB2kJ3Vtcsd74LyUod1dNqkyxzRmTbDBvgBiKgMTT83VuBYwtEes7cuHdDuywwfj5NHWPP4QcxAM5EGBT", "3zJwCQUh1hs8R3CEz8oS8yy5LUaFv5f41GAxxiMSC1VwNnGWWQ1yX9737QVVrUEg9GVNtpqmRNXHEmfCgEZu7rvx", "28s55smSGTvf5RdKnf69mbjNtHTVsu2R84GHcRHSPfi5puoxZQ9ZytnHpH4rJ76BZSbh9Dwxf8aSpETFY3xT63GE" ], "script": "base64:AAIFAAAAAAAAAC4IAhIFCgMIAQESBQoDAQEIEgASABIDCgEIEgASABIAEgASBQoDAQEEEgQKAgEIAAAAbQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AgAAAAABAAAAFmdldEJvb2xCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAAB2FkZHJlc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JAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA1bOOBg=", "height": 2467783, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GQ6jZQ6gyvpcuUq4fzuqm9ZnFAWGFs7rwRwbB7DDYFBr Next: F9p2EZp6KYaGKNkne7XimzcXk67u1Ee3kMrte7TrHvcQ Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrElse(getInteger(this, b), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (b) = valueOrElse(getString(this, b), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func d (e,b) = valueOrElse(getBoolean(e, b), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e,b) = valueOrElse(getString(e, b), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (e,b) = valueOrElse(getInteger(e, b), 0) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func h (i) = { | |
20 | 20 | let j = i | |
21 | 21 | if ($isInstanceOf(j, "List[Any]")) | |
22 | 22 | then { | |
23 | 23 | let k = j | |
24 | 24 | k | |
25 | 25 | } | |
26 | 26 | else throw("fail to cast into List[Any]") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l (i) = { | |
31 | 31 | let j = i | |
32 | 32 | if ($isInstanceOf(j, "String")) | |
33 | 33 | then { | |
34 | 34 | let m = j | |
35 | 35 | m | |
36 | 36 | } | |
37 | 37 | else throw("fail to cast into String") | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func n (i) = { | |
42 | 42 | let j = i | |
43 | 43 | if ($isInstanceOf(j, "Int")) | |
44 | 44 | then { | |
45 | 45 | let o = j | |
46 | 46 | o | |
47 | 47 | } | |
48 | 48 | else throw("fail to cast into Int") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func p (i) = { | |
53 | 53 | let j = i | |
54 | 54 | if ($isInstanceOf(j, "ByteVector")) | |
55 | 55 | then { | |
56 | 56 | let q = j | |
57 | 57 | q | |
58 | 58 | } | |
59 | 59 | else throw("fail to cast into ByteVector") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | let r = "__" | |
64 | 64 | ||
65 | 65 | let s = 1000000 | |
66 | 66 | ||
67 | 67 | let t = 100000000 | |
68 | 68 | ||
69 | 69 | let u = toBigInt(10000000000) | |
70 | 70 | ||
71 | 71 | let v = toBigInt(1000000000000) | |
72 | 72 | ||
73 | 73 | let w = toBigInt(10000000000000000) | |
74 | 74 | ||
75 | 75 | let x = "canceled" | |
76 | 76 | ||
77 | 77 | let y = "new" | |
78 | 78 | ||
79 | 79 | let z = "filled" | |
80 | 80 | ||
81 | 81 | let A = fromBase58String("WAVES") | |
82 | 82 | ||
83 | 83 | let B = 0 | |
84 | 84 | ||
85 | 85 | let C = 1 | |
86 | 86 | ||
87 | 87 | let D = 2 | |
88 | 88 | ||
89 | 89 | let E = 3 | |
90 | 90 | ||
91 | 91 | let F = 4 | |
92 | 92 | ||
93 | 93 | let G = 5 | |
94 | 94 | ||
95 | 95 | let H = 6 | |
96 | 96 | ||
97 | 97 | let I = 7 | |
98 | 98 | ||
99 | 99 | let J = 8 | |
100 | 100 | ||
101 | 101 | let K = 9 | |
102 | 102 | ||
103 | 103 | let L = 10 | |
104 | 104 | ||
105 | 105 | let M = 11 | |
106 | 106 | ||
107 | 107 | let N = 0 | |
108 | 108 | ||
109 | 109 | let O = 1 | |
110 | 110 | ||
111 | 111 | let P = 2 | |
112 | 112 | ||
113 | 113 | let Q = 3 | |
114 | 114 | ||
115 | 115 | let R = 4 | |
116 | 116 | ||
117 | 117 | let S = 5 | |
118 | 118 | ||
119 | 119 | let T = 6 | |
120 | 120 | ||
121 | 121 | let U = 7 | |
122 | 122 | ||
123 | 123 | let V = 8 | |
124 | 124 | ||
125 | 125 | let W = 9 | |
126 | 126 | ||
127 | 127 | let X = 10 | |
128 | 128 | ||
129 | 129 | let Y = 1 | |
130 | 130 | ||
131 | 131 | let Z = 2 | |
132 | 132 | ||
133 | 133 | let aa = 3 | |
134 | 134 | ||
135 | 135 | let ab = 4 | |
136 | 136 | ||
137 | 137 | let ac = 5 | |
138 | 138 | ||
139 | 139 | let ad = 6 | |
140 | 140 | ||
141 | 141 | let ae = 7 | |
142 | 142 | ||
143 | 143 | let af = 8 | |
144 | 144 | ||
145 | 145 | let ag = 9 | |
146 | 146 | ||
147 | 147 | let ah = 10 | |
148 | 148 | ||
149 | 149 | let ai = 11 | |
150 | 150 | ||
151 | 151 | func aj (e,b) = valueOrErrorMessage(getString(e, b), (((("mandatory " + toString(e)) + ".") + b) + " is not defined")) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ak () = "%s%s__config__controlAddress" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func al () = "%s__controlConfig" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func am (an) = split(aj(an, al()), r) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ao (ap,aq) = valueOrErrorMessage(addressFromString(ap[aq]), ("Control cfg doesn't contain address at index " + toString(aq))) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | let ar = addressFromStringValue(valueOrElse(getString(this, ak()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
167 | 167 | ||
168 | 168 | let ap = am(ar) | |
169 | 169 | ||
170 | 170 | let as = ao(ap, ab) | |
171 | 171 | ||
172 | 172 | let at = ao(ap, Y) | |
173 | 173 | ||
174 | 174 | let au = ao(ap, ah) | |
175 | 175 | ||
176 | 176 | let av = "price" | |
177 | 177 | ||
178 | 178 | let aw = "bond_asset_id" | |
179 | 179 | ||
180 | 180 | let ax = "neutrino_asset_id" | |
181 | 181 | ||
182 | 182 | let ay = "surf_asset_id" | |
183 | 183 | ||
184 | 184 | let az = "balance_lock_" | |
185 | 185 | ||
186 | 186 | let aA = (az + "waves") | |
187 | 187 | ||
188 | 188 | let aB = (az + "neutrino") | |
189 | 189 | ||
190 | 190 | let aC = "order_first" | |
191 | 191 | ||
192 | 192 | let aD = "math_contract" | |
193 | 193 | ||
194 | 194 | let aE = "min_waves_nsbt_buy" | |
195 | 195 | ||
196 | 196 | let aF = "min_nsbt_sell" | |
197 | 197 | ||
198 | 198 | let aG = "min_waves_surf_buy" | |
199 | 199 | ||
200 | 200 | let aH = "min_usdn_surf_buy" | |
201 | 201 | ||
202 | 202 | func aI (aJ) = ("debug_order_roi_" + aJ) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aK (aJ) = ("order_price_" + aJ) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aL (aJ) = ("order_total_" + aJ) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aM (aJ) = ("order_owner_" + aJ) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aN (aJ) = ("order_height_" + aJ) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aO (aJ) = ("order_status_" + aJ) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aP (aJ) = ("order_filled_total_" + aJ) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aQ (aJ) = ("order_prev_" + aJ) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aR (aJ) = ("order_next_" + aJ) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aS (aT,aU) = fraction(aT, t, aU) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aV (aT,aU) = fraction(aT, aU, t) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aW (aX,aY) = fraction(toBigInt(aX), w, toBigInt(aY)) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aZ (i,ba) = toInt(fraction(i, toBigInt(ba), w)) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | let bb = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
242 | 242 | ||
243 | 243 | let bc = base58'F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z' | |
244 | 244 | ||
245 | 245 | let bd = d(ar, "is_blocked") | |
246 | 246 | ||
247 | 247 | let be = valueOrElse(getInteger(this, aE), 1000000000) | |
248 | 248 | ||
249 | 249 | let bf = valueOrElse(getInteger(this, aF), 1000000) | |
250 | 250 | ||
251 | 251 | let bg = valueOrElse(getInteger(this, aG), 100000000) | |
252 | 252 | ||
253 | 253 | let bh = valueOrElse(getInteger(this, aH), 10000000) | |
254 | 254 | ||
255 | 255 | let bi = c(aC) | |
256 | 256 | ||
257 | 257 | func bj (bk) = a(aK(bk)) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func bl (bk) = a(aL(bk)) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bm (bk) = c(aM(bk)) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bn (bk) = c(aO(bk)) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bo (bk) = a(aP(bk)) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bp (bk) = c(aQ(bk)) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bq (bk) = c(aR(bk)) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func br (aU) = ((s * s) / aU) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bs (bt,bu) = fraction(toBigInt(bt), toBigInt((s * s)), toBigInt(bu)) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bv (aJ,bw,bx,by,bz,bA,aU,bB) = [StringEntry(aK(aJ), toString(aU)), IntegerEntry(aL(aJ), bw), IntegerEntry(aP(aJ), bx), StringEntry(aM(aJ), by), IntegerEntry(aN(aJ), height), StringEntry(aO(aJ), bz), IntegerEntry(("debug_order_currentPrice_" + aJ), bB), IntegerEntry(aI(aJ), bA)] | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bC (bD,bE) = (((((((((((((((((((((((((((((((((((bD + "[nsbtAmountRaw=") + toString(n(bE[0]))) + " usdnPayment=") + toString(n(bE[1]))) + " wRaw=") + toString(n(bE[2]))) + " uRaw=") + toString(n(bE[3]))) + " mRaw=") + toString(n(bE[4]))) + " sRaw=") + toString(n(bE[5]))) + " nsbtCurveParam_a=") + toString(n(bE[6]))) + " nsbtCurveParam_b=") + toString(n(bE[7]))) + " wReservesInUsdn=") + toString(n(bE[8]))) + " price=") + toString(n(bE[9]))) + " multBR=") + toString(n(bE[10]))) + " multPower=") + toString(n(bE[11]))) + " multExpInPower=") + l(bE[12])) + " multK=") + l(bE[13])) + " step1=") + l(bE[14])) + " step2=") + l(bE[15])) + " step3=") + toString(n(bE[16]))) + "]") | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bF (bG) = StringEntry("debug_surfResult", makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(n(bG[N])), toString(n(bG[O])), toString(n(bG[P])), toString(n(bG[Q])), toString(n(bG[R])), toString(n(bG[S])), toString(n(bG[T])), toString(n(bG[U])), toString(n(bG[V])), toString(n(bG[W])), toString(n(bG[X]))], r)) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Callable(bH) | |
294 | 294 | func constructorV1 (bI,bJ,bf) = if ((bH.caller != this)) | |
295 | 295 | then throw("Permission denied") | |
296 | 296 | else [StringEntry(aD, bI), IntegerEntry(aF, bf), IntegerEntry(aE, bJ)] | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(bH) | |
301 | 301 | func constructorV2 (bK,bL,bM) = if ((bH.caller != this)) | |
302 | 302 | then throw("Permission denied") | |
303 | 303 | else { | |
304 | 304 | let bN = Issue("SURF", bM, 0, 6, true, unit, 0) | |
305 | 305 | let bO = calculateAssetId(bN) | |
306 | 306 | [bN, StringEntry(ay, toBase58String(bO)), IntegerEntry(aG, bK), IntegerEntry(aH, bL)] | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | 311 | @Callable(bH) | |
312 | 312 | func buyNsbt () = { | |
313 | 313 | let bP = value(bH.payments[0]) | |
314 | 314 | let bQ = bP.amount | |
315 | 315 | let bR = bQ | |
316 | 316 | if (bd) | |
317 | 317 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
318 | 318 | else if (isDefined(bP.assetId)) | |
319 | 319 | then throw("can use waves only") | |
320 | 320 | else if ((be > bQ)) | |
321 | 321 | then throw((("min " + toString((be / t))) + " waves expected")) | |
322 | 322 | else { | |
323 | 323 | let bS = bH.caller | |
324 | 324 | let bT = h(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
325 | 325 | let bB = n(bT[0]) | |
326 | 326 | let bE = h(invoke(as, "curveFunctionREADONLY", [bR], nil)) | |
327 | 327 | let bU = n(bE[0]) | |
328 | 328 | if ((0 >= bU)) | |
329 | 329 | then throw("nsbtAmount <= 0") | |
330 | 330 | else { | |
331 | 331 | let bV = bs(bR, bU) | |
332 | 332 | let bA = 0 | |
333 | 333 | let bW = invoke(at, "acceptWaves", nil, bH.payments) | |
334 | 334 | if ((bW == bW)) | |
335 | 335 | then $Tuple2((bv(toBase58String(bH.transactionId), bQ, bQ, toString(bS), z, bA, bV, bB) ++ [ScriptTransfer(bS, bU, bc), StringEntry("debug_curveResult", bC("curveResult", bE))]), bU) | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(bH) | |
344 | 344 | func sellNsbt () = if (bd) | |
345 | 345 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
346 | 346 | else { | |
347 | 347 | let bP = value(bH.payments[0]) | |
348 | 348 | let bQ = bP.amount | |
349 | 349 | if ((bP.assetId != bc)) | |
350 | 350 | then throw("can use NSBT only") | |
351 | 351 | else if ((bf > bQ)) | |
352 | 352 | then throw((("min " + toString((bf / s))) + " nsbt expected")) | |
353 | 353 | else { | |
354 | 354 | let bX = n(h(invoke(as, "calcContractNsbtPriceSYSREADONLY", [-(bQ)], nil))[0]) | |
355 | 355 | if ((s > bX)) | |
356 | 356 | then throw((("resulting nsbt price would be < 1 (" + toString(bX)) + " usdn)")) | |
357 | 357 | else { | |
358 | 358 | let bY = invoke(at, "transferUsdnToUser", [bQ, toString(bH.caller)], nil) | |
359 | 359 | if ((bY == bY)) | |
360 | 360 | then $Tuple2(nil, bX) | |
361 | 361 | else throw("Strict value is not equal to itself.") | |
362 | 362 | } | |
363 | 363 | } | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(bH) | |
369 | 369 | func cancelOrder (aJ) = { | |
370 | 370 | let by = bm(aJ) | |
371 | 371 | let aT = (bl(aJ) - bo(aJ)) | |
372 | 372 | let bZ = toString(bH.caller) | |
373 | 373 | let ca = bq(aJ) | |
374 | 374 | let cb = bp(aJ) | |
375 | 375 | if ((bn(aJ) != y)) | |
376 | 376 | then throw("invalid order status") | |
377 | 377 | else [StringEntry(aC, if ((bi == aJ)) | |
378 | 378 | then ca | |
379 | 379 | else bi), StringEntry(aR(cb), ca), StringEntry(aQ(ca), cb), StringEntry(aO(aJ), x), ScriptTransfer(bH.caller, aT, unit)] | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(bH) | |
385 | 385 | func minWavesAmountNsbtBuySYSREADONLY () = $Tuple2(nil, be) | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | ||
389 | 389 | @Callable(bH) | |
390 | 390 | func minNsbtAmountForSellSYSREADONLY () = $Tuple2(nil, bf) | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(bH) | |
395 | 395 | func minWavesAmountSurfBuySYSREADONLY () = $Tuple2(nil, bg) | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | ||
399 | 399 | @Callable(bH) | |
400 | 400 | func minUsdnAmountSurfBuySYSREADONLY () = $Tuple2(nil, bh) | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(bH) | |
405 | 405 | func buySurf (cc,cd,ce) = { | |
406 | 406 | let cf = valueOrElse(getString(this, "testAccounts"), "") | |
407 | 407 | if (if ((cf != "")) | |
408 | 408 | then !(contains(cf, toString(bH.caller))) | |
409 | 409 | else false) | |
410 | 410 | then throw("Be patient! Need to test in mainnet before launch.") | |
411 | 411 | else if ((size(bH.payments) != 1)) | |
412 | 412 | then throw("exactly 1 payment must be attached") | |
413 | 413 | else if ((0 >= cc)) | |
414 | 414 | then throw("averagePriceWanted should be positive") | |
415 | 415 | else if ((0 >= cd)) | |
416 | 416 | then throw("maxTolerancePerc should be positive") | |
417 | 417 | else if (bd) | |
418 | 418 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
419 | 419 | else { | |
420 | 420 | let bP = bH.payments[0] | |
421 | 421 | let cg = bP.amount | |
422 | 422 | let ch = valueOrElse(bP.assetId, A) | |
423 | 423 | if (if ((ch != bb)) | |
424 | 424 | then (ch != A) | |
425 | 425 | else false) | |
426 | 426 | then throw("Unsupported payment asset") | |
427 | 427 | else if (if ((ch == bb)) | |
428 | 428 | then (bh > cg) | |
429 | 429 | else false) | |
430 | 430 | then throw((("min " + toString((bh / s))) + " USDN expected")) | |
431 | 431 | else if (if ((ch == A)) | |
432 | 432 | then (bg > cg) | |
433 | 433 | else false) | |
434 | 434 | then throw((("min " + toString((bg / t))) + " WAVES expected")) | |
435 | 435 | else { | |
436 | 436 | let bG = h(invoke(as, "surfFunctionREADONLY", [cg, ch], nil)) | |
437 | 437 | let ci = n(bG[O]) | |
438 | 438 | let cj = n(bG[P]) | |
439 | 439 | let ck = n(bG[N]) | |
440 | 440 | let cl = toBigInt(ck) | |
441 | 441 | let cm = if ((ch == A)) | |
442 | 442 | then (toBigInt(ci) * u) | |
443 | 443 | else (toBigInt(cj) * v) | |
444 | 444 | if ((cm > ((toBigInt((cd + s)) * toBigInt(cc)) * cl))) | |
445 | 445 | then throw((((((("Tolerance " + toString(cd)) + " exceeded: spent ") + (if ((ch == A)) | |
446 | 446 | then (toString(ci) + " WAVES") | |
447 | 447 | else (toString(cj) + " USDN"))) + " for ") + toString(ck)) + " SURF")) | |
448 | 448 | else { | |
449 | 449 | let cn = n(bG[W]) | |
450 | 450 | let co = if ((ch == A)) | |
451 | 451 | then { | |
452 | 452 | let cp = invoke(at, "acceptWaves", nil, [AttachedPayment(unit, (cg - cn))]) | |
453 | 453 | if ((cp == cp)) | |
454 | 454 | then if ((cn > 0)) | |
455 | 455 | then [ScriptTransfer(bH.caller, cn, unit)] | |
456 | 456 | else nil | |
457 | 457 | else throw("Strict value is not equal to itself.") | |
458 | 458 | } | |
459 | 459 | else if ((cn > 0)) | |
460 | 460 | then [ScriptTransfer(at, (cg - cn), bb), ScriptTransfer(bH.caller, cn, bb)] | |
461 | 461 | else [ScriptTransfer(at, (cg - cn), bb)] | |
462 | 462 | let cq = p(invoke(this, "issueSurf", [ck, ""], nil)) | |
463 | 463 | let cr = if (ce) | |
464 | 464 | then { | |
465 | 465 | let cs = invoke(au, "stakeByOriginCaller", nil, [AttachedPayment(cq, ck)]) | |
466 | 466 | if ((cs == cs)) | |
467 | 467 | then nil | |
468 | 468 | else throw("Strict value is not equal to itself.") | |
469 | 469 | } | |
470 | 470 | else [ScriptTransfer(bH.caller, ck, cq)] | |
471 | 471 | ((co ++ [bF(bG)]) ++ cr) | |
472 | 472 | } | |
473 | 473 | } | |
474 | 474 | } | |
475 | 475 | } | |
476 | 476 | ||
477 | 477 | ||
478 | 478 | ||
479 | 479 | @Callable(bH) | |
480 | 480 | func issueSurf (ck,ct) = { | |
481 | 481 | let cq = fromBase58String(getStringValue(ay)) | |
482 | 482 | if ((bH.caller == this)) | |
483 | 483 | then $Tuple2([Reissue(cq, ck, true)], cq) | |
484 | 484 | else if ((bH.caller == at)) | |
485 | 485 | then $Tuple2([Reissue(cq, ck, true), ScriptTransfer(addressFromStringValue(ct), ck, cq)], cq) | |
486 | 486 | else throw("issueSurf - permission denied") | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | @Verifier(cu) | |
491 | 491 | func cv () = { | |
492 | 492 | let cw = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], r) | |
493 | 493 | let cx = split(valueOrElse(getString(ar, "%s__multisig"), cw), r) | |
494 | 494 | let cy = ((((if (sigVerify(cu.bodyBytes, cu.proofs[0], fromBase58String(cx[0]))) | |
495 | 495 | then 1 | |
496 | 496 | else 0) + (if (sigVerify(cu.bodyBytes, cu.proofs[1], fromBase58String(cx[1]))) | |
497 | 497 | then 1 | |
498 | 498 | else 0)) + (if (sigVerify(cu.bodyBytes, cu.proofs[2], fromBase58String(cx[2]))) | |
499 | 499 | then 1 | |
500 | 500 | else 0)) + (if (sigVerify(cu.bodyBytes, cu.proofs[3], fromBase58String(cx[3]))) | |
501 | 501 | then 2 | |
502 | 502 | else 0)) | |
503 | 503 | (cy >= 3) | |
504 | 504 | } | |
505 | 505 |
github/deemru/w8io/026f985 47.67 ms ◑